VFIO GPU Configuration
System:
- CPU: Intel® Core™ i7-6700 Processor
- Motherboard: Asus Z170 Deluxe
- GPU: Asus STRIX GTX 970
- iGPU: Intel HD Graphics 530
- OS: Fedora 28 Workstation Edition
- Firmware: UEFI
Enable IOMMU
-
BIOS:
- VT-d Enabled
- VT-x Enabled
- Graphics IGFX
-
Kernel
- In
/etc/sysconfig/grubappendrd.driver.pre=vfio-pci intel_iommu=on iommu=pttoGRUB_CMDLINE_LINUX; do not copy the entire line from the file in this repo, as it containsnoptiandspectre_v2=off, thus ignoring this - Run
# grub2-mkconfig -o /etc/grub2-efi.cfg(check with:# cat /proc/cmdline) - Create
/etc/modprobe.d/vfio.confand addoptions vfio-pci ids=10de:13c2,10de:0fbb - Create
/etc/dracut.conf.d/vfio.confcontainingadd_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd" - Regenerate initramfs
# dracut -f --kver `uname -r`and reboot
- In
KVM/QEMU
-
Install Windows guest OS
-
Install and setup TightVNC server
-
Shutdown guest and edit domain XML file using
# virsh edit windows -
add
<kvm>
<hidden state='on'/>
</kvm>
inside <features/> tag
-
remove
<hyperv>tag -
Install Nvidia driver in guest OS and reboot
References: