Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Suggested QEMU command for Xen virtual machine

Below is the suggested command for running Android image on Xen virtual machine. It has not been tested yet. Once we have hardware is avaliable for the testing, we might update below arguments.

Code Block
$ /usr/bin/qemu-system-aarch64
  -xen-domid 1
  -no-shutdown
  -chardev socket,id=xen-cmd,path=/var/run/xen/qmp-libxl-1,server=on,wait=off
  -mon chardev=xen-cmd,mode=control
  -nodefaults
  -no-user-config
  -xen-attach
  -name aaos-vm
  -vnc none
  -display sdl,gl=on
  -device pcie-pci-bridge,id=hvc-bridge,addr=01.2
  -device virtio-gpu-gl-pci,id=gpu0,xres=720,yres=1280
  -device virtio-mouse-pci,disable-legacy=on,iommu_platform=on
  -device virtio-keyboard-pci,disable-legacy=on,iommu_platform=on
  -smp 4,maxcpus=4
  -machine xenpvh
  -m 6144
  -chardev file,id=serial0,path=/path/to/kernel-log-pipe,append=on
  -serial chardev:serial0
  -chardev file,id=hvc0,path=/path/to/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
  -drive file=/path/to/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
  -drive file=/path/to/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
  -drive file=/path/to/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
  -object memory-backend-file,id=objpmem0,share=on,mem-path=/path/to/pstore,size=2097152
  -device nvdimm,memdev=objpmem0,id=ramoops
  -object rng-random,id=objrng0,filename=/dev/urandom
  -device virtio-rng-pci-non-transitional,rng=objrng0,id=rng0,max-bytes=1024,period=2000
  -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
  -bios /path/to/u-boot.bin