Drivers in dracut.conf Not Loaded at Boot
Posted: 2018/05/12 22:09:59
I am setting up to do GPU passthrough in KVM to a VM using OMVF, but it's got a cray in its craw.
I've added to /etc/dracut.d/vfio.conf:
... and to /etc/modprobe.d/vfio.conf:
... then # dracut --force
... which should add those drivers and their options to initramfs. And examining initramfs they are indeed there:
But on boot the drivers are simply not loading. They do not appear in lsmod, and the normal default drivers are assigned to the video and sound cards.
I see no mention of vfio in dmesg, journalctl, or messages. How is this getting overlooked?
I've added to /etc/dracut.d/vfio.conf:
Code: Select all
add_drivers+=" vfio_pci vfio vfio_iommu_type1 vfio_virqfd "
Code: Select all
options vfio-pci ids=10de:1c02,10de:10f1
... which should add those drivers and their options to initramfs. And examining initramfs they are indeed there:
Code: Select all
# lsinitrd |grep vfio
-rw-r--r-- 1 root root 41 May 12 14:23 etc/modprobe.d/carls-vfio.conf
drwxr-xr-x 3 root root 0 May 12 14:53 usr/lib/modules/4.16.7-1.el7.elrepo.x86_64/kernel/drivers/vfio
drwxr-xr-x 2 root root 0 May 12 14:53 usr/lib/modules/4.16.7-1.el7.elrepo.x86_64/kernel/drivers/vfio/pci
-rwxr--r-- 1 root root 82336 May 12 14:53 usr/lib/modules/4.16.7-1.el7.elrepo.x86_64/kernel/drivers/vfio/pci/vfio-pci.ko
-rwxr--r-- 1 root root 30800 May 12 14:53 usr/lib/modules/4.16.7-1.el7.elrepo.x86_64/kernel/drivers/vfio/vfio_iommu_type1.ko
-rwxr--r-- 1 root root 55080 May 12 14:53 usr/lib/modules/4.16.7-1.el7.elrepo.x86_64/kernel/drivers/vfio/vfio.ko
-rwxr--r-- 1 root root 11072 May 12 14:53 usr/lib/modules/4.16.7-1.el7.elrepo.x86_64/kernel/drivers/vfio/vfio_virqfd.ko
Code: Select all
IOMMU Group 1 00:01.0 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x16) [8086:1901] (rev 07)
IOMMU Group 1 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
IOMMU Group 1 01:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)
Code: Select all
lspci -k
01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 85b9
Kernel driver in use: nouveau
Kernel modules: nouveau
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 85b9
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel