I know qemu supports emulating CPUs and I wanted to try and run a x86_64-linux nixos virtual machine on my aarch64-darwin machine. According to the error message this isn’t possible:
error: Unsupported guest system x86_64-linux for host aarch64-darwin, supported: aarch64-linux
When I looked where this error is thrown I found that the default qemu package that qemu-vm uses is one that only supports the host CPU. When I manually edited the run-xxx-vm script to use a different qemu package I found that the VM does boot. I understand that this is much slower, but wouldn’t it be useful to have this support in nixpkgs? Maybe with a flag to make sure the user knows it will be much slower