...
-display egl-headless -vnc 127.0.0.1:544
: Use EGL in a headless mode for graphics rendering. Additionally, a VNC server is enabled on localhost and port 544, allowing remote access to the virtual machine's display. ('-display sdl` is used by Xen)
-device pcie-pci-bridge,id=hvc-bridge,addr=01.2
: Emulate a PCIe to PCI bus with PCI address "01.2". (Needed by Xen)
-device virtio-gpu-gl-pci,id=gpu0,xres=720,yres=1280
: Enable virgl GPU mode (host rendering). (Needed by Xen)
-chardev file,id=serial0,path=/home/leoy/Dev2/aosp_cuttlefish_test/cf/cuttlefish/instances/cvd-1/internal/kernel-log-pipe,append=on -serial chardev:serial0
: Create virtual serial device and bind it to the local pipe kernel-log-pipe
.
-chardev file,id=hvc0,path=/home/leoy/Dev2/aosp_cuttlefish_test/cf/cuttlefish/instances/cvd-1/internal/kernel-log-pipe,append=on -device virtio-serial-pci-non-transitional,max_ports=1,id=virtio-serial0,bus=hvc-bridge,addr=01 -device virtconsole,bus=virtio-serial0.0,chardev=hvc0
: Create a hypervisor virtual console and attached to local pipe.
Cuttlefish creates HVC 0~15. Except HVC 14 and 15 are not used, other HVCs are bound with the pipes on the host and works as communication channel with the backend program on host. (HVC0 is needed by Xen)
Code Block |
---|
- /dev/hvc0 = kernel console
- /dev/hvc1 = serial console
- /dev/hvc2 = serial logging
- /dev/hvc3 = keymaster
- /dev/hvc4 = gatekeeper
- /dev/hvc5 = bt
- /dev/hvc6 = gnss
- /dev/hvc7 = location
- /dev/hvc8 = confirmationui
- /dev/hvc9 = uwb
- /dev/hvc10 = oemlock
- /dev/hvc11 = keymint
- /dev/hvc12 = NFC
- /dev/hvc13 = sensors |
-drive file=/home/leoy/Dev2/aosp_cuttlefish_test/cf/cuttlefish/instances/cvd-1/overlay.img,if=none,id=drive-virtio-disk0,aio=threads -device virtio-blk-pci-non-transitional,scsi=off,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
: Enable virtual block device for the Android overlay image, which contains boot images, meta images, super.img and userdata.img, etc. (Needed by Xen)
-drive file=/home/leoy/Dev2/aosp_cuttlefish_test/cf/cuttlefish/instances/cvd-1/persistent_composite_overlay.img,if=none,id=drive-virtio-disk1,aio=threads -device virtio-blk-pci-non-transitional,scsi=off,drive=drive-virtio-disk1,id=virtio-disk1
: Enable virtual block device for the Android persistent image, which contains uboot enviriable image, bootconfig (for Android configurations), etc. (Needed by Xen)
-drive file=/home/leoy/Dev2/aosp_cuttlefish_test/cf/cuttlefish/instances/cvd-1/sdcard_overlay.img,if=none,id=drive-virtio-disk2,aio=threads -device virtio-blk-pci-non-transitional,scsi=off,drive=drive-virtio-disk2,id=virtio-disk2
: Enable virtual block device for the Android SD image. (Needed by Xen)
-object memory-backend-file,id=objpmem0,share=on,mem-path=/home/leoy/Dev2/aosp_cuttlefish_test/cf/cuttlefish/instances/cvd-1/pstore,size=2097152 -device nvdimm,memdev=objpmem0,id=ramoops
: Enable memory object and store the data into file, which is used for kernel ramoops. (Needed by Xen)
-object memory-backend-file,id=objpmem2,share=on,mem-path=/home/leoy/Dev2/aosp_cuttlefish_test/cf/cuttlefish/instances/cvd-1/hwcomposer-pmem,size=2097152 -device virtio-pmem-pci,disable-legacy=on,memdev=objpmem2,id=pmem1
: Enable memory object for hwcomposer.
-object rng-random,id=objrng0,filename=/dev/urandom -device virtio-rng-pci-non-transitional,rng=objrng0,id=rng0,max-bytes=1024,period=2000
: Enable random device (Needed by Xen)
-device virtio-mouse-pci,disable-legacy=on
: Enable virtual mouse (Needed by Xen)-device virtio-keyboard-pci,disable-legacy=on
: Enable virtual keyboard (Needed by Xen)
-device virtio-balloon-pci-non-transitional,id=balloon0
: Enable balloon for dynamically allocation memory size.
-netdev tap,id=hostnet0,ifname=cvd-mtap-01,script=no,downscript=no -netdev tap,id=hostnet1,ifname=cvd-etap-01,script=no,downscript=no -device virtio-net-pci-non-transitional,netdev=hostnet0,id=net0,mac=00:1a:11:e0:cf:00 -device virtio-net-pci-non-transitional,netdev=hostnet1,id=net1,mac=00:1a:11:e1:cf:00
: Enable virtual network cards (Needed by Xen)
-device AC97,audiodev=audio_none -audiodev driver=none,id=audio_none
: Enable sound device.
-bios /home/leoy/Dev2/aosp_cuttlefish_test/cf/etc/bootloader_x86_64/bootloader.qemu
: Enable bootloader (U-boot). (Needed by Xen)