commit | e1d3a1ae2d533318f6ff1ab20cabad14a084e17b | [log] [tgz] |
---|---|---|
author | Jason Macnak <natsu@google.com> | Mon Jul 06 12:32:00 2020 -0700 |
committer | Jason Macnak <natsu@google.com> | Mon Jul 06 12:38:44 2020 -0700 |
tree | 75a92568cb3bfe06cf3558e8a6c5d2eb2473cc40 | |
parent | cd1164ef62ef4c9ee8ad9d0fffc59559a0956dd1 [diff] |
Install libwayland-server0 on CF host image ... to make Nvidia's EGL library fail gracefully when trying to eglGetDisplay(EGL_DEFAULT_DISPLAY) on a GCE instance without a GPU. Without libwayland-server0, we encounter: Inconsistency detected by ld.so: dl-open.c: 626: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT failed! Bug: b/150944551 Test: launch_cvd --gpu_mode=auto (on non-GPU instance) Test: launch_cvd --gpu_mode=auto (on GPU instance) Change-Id: I15ae5165ed200c071b24d4fccbb9526c96967c3d
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!