[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kvm on arm64



Hi Ross,

On Thu, Aug 10, 2023 at 10:45:54PM -0700, Ross Vandegrift wrote:
> 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?

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?


Reply to: