Main tutorial: https://ycnrg.org/vga-passthrough-with-ovmf-vfio/
Other resources:
- https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
- https://github.com/sk1080/nvidia-kvm-patcher
Reset issue After powering off the Windows VM, it cannot be started again without a host power-cycle. Might be related to Windows not properly resetting the device and Linux being unable to power-cycle it by itself.
- https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Passing_through_a_device_that_does_not_support_resetting
- https://forum.level1techs.com/t/linux-host-windows-guest-gpu-passthrough-reinitialization-fix/121097
- https://forums.unraid.net/topic/71768-vm-windows-10-gpuusb-passthrough-not-resetting-on-restart/
File changes
/etc/modules
:
pci_stub
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
kvm
kvm_intel
nouveau
/etc/modprobe.d/blacklist-nouveau.conf
:
blacklist nouveau
/etc/default/grub
: add
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt pci_stub.ids=xxxx:xxxx,xxxx:xxxx"