While setup is complex, the results are unmatched. You get the stability of Linux as a base OS with the ability to run a "Bare Metal" speed macOS instance. For developers who want to stay in the Linux ecosystem but need to compile iOS apps or use Final Cut Pro, this is the ultimate solution.
The most reliable way to build the VM base is using the OSX-KVM project on GitHub . osx-kvm-gpu-passthrough
Use lspci -nn to find the Vendor and Device IDs for your GPU and its associated audio controller. While setup is complex, the results are unmatched
Success starts with your hardware. macOS has very strict driver support compared to Windows or Linux. This is the most critical factor. AMD (Recommended): The most reliable way to build the VM
Before touching the VM, you must "isolate" the GPU so the Linux host doesn't try to use it.
Getting native graphics performance on a macOS virtual machine via KVM is the "holy grail" of virtualization. It turns a laggy VNC window into a fully functional workstation capable of video editing, Xcode development, and even light gaming.