This post is about booting guest using qemu-kvm.
Like create domU on xen, you still need to prepare a guest image including guest kernel, bios image.
For qemu image on arm64, you can download it from official site:
Get qemu from source on hikey960 (I recommend to compile on board directly if you dont want to handle those annoying libs
git clone http://git.qemu.org/git/qemu.git
If your guest is downloaded from above link, set target as
enough. Config qemu and compile it:
# ./configure --target-list="aarch64-softmmu aarch64-linux-user"
taskset -c 0-3 qemu-system-aarch64 -m 1024 -M virt -cpu cortex-a53 -smp 4 -bios "/path/to/QEMU_EFI.fd" -nographic -device virtio-blk-device,drive=image -drive if=none,id=image,file="/path/to/QEMU_EFI.img.gz" -enable-kvm
Currently, Cortex-A73 is not supported by qemu, we have to pin vcpus on
taskset -c 0-3 (cpu 0 - 3 are all cortex-a53)
I dont have a screen to show results, that’s why
-nographic is needed.
-enable-kvm to let qemu make use of kvm to boost guest.
Now you should boot guest successfully.