Scroll through the output and find the GPU (usually a video and audio device associated with it) and make note of the device identifier (ex 01:00.0, 01:00.1)
Continue with the following commands
# output the vendor ID(s) of the devices # replace the device identifier (01:00) as needed lspci -n -s 01:00
Make note of the vendor ID(s) output in the format abcd:1234
Continue with the following commands
# replace the vendor ids from the output of the previous step as needed echo "options vfio-pci ids=1002:679a,1002:aaa0 disable_vga=1" > /etc/modprobe.d/vfio.conf # update initramfs update-initramfs -u # reboot proxmox host reboot now
After the system reboot, log back in and run the following command to verify the GPU is now using the vfio-pci driver
# replace the device identifier (01:00) as needed lspci -knn -s 01:00
Passing GPU to a MacOS VM
Log into the Proxmox web UI
Expand the target node and select the target MacOS VM from the left navigation menu
Select Hardware from the left sub-navigation menu
Click Add > PCI Device
Select the GPU from the listing NOTE: I have found that there is some trial and error required to get the GPU to work properly depending on the guest operating system. If you find that the GPU isn't working with all options checked, stop the VM, and edit the PCI hardware, unchecking one option at a time to see if you can find a working combination
Select Display > Set the dropdown to none (none) > Click OK
If you intend to use the VM at the console (not via RDP or VNC), you will need to passthrough a USB keyboard and mouse by clicking Add > USB Device > Select the USB device(s) or port(s) to pass to the VM
Click Start at the top right of the page
Watch the output of the GPU on an external display If there is no output from the GPU, stop the VM and adjust the PCI hardware options as noted above