I removed all the changes to /etc/default/grub
. It’s back to just:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
On update-grub
, update-initramfs
, reboot
, I get:
Kernel driver in use: vfio-pci
On both the graphics card and the audio controller. So we’ve learned that nothing needs set in grub to get vfio-pci
to bind.
When starting the VM, I get, in dmesg
:
[ 498.206956] vfio-pci 0000:0b:00.0: enabling device (0000 -> 0003)
[ 498.207276] vfio-pci 0000:0b:00.0: vfio_ecap_init: hiding ecap 0x19@0x900
Now, it does look like there is some conflict stuff going on during host boot:
# dmesg | grep 'NVRM\|nvidia'
[ 7.370277] nvidia: loading out-of-tree module taints kernel.
[ 7.370283] nvidia: module license 'NVIDIA' taints kernel.
[ 7.376613] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 7.387381] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[ 7.387608] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 7.387609] NVRM: This can occur when a driver such as:
NVRM: nouveau, rivafb, nvidiafb or rivatv
NVRM: was loaded and obtained ownership of the NVIDIA device(s).
[ 7.387610] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[ 7.387610] NVRM: No NVIDIA devices probed.
[ 7.387668] nvidia-nvlink: Unregistered the Nvlink Core, major device number 241
[ 7.521436] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[ 7.521688] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 7.521689] NVRM: This can occur when a driver such as:
NVRM: nouveau, rivafb, nvidiafb or rivatv
NVRM: was loaded and obtained ownership of the NVIDIA device(s).
[ 7.521689] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[ 7.521690] NVRM: No NVIDIA devices probed.
[ 7.521754] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240
[ 7.535373] audit: type=1400 audit(1610081286.030:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=795 comm="apparmor_parser"
[ 7.535375] audit: type=1400 audit(1610081286.030:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=795 comm="apparmor_parser"
[ 7.712666] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[ 7.713058] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 7.713058] NVRM: This can occur when a driver such as:
NVRM: nouveau, rivafb, nvidiafb or rivatv
NVRM: was loaded and obtained ownership of the NVIDIA device(s).
[ 7.713060] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[ 7.713060] NVRM: No NVIDIA devices probed.
[ 7.713165] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240
[ 7.851464] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[ 7.851677] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 7.851678] NVRM: This can occur when a driver such as:
NVRM: nouveau, rivafb, nvidiafb or rivatv
NVRM: was loaded and obtained ownership of the NVIDIA device(s).
[ 7.851679] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[ 7.851679] NVRM: No NVIDIA devices probed.
[ 7.851736] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240
[ 8.055696] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[ 8.055952] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 8.055953] NVRM: This can occur when a driver such as:
NVRM: nouveau, rivafb, nvidiafb or rivatv
NVRM: was loaded and obtained ownership of the NVIDIA device(s).
[ 8.055953] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[ 8.055953] NVRM: No NVIDIA devices probed.
[ 8.056020] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240
Looks like the same thing repeats five times. I wonder if specifying in multiple places is causing issues. Or maybe it’s something else?