NVMe and VFIO troubles

Hi all,

I’m having a bit of an issue getting my system to boot after configuring vfio. It appears that the system is unable to find the NVME (500gb 970 pro) device after configuring vfio and dracut modules. Any assistance would be lovely.

I’ve looked at the initramfs that dracut makes, it’s got the nvme module in there, so I’m not really sure what’s going on there.

1950x on Fedora 29.

Nevermind, I was booting the wrong kernel. I was, in fact, not including nvme in the initrd.

So, for anyone in the future encountering this issue (and my notes because I’m forgetful) here’s the proper config:

/etc/dracut.conf.d/vfio.conf

drivers+="vfio vfio_pci vfio_virqfd vfio_iommu_type1 nvme"

build that, update grub with your config (need to include rd.driver.pre=vfio_pci for nvidia/amdgpu overriding) and you’re good.