commit | d4fb8a3599b491c562c72ed433b4788be80e6bc9 | [log] [tgz] |
---|---|---|
author | Jason Macnak <natsu@google.com> | Tue Feb 11 12:18:58 2020 -0800 |
committer | Alistair Delva <adelva@google.com> | Tue Feb 11 22:56:12 2020 +0000 |
tree | bf5e2d2df25cc684d6c3cdfb94cb44f1d7434d0d | |
parent | fb0190c0294d08344483fb91d0db4ce6d8e0ce1a [diff] |
HACK: Start nvidia-modeset kernel driver in launch_cvd Running `launch_cvd --gpu_mode=drm_virgl` will fail on the first invocation on a fresh GCE instance because Nvidia's EGL library will fork to run the nvidia-modprobe command and then crosvm will abort after receiving the child subprocess's exit signal which is interpreted as a failure. This change makes launch_cvd run the nvidia-modprobe command to ensure that the modeset kernel driver is already loaded so that the EGL library does not need to fork and load it in crosvm. Bug: b/149323577 Test: launch_cvd on GCE instance without GPU Test: launch_cvd --gpu_mode=drm_virgl on a fresh GCE instance Change-Id: Ie63e307e4eafc8e5efaf4340663b9ca5b5e52717
git clone https://github.com/google/android-cuttlefish cd android-cuttlefish debuild -i -us -uc -b sudo dpkg -i ../cuttlefish-common_*_amd64.deb sudo apt-get install -f
aosp-master
if you don't know what you're looking foraosp_cf_x86_phone
and click on userdebug
for the latest buildArtifacts
aosp_cf_x86_phone-img-xxxxxx.zip
-- it will always have img
in the name. Download this filecvd-host_package.tar.gz
. You should always download a host package from the same build as your images.mkdir cf cd cf tar xvf /path/to/cvd-host_package.tar.gz unzip /path/to/aosp_cf_x86_phone-img-xxxxxx.zip
Launch cuttlefish with:
$ HOME=$PWD ./bin/launch_cvd
Stop cuttlefish with:
$ HOME=$PWD ./bin/stop_cvd
You can use adb
to debug it, just like a physical device:
$ ./bin/adb -e shell
You can use the TightVNC JViewer. Once you have downloaded the TightVNC Java Viewer JAR in a ZIP archive, run it with
$ java -jar tightvnc-jviewer.jar -ScalingFactor=50 -Tunneling=no -host=localhost -port=6444
Click "Connect" and you should see a lock screen!