I’m following this tutorial and I am stuck on the part where I want the vfio-pci driver for the gpu i’m trying to pass through. The problem is that i’m unable to change the driver from nvidia to vfio-pci.
I’m running Ubuntu 18.04 with the 4.18.5-041805-generic kernel.
PC setup:
AMD FX-8350
ASUS M5A97 EVO R2.0
GTX 970 - For the host OS
GTX 960 2GB - To pass through
The graphics cards are in their own IOMMU group with nothing else than the graphics cards in them:
IOMMU Group 13 06:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
IOMMU Group 13 06:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
IOMMU Group 15 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1)
IOMMU Group 15 01:00.1 Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio Controller [10de:0fbb] (rev a1)
My GRUB cmd line:
GRUB_CMDLINE_LINUX_DEFAULT="iommu=1 amd_iommu=on vfio_pci.ids=10de:0fba,10de:1401"
My /etc/initramfs-tools/modules file:
softdep nvidiafb pre: vfio vfio_pci
vfio
vfio_iommu_type1
vfio_virqfd
options vfio_pci ids=10de:1401,10de:0fba
vfio_pci ids=10de:1401,10de:0fba
vfio_pci
nvidiafb
My /etc/modules file:
vfio
vfio_iommu_type1
vfio_pci ids=10de:0fba,10de:1401
My /etc/modprobe.d/vfio_pci.conf file:
options vfio_pci ids=10de:0fba,10de:1401
When i run lspci -nnv I still get:
06:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. GM206 [GeForce GTX 960] [1043:8520]
Flags: bus master, fast devsel, latency 0, IRQ 51, NUMA node 0
Memory at f4000000 (32-bit, non-prefetchable) [size=16M]
Memory at a0000000 (64-bit, prefetchable) [size=256M]
Memory at b0000000 (64-bit, prefetchable) [size=32M]
I/O ports at c000 [size=128]
[virtual] Expansion ROM at f5000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
06:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:8520]
Flags: fast devsel, IRQ 14, NUMA node 0
Memory at f5080000 (32-bit, non-prefetchable) [disabled] [size=16K]
Capabilities: <access denied>
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
So the vfio-pci thing works on the audio part of the gpu but not the gpu part…
I’m pretty much a Linux noob so any help would be greatly appreciated