Skip to content

Use qemu and virgl by default. #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,18 @@ instructions.
Note that you need at least qemu 8.1, so you'll probably want to use the
prebuilt qemu binaries in AOSP (as shown in the example commands below).

### Getting to a shell (faster, but no graphics)
### Getting to a shell

After building, run this following command from the same shell:
```
$ launch_cvd -cpus=4 --memory_mb=8192 --gpu_mode=none \
Copy link
Collaborator

@enh-google enh-google Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the --gpu_mode=none no the command line means that "(faster, but no graphics)" is still true, no?

or did you mean to remove the --gpu_mode=none here?

can we explain the different --gpu_mode options?

--vm_manager=qemu_cli \
--qemu_binary_dir=$ANDROID_BUILD_TOP/device/google/cuttlefish_vmm/qemu/x86_64-linux-gnu/bin
--qemu_binary_dir=$ANDROID_HOST_OUT/bin
```
After about 10s you should be able to use `adb shell` to connect to your riscv64 cuttlefish!

### Getting to the home screen (slower, but with graphics)
### Getting to the home screen

After building, run this following command from the same shell:
```
$ launch_cvd -cpus=8 --memory_mb=8192 --gpu_mode=drm_virgl \
--vm_manager=qemu_cli \
--qemu_binary_dir=$ANDROID_BUILD_TOP/device/google/cuttlefish_vmm/qemu/x86_64-linux-gnu/bin
```
You can then use `vncviewer localhost:6444` to connect to your riscv64 cuttlefish!
You can use `vncviewer localhost:6444` to connect to your riscv64 cuttlefish!

(Note that even on a fast Xeon workstation it takes several minutes to get to
the boot animation and ten minutes to get to the home screen!)
Expand Down