Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

I created a script to block nouveau drivers and use vfio-pci drivers

After running that your system is ready to do GPU Passthrough, you just need to add the KVM off flag to the Domain XML

BEFORE REBOOT

[root@localhost ~]# lspci -nnk -d 10de:1c81
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050] [10de:1c81] (rev a1)
Subsystem: eVga.com. Corp. Device [3842:6152]
Kernel driver in use: nouveau
Kernel modules: nouveau
[root@localhost ~]# lspci -nnk -d 10de:0fb9
01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
Subsystem: eVga.com. Corp. Device [3842:6152]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

AFTER REBOOT

[root@localhost ~]# lspci -nnk -d 10de:1c81
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050] [10de:1c81] (rev a1)
Subsystem: eVga.com. Corp. Device [3842:6152]
Kernel driver in use: vfio-pci
Kernel modules: nouveau
[root@localhost ~]# lspci -nnk -d 10de:0fb9
01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
Subsystem: eVga.com. Corp. Device [3842:6152]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
[root@localhost ~]#

VM Domain XML Configuration

virsh edit VMNAME

Within the <features> section:

<kvm>
<hidden state='on'/>
</kvm>
  • No labels