Guide to pass iGPU to MacOS KVM guest.
i915ovmf.rom
from releases OR build yourself.i915ovmf.rom
, opregion.bin
, bdsmSize.bin
) in i915ovmf
directory of this repo.Replace working OpenCore EFI to OpenCore-Catalina
directory.
Build it:
./opencore-rebuild.sh
Place BaseSystem.img
and mac_hdd_ng.img
to root of this repo.
Grab PCI ID:
lspci -D -nn
Find your iGPU PCI ID and place it inside boot.sh
.
Boot it:
# This script will unbind iGPU from the host and make it ready for passthrough.
# After that it will run `opencore-boot-pt.sh` which is runs `qemu` command to boot OSX.
# On shutdown it will rebind the iGPU to the host.
# TIP: Running this on ssh session will helps us a lot to debug the issue.
sudo ./boot.sh
qemu-system-x86_64: -device vfio-pci,host=0000:00:02.0,id=hostdev0,bus=pcie.0,addr=0x2,romfile=i915ovmf.rom: IGD device 0000:00:02.0 cannot support legacy mode due to existing devices at address 1f.0
but ignore that warning.
config.plist
, If this thing is correct you will be good to go!!