macOS on KVM.

Check your hardware, build your virtual machine, and get it running on Linux.

Based on ultimate-macOS-KVM by Coopydood.

How it works.

QEMU provides the virtual hardware. KVM uses your CPU’s virtualization features, and OpenCore boots macOS inside the VM.

Linux host, macOS guest and Apple recovery The Linux host runs QEMU with KVM acceleration. QEMU starts a guest where OpenCore boots macOS. AutoPilot on the host fetches the recovery image from Apple’s servers and attaches it for installation. Linux host QEMU + KVM Virtual machine OpenCore macOS AutoPilot Apple’s servers Recovery image
AutoPilot fetches macOS Recovery from Apple’s servers and attaches it to the VM for installation.

Sources read · QEMU system emulation · OpenCore · AutoPilot

Check your hardware.

Start with the Linux host. If you need Metal acceleration, match the exact GPU to the macOS release you plan to install.

Host and peripherals
ComponentCompatibility and requirements
CPU and firmwareUse an Intel or AMD x86-64 host booted in UEFI mode, with Intel VT-x or AMD-V (SVM) enabled. The project lists 2 CPU cores as its minimum. Keep AutoPilot’s guest CPU defaults on AMD. On Intel, upstream only suggests trying host for CPUs close to models macOS already supports.
Memory and storageUpstream lists 4 GB RAM and 40 GB disk space as host minimums. It recommends 16 GB RAM and 120 GB disk space on an SSD. Leave enough RAM for Linux when sizing the guest.
PCI passthroughEnable Intel VT-d or AMD-Vi (IOMMU). The guest needs a viable IOMMU group for the device, and macOS needs a driver for the hardware you pass through.
Wi-Fi and BluetoothStart with the VM’s virtual network adapter. For guest-controlled Wi-Fi or Bluetooth, check the exact adapter and macOS version before passing through its PCI or USB device. On Tahoe, Dortania describes experimental Broadcom Wi-Fi support and a compatibility flag for Intel Bluetooth.
USBUse the USB Passthrough Assistant for individual host devices. A whole USB controller is a PCI device and uses the IOMMU/VFIO path.
GPU support by family
GPU familyDocumented macOS driver support
AMD
Polaris and VegaSelected models have Metal-capable drivers through Sequoia 15. Dortania lists Polaris 10/20 from Sierra 10.12.6, Vega 10 from High Sierra 10.13, and Vega 20 from Mojave 10.14.5.
Navi 10/14Selected RX 5000 models have Metal-capable drivers from Catalina 10.15.1 through Sequoia 15. Display output may require an OpenCore boot argument.
Navi 21 and 23Selected RX 6800/6900 models from Big Sur 11.4 and RX 6600 models from Monterey 12.1, through Sequoia 15. These families have Metal-capable drivers on supported cards.
Navi 22, 24 and 3xNavi 22 relies on experimental patches. Dortania lists Navi 24 and Navi 3x as unsupported.
NVIDIA
Kepler, Maxwell and PascalSelected Kepler cards have native drivers up to Big Sur 11. Maxwell and Pascal depend on NVIDIA Web Drivers up to High Sierra 10.13.6. Check the exact device before relying on acceleration.
GTX 16 and RTX 20/30/40Turing, Ampere and Ada Lovelace lack macOS drivers. Passing the card through cannot provide Metal support.

Using Tahoe 26? The GPU ranges above reflect Dortania’s published model guide. Its Tahoe notes flag AMD connector patching issues in WhateverGreen. Verify your exact card and configuration before counting on acceleration.

Sources read · Project requirements · CPU defaults · Linux VFIO · QEMU USB · Dortania wireless · AMD GPUs · NVIDIA GPUs · Apple GPU drivers and Metal · Tahoe notes

Choose a macOS version.

Support below follows ultimate-macOS-KVM v0.14.1.

Tahoe 26
Upstream confirms installation and boot, with limited testing. Check GPU compatibility separately.
High Sierra 10.13 to Sequoia 15
The supported range also includes Mojave 10.14, Catalina 10.15, Big Sur 11, Monterey 12, Ventura 13 and Sonoma 14.
Lion 10.7 to Sierra 10.12
AutoPilot offers these as legacy options without upstream support.
Golden Gate 27
Apple lists Apple silicon Macs only. The x86-64 project’s supported range ends at Tahoe.

Sources read · Project README · Supported guests · Apple’s macOS 27 compatibility list

From Linux to first boot.

Use AutoPilot to generate a boot script and prepare macOS Recovery.

  1. Prepare the host

    Install the upstream dependencies for your distribution and enable its libvirt service. Check Apple’s macOS license before installing.

  2. Clone the project and open the menu

    git clone https://github.com/Coopydood/ultimate-macOS-kvm
    cd ultimate-macOS-kvm
    ./main.py
  3. Run AutoPilot

    Pick your macOS version, allocate CPU cores, RAM and virtual disk space, and let AutoPilot fetch Recovery from Apple. Keep the generated launch script.

  4. Install in Recovery

    Run the generated script. Select macOS Base System in OpenCore, format the target virtual disk in Disk Utility, then run the installer. After installation, select the installed system when OpenCore opens.

Sources read · Getting started · AutoPilot · Disk Utility steps

Give macOS a GPU.

For dedicated passthrough, keep a separate GPU or integrated graphics for Linux. The guest gets exclusive use of its card.

  1. Check the GPU and IOMMU group

    Match the card to the guest release with the project’s GPU Compatibility Checker. Enable IOMMU in firmware, then use the system checks to locate the card and its HDMI or DisplayPort audio function.

  2. Bind the guest card to VFIO

    Follow the host preparation guide for your Linux distribution. Reboot and verify that vfio-pci owns the intended functions before editing the VM.

  3. Attach it to the VM

    Run the VFIO-PCI Passthrough Assistant, select the card and its audio function, and apply the configuration to your AutoPilot script. Keep the generated -noPT.sh fallback.

  4. Boot and verify acceleration

    Connect the display to the guest card and start the VM. Check Graphics/Displays in macOS System Information for the GPU and Metal support. If a Ventura-or-later guest fails with the QEMU launch script, the upstream guest guide suggests trying virt-manager.

Using the host’s only GPU? The project links to DarknessRafix’s single-GPU guide for that setup.

Sources read · Host preparation · Passthrough Assistant · Guest caveats · Apple’s Metal check

Troubleshooting.

Why can’t the installer see my disk?

In Recovery, open Disk Utility and erase the QEMU HARDDISK that matches the size you set in AutoPilot. Choose APFS for a modern macOS install and leave the small OpenCore disk intact.

Why does boot stall at PCIEnumerationWaitTime?

Ventura and later can take several minutes at this point during verbose boot. Give it time to finish. If the delay keeps happening, try removing the -v boot argument in OpenCore.

Why does my Navi GPU show a black screen?

For affected RX 5000 or RX 6000 cards, try the project’s AutoPatch for agdpmod=pikera in Extras → macOS Boot Argument Editor. On Tahoe, check Dortania’s WhateverGreen caveat before applying it. Use the preserved non-passthrough script to regain access.

Why is my GPU missing from the passthrough assistant?

Check that IOMMU is enabled, that you identified the card’s IOMMU group, and that its GPU and audio functions are bound to vfio-pci. The project’s host checks show the groups and the active driver.

Sources read · Upstream troubleshooting · Host preparation · Tahoe notes