Ross Vandegrift
2023-08-11 06:10:01 UTC
(please CC me, as I'm not subscribed)
Hi folks,
New to running arm64 stuff on physical arm64 hardware, and I'm unable to start
a kvm guest. I'm sure I'm missing something, hoping someone can point me in
the right direction.
I'm running arm64 bookworm (plus vendor junk for orangepi 5 plus). Without
kvm, I can boot a trixie arm64 image [1] just fine. But if I enable kvm, qemu
spins without booting. It produces no output, not even the UEFI firmware
output.
This works:
dd if=/dev/zero of=flash1.img bs=1M count=64
dd if=/dev/zero of=flash0.img bs=1M count=64
dd if=/usr/share/qemu-efi-aarch64/QEMU_EFI.fd of=flash0.img conv=notrunc
qemu-system-aarch64 \
-nographic \
-machine virt,gic-version=max \
-m 512M \
-cpu max \
-netdev user,id=vnet \
-device virtio-net-pci,netdev=vnet \
-drive file=debian-13-nocloud-arm64-daily-20230809-1467.qcow2,if=none,id=drive0 \
-device virtio-blk,drive=drive0,bootindex=0 \
-drive file=flash0.img,format=raw,if=pflash \
-drive file=flash1.img,format=raw,if=pflash \
-snapshot
But it breaks if I add -enable-kvm. Any hints?
Thanks,
Ross
[1] - https://cloud.debian.org/images/cloud/trixie/daily/20230809-1467/debian-13-nocloud-arm64-daily-20230809-1467.qcow2
Hi folks,
New to running arm64 stuff on physical arm64 hardware, and I'm unable to start
a kvm guest. I'm sure I'm missing something, hoping someone can point me in
the right direction.
I'm running arm64 bookworm (plus vendor junk for orangepi 5 plus). Without
kvm, I can boot a trixie arm64 image [1] just fine. But if I enable kvm, qemu
spins without booting. It produces no output, not even the UEFI firmware
output.
This works:
dd if=/dev/zero of=flash1.img bs=1M count=64
dd if=/dev/zero of=flash0.img bs=1M count=64
dd if=/usr/share/qemu-efi-aarch64/QEMU_EFI.fd of=flash0.img conv=notrunc
qemu-system-aarch64 \
-nographic \
-machine virt,gic-version=max \
-m 512M \
-cpu max \
-netdev user,id=vnet \
-device virtio-net-pci,netdev=vnet \
-drive file=debian-13-nocloud-arm64-daily-20230809-1467.qcow2,if=none,id=drive0 \
-device virtio-blk,drive=drive0,bootindex=0 \
-drive file=flash0.img,format=raw,if=pflash \
-drive file=flash1.img,format=raw,if=pflash \
-snapshot
But it breaks if I add -enable-kvm. Any hints?
Thanks,
Ross
[1] - https://cloud.debian.org/images/cloud/trixie/daily/20230809-1467/debian-13-nocloud-arm64-daily-20230809-1467.qcow2