I'm trying to emulate aarch64 and/or arm using qemu on ARM/M1 macOS. However, after multiple installer isos (ubuntu aarch64, standard alpine aarch64, etc) I can't seem to get anything but a blank prompt in ARM macOS.
I've tried everything from:
qemu-system-aarch64
-machine virt \
-m 512M \
-cpu max \
-smp 1 \
-netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 \
-device virtio-net-pci,netdev=vnet \
-drive file=ubuntu-image.img,if=none,id=drive0,cache=writeback \
-device virtio-blk,drive=drive0,bootindex=0 \
-drive file=mini.iso,if=none,id=drive1,cache=writeback \
-device virtio-blk,drive=drive1,bootindex=1
to:
qemu-system-aarch64 \
-machine virt \
-m 512M \
-cpu max \
-smp 1 \
-boot d -cdrom mini.iso
And here's what I'm seeing as a result:
When I try the x86 virt machine everything works given the same params. Is qemu-system-aarch64 -machine virt expected to work at all on ARM macOS? Are there any commands that work for aarch64 on M1/ARM macOS?