I’m running Plex-Server in an Ubuntu VM in Proxmox with GPU passthrough for hardware transcoding. All works well until update plex-server, the GPU disappears and I have to re-install the nvidia driver to get it working again.
So I updated Plex again to latest version and the Nvidia drivers were removed again. Could Ubuntu be installing Nouveau drivers during the update process and overwriting the Nvidia drivers?
After the update I ran
nvidia-smi
Got a reply of “no nvidia drivers installed” So I ran this again
Sorry if this is too basic. Did you reboot the VM freshly after the update, and still get the same bad response to nvidia-smi? I do see where ChuckPa is coming from, I wouldn’t expect the nvidia drivers to be touched by updating Plex.
I have the same type of setup. Proxmox host, gpu passthrough, running ubuntu 22.04 VM with Plex. I have not had the issues your are seeing.
The service file gets put in /lib/systemd/system
Control files (preinst,postinst, etc) all run as part of the install
– You can find these files, after installation, here:
[chuck@lizum plex.2015]$ cd /var/lib/dpkg/info
[chuck@lizum info.2016]$ ls plexm*
plexmediaserver.list plexmediaserver.md5sums plexmediaserver.postinst* plexmediaserver.postrm* plexmediaserver.preinst* plexmediaserver.prerm*
[chuck@lizum info.2017]
If you can’t see the card here -AND- it points to a pci bus location
[chuck@glockner drivers.2006]$ ls -la
total 0
drwxr-xr-x 2 root root 0 Nov 9 17:56 ./
drwxr-xr-x 6 root root 0 Nov 8 22:31 ../
lrwxrwxrwx 1 root root 0 Nov 9 17:56 pci:nvidia -> ../../../bus/pci/drivers/nvidia/
lrwxrwxrwx 1 root root 0 Nov 9 17:56 pci:nvidia-nvswitch -> ../../../bus/pci/drivers/nvidia-nvswitch/
[chuck@glockner drivers.2007]$ pwd
/sys/module/nvidia/drivers
[chuck@glockner drivers.2008]$ ls -la ../../../bus/pci/drivers/nvidia/
total 0
drwxr-xr-x 2 root root 0 Nov 8 22:31 ./
drwxr-xr-x 37 root root 0 Nov 8 22:31 ../
lrwxrwxrwx 1 root root 0 Nov 8 22:31 0000:07:00.0 -> ../../../../devices/pci0000:00/0000:00:03.0/0000:07:00.0/
--w------- 1 root root 4096 Nov 9 17:58 bind
lrwxrwxrwx 1 root root 0 Nov 8 22:31 module -> ../../../../module/nvidia/
--w------- 1 root root 4096 Nov 9 17:58 new_id
--w------- 1 root root 4096 Nov 9 17:58 remove_id
--w------- 1 root root 4096 Nov 9 12:57 uevent
--w------- 1 root root 4096 Nov 9 17:58 unbind
[chuck@glockner drivers.2009]$
Basically, files that ships in packages downloaded from distribution repository go into /usr/lib/systemd/. Modifications done by system administrator (user) go into /etc/systemd/system/.
System-specific units override units supplied by vendors.
/lib/systemd/system is under the control of the package manager /etc/systemd/system is where you put UNIT-level overrides (ignores /lib/systemd/system)
/etc/systemd/system/<servicename>.d/override.conf is how you change singular items in the /lib/systemd/system default distribution service file.
So installing the NVIDIA drivers as documented in the link above fixed this for me, I can now update Plex Server and the NVIDIA GPU still shows up after the update.