Skip to content

p7cq/VFIO-GPU-Configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

VFIO GPU Configuration

System:

Enable IOMMU

  • BIOS:

    • VT-d Enabled
    • VT-x Enabled
    • Graphics IGFX
  • Kernel

    • In /etc/sysconfig/grub append rd.driver.pre=vfio-pci intel_iommu=on iommu=pt to GRUB_CMDLINE_LINUX ; do not copy the entire line from the file in this repo, as it contains nopti and spectre_v2=off, thus ignoring this
    • Run # grub2-mkconfig -o /etc/grub2-efi.cfg (check with: # cat /proc/cmdline)
    • Create /etc/modprobe.d/vfio.conf and add options vfio-pci ids=10de:13c2,10de:0fbb
    • Create /etc/dracut.conf.d/vfio.conf containing add_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"
    • Regenerate initramfs # dracut -f --kver `uname -r` and reboot

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:


About

GPU PCI passthrough in KVM/QEMU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published