I should first mention that I have two NVIDIA GPU Cards, so I want to keep the NVIDIA drivers installed. I had a GPU passthrough system setup on ubuntu 23.04, and am attempting to recreate the same gaming VM for windows games on Fedora 36.
Currently running
lspci -nnk
shows:
28:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660 Ti] [10de:2182] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3750]
Kernel driver in use: vfio-pci
Kernel modules: nouveau, nvidia_drm, nvidia
28:00.1 Audio device [0403]: NVIDIA Corporation TU116 High Definition Audio Controller [10de:1aeb] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3750]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
28:00.2 USB controller [0c03]: NVIDIA Corporation TU116 USB 3.1 Host Controller [10de:1aec] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3750]
Kernel driver in use: xhci_hcd
28:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU116 USB Type-C UCSI Controller [10de:1aed] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3750]
Kernel driver in use: vfio-pci
Kernel modules: i2c_nvidia_gpu
For some reason only one of the PCI devies is grabbed by the nvidia driver?
I have created the following files with their respective contents as follows:
/etc/modules-load.d/vfio.conf
vfio
vfio-pci
vfio_virqfd
vfio_iommu_type1
/etc/dracut.conf.d/vfio.conf
add_dracutmodules+=" vfio "
force_drivers+=" vfio vfio-pci vfio_iommu_type1 "
/etc/modprobe.d/nvidia.conf
:
softdep nouveau pre: vfio-pci
softdep nvidia pre: vfio-pci
softdep nvidia* pre: vfio-pci
softdep snd_hda_intel pre:vfio-pci
softdep i2c_nvidia_gpu pre: vfio-pci
softdep nvidia-gpu pre: vfio-pci
softdep xhci_hcd pre: vfio vfio_pci vfio-pci
softdep xhci_pci pre: vfio vfio_pci vfio-pci
softdep pcieport pre: vfio vfio_pci vfio-pci
softdep nvidia_drm pre: vfio vfio_pci vfio-pci
as well as /etc/default/grub
containing this line:
GRUB_CMDLINE_LINUX=“rd.driver.pre=vfio-pci rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb quiet video=efifb:off amd_iommu=on kvm.ignore_msrs=1 vfio-pci.ids=10de:2182,10de:1aeb,10de:1aec,10de:1aed”
I have been updating intrafms with
sudo dracut -f --kver $(uname -r)
as well as updating grub via:
sudo grub2-mkconfig -o /etc/grub2-efi.cfg
I have literally no idea what i am doing. This was relatively straight forward on ubuntu, and maybe I am doing something wrong given this is fedora. I’m not sure. Any help would be greatly appreciated.