i was doing the vfio (the lts 4.19 one) and acs override patch (which worked) with a fresh install of Manjaro but I couldnt for the life of me make it work AND still be able to get to my desktop.
it would hang before X, manually starting via startx revealed that no displays are found.
via journalctl -r i get
systemd: Failed to start Light Display Manager.
and further down
systemd-modules-load: Failed to find module ‘nvidia-drm’
systemd-modules-load: Failed to find module ‘nvidia’
Using the default 4.19 Kernel still works flawlessly.
When I upgrade the Kernel to 4.20.1 via pacman -Syu the problem is the same as with the vfio Kernel.
What can I do about this?
And unrelated side question: Why is the vfio 4.20 marked out of date?
Give it a shot if you have that option. I’m not familiar with majaro, but usually when my graphics driver breaks after a kernel upgrade I can fix it easily by either upgrading my driver or reinstalling it.
It only worked half way. the second part where i install the driver again installs another kernel. At least I’m now on the desktop with the vfio kernel. Software rendering is terribly slow
how do I get the nvidia driver to load on the vfio kernel?
You could try installing the nvidia driver manually from the packaged provided by nvidia.
It should install the modules for whatever kernel version is currently running.
Again, I think you might need the nvidia, nvidia_modeset, nvidia_uvm, and nvidia_drm kernel modules, or at least nvidia and nvidia_drm, because in your original post that is why the display driver wasn’t loaded. But I don’t know if it’s because they weren’t told to be loaded or if it’s because they simply don’t exist for that kernel. I checked and if you saw the systemd-modules-load it was because you had the nvidia and nvidia_drm modules in your config, but they didn’t exist on disk. At least according to systemd documentation.
"systemd-modules-load.service is an early boot service that loads kernel modules based on static configuration."
It really seems like the manjaro nvidia installer isn’t installing the kernel modules for your vfio kernel.
recommend against downloading and installing from nvidia site
pacman will upgrade kernel 4.19 (currently 4.19.16) with nvidia driver to match
but does not update to next version number 4.20
suggest go to Settings > Manjaro Settings Manager > Kernel
and install 4.19 kernel if needed (this is the latest 'Long Term Supported kernel)
can have more than one kernel installed, i keep 2 installed in case of problems
My plan was to have FreeNAS in a vm with the sata controller passed through. Now that this isnt easy because of the “special” vfio kernel + nvidia suckery, i decied against that.
The only features i need are zfs, samba and nfs anyways.
I’ve been reading a lot on zfs the last few days and already have a fantastic 10x8TB (shucked easystores) RAIDZ2 running
I have my drives hooked up to the chipset sata controller. This controller is in one IOMMU Group with other stuff I need on my host system. To split them up I have to use the vfio kernel with the acs patch applied. Passthrough then worked fine and freenas did everything i wanted, but since my host system is still going to be used for gpu intensive stuff (blender and gaming) i wanted to use the better performing non-free driver. This driver seems to not work with something other than the mainline kernels. Thats why I ditched the idea of using freenas in a vm and turned my head to the basically only feature of freenas i actually need: zfs.
This may not be of help, but here is my personal workflow. It requires a second GPU, or headless host system.
I occasionally want and need to use proprietary nvidia drivers. I pass my nvidia card into its own VM. There are a lot of great resources on gpu passthrough on this forum.
Done right you get the following advantages:
separation of host kernel and guest kernel with nvidia drivers (talking about in a version sense, not tinfoil hat security sense)
snapshotting VM once you get GPU acceleration for whatever task up and running
can run whatever host distro you prefer, and run whatever distro is most convenient for the gpu accelerated task (usually Ubuntu) as guest
can run an older guest (Ubuntu 16.04 tends to work much better for some stuff I do than 18.04 at this point)
Idk sorry if that’s an impractical option for you. As far as nvidia driver install methods go, I personally prefer adding their PPA’s. Ubuntu’s own repos will place their stuff in a different place. With the runfile you must run again after every kernel upgrade or change (but good choice if in a VM that you’re okay with keep outdated).