Install Debian in QEMU

How could I use a MacBook on macOS to build packages with pkgsrc for GNU/Debian 🤔

$ qemu-img create -f qcow2 /Users/triaxx/vms/debian.qcow2 16G
$ qemu-system-x86_64 -accel tcg -m 2G -display sdl \
    -drive file=/Users/triaxx/vms/debian.qcow2,if=none,id=vdisk0 \
    -device virtio-blk-pci,drive=vdisk0 \
    -cdrom debian-12.1.0-amd64-netinst.iso

The option -cpu max -smp cpus=2 seems to be buggy on Darwin 22.6.0

Page top