Hello folks, long time no post.
Hope you are all keeping well.
I recently picked up some kit to start looking at GPU passthrough with KVM, but I’m now running into a little trouble.
I have an Intel Z75 board with a CPU supporting integrated graphics, and an Nvidia graphics card that I want to pass through. The board supports Intel VT-d.
My Linux flavour of choice is Ubuntu 16.04 Gnome. I’m keen to get it working on this version.
After installing and setting up a network bridge, KVM and IOMMU I can see the IOMMU groups and the graphics card shows up as two devices, a GPU and an audio device.
This is where I’m encountering the issue.
I want to use the integrated graphics for the host system and pass through the GPU for the virtual machine, however both the nvidia GPU and Intel integrated are grabbed by Nouveau at startup.
I need Nouveau for the host, but somehow make it leave the GPU alone.
So far I have added the PCI IDs into etc/initramfs-tools/modules so that it looks like the below.
softdep nouveau pre: vfio vfio_pci
softdep nvidiafd pre: vfio vfio_pci
vfio
vfio_iommu_type1
vfio_pci ids=10de:1244,10de:0bee
options vfio_pci ids=10de:1244,10de:0bee
options vfio_pci ids=10de:1244
options vfio_pci ids=10de:0bee
nouveau
This seems to have worked for the audio device, which shows the kernel driver as vfio_pci, but the GPU is still controlled by Nouveau.
Could anybody give some insight as to how I may be able to get this working?
Thanks in advance, Fantom.