Setting up a virtual machine (VM) on Linux using open source software is the standard way of doing things, but on macOS it usually involves VMware Fusion or Boot Camp. QEMU is my favorite hypervisor and wanted to use it when I have to use macOS as well.