Installing nvidia drivers in Fedora TemplateVM

I’ve used GPU passthrough for quite a while in Qubes and it’s been… decent. I usually used a Debian 12 VM for it, as the installation of drivers was the simplest there. Unfortunately, I’ve started running into hard-to-debug problems with Proton which I can only blame on Debian’s old packages (no idea if I’m correct).

As such, I’ve tried to set up a different GPU template. Arch was simple to install, drivers too, but for some reason the performance (with PRIME) is just extremely horrible, ~7fps in games in which I could do 60+ on Debian. Game was running on the dGPU, just so so slowly for some reason.

This is how I’ve come to trying to install nvidia drivers in a Fedora Template, but no matter if I try using fc41 or fc42, akmod falls over during compilation with cryptic errors, googling which only leads me to a github issue for nixos patches for the drivers…?

That’s why I’d like to ask: has anyone managed to get nvidia drivers installed on fc41/fc42 in Qubes? If so, what steps did you take?

1 Like

Update: I’ve found out why the performance on Arch sucks. Arch automatically enables KMS for the nvidia driver and Debain 12 does not. For some reason KMS causes significant performance issues. Looking more into it.

1 Like