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.
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?
But it breaks if I add -enable-kvm. Any hints?
Nothing wrong with your command, I've tried the exact same thing (with -enable-kvm) and it works fine on my M1.
- What happens if you try with: -m 1G -smp 2, any differences?
- What does ls -l /dev/kvm say? Is your user in the kvm group?
- Anything interesting in dmesg?
- What if you add -serial file:serial.log ? Anything in serial.log?
No, even if I modify the image to enable early printk. Since I'm not
seeing the UEFI firmware banner, I think it's failing before the kernel starts. Here's where my arm ignorance steps in:
- Is it possible my hardware is lacking virt support?
- Could my hardware not support UEFI even with qemu providing firmware?
So something is going wrong with the UEFI firmware or qemu. I tried upgrading
to qemu-efi-aarch64 from sid, but it doesn't help. I looked into backporting a
newer qemu, but it'd take more time than I have tonight.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 491 |
Nodes: | 16 (2 / 14) |
Uptime: | 120:35:41 |
Calls: | 9,687 |
Calls today: | 3 |
Files: | 13,728 |
Messages: | 6,176,524 |