I need to blacklist Nvidia open source driver ( actually both nouveau and akmod-nvidia-open ) because I’m passing through the GPU. Until I didn’t have nvidia driver, VM started fine( I did blacklist nouveau though ). Since I installed it, I can’t get rid of it. I using multiple grub entries to select when to blacklist. I don’t run update-initramfs as it affects all entries. I’m running latest version, 44.
Just dnf remove the nvidia drivers if you do not want to use them.
Are you unsure what commands to run?
Are there drivers in the initramfs? Maybe rebuild with dracut?
To pass through the nvidia GPU you must ensure no drivers are loaded for that GPU in the host.
Remove the drivers from the host, and ensure the nouveau drivers is still blacklisted by the host kernel command line.
Then install the nvidia driver in the VM so it gets loaded when the VM is launched.
To remove the drivers from the host use the command sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware and reboot to ensure that no drivers are loaded for that gpu.
On the host verify the nouveau drivers are not loaded with lsmod | grep nouveau
More context, machine has two GPUs and secure boot enabled. Depending on boot entry, I need nvidia drivers or blacklist them. The culprit was a typo in ( grub ) boot command line arguments.
While investigating, I pondered installing nvidia’s binaries ( instead of rpmfusion’s ). I assume, reading documentation, Fedora binaries are not signed because I see no mention of any public key as it’s the case for RHEL.
Nothing to see here, everything works as expected.