This thread is created to add some additional options and way to address some issues beyond this thread:
I hope this helps others.
I've narrowed my install down to 4 major steps. I am not one to re-invent the wheel and even happier when I can mostly just cut…
1. I am currently on Linux kernel 6.1.0.21. This creats issue with the Debian Nvidia drivers. To fixt this, I install the official Nvidia Driver from the website. One syptome being that the command nvidia-smi does not work.
- Download the current version from nvidia.com. Current version can be found here: https://www.nvidia.com/Downloa…esults.aspx/224350/en-us/
- Upload the file to the OMV
- chmod +x ./NVIDIA-Linux-$(uname -m)-*.run to make the file executable
- Install dependencies:
apt -y install linux-headers-$(uname -r) make gcc acpid dkms - Start the setup by running ./NVIDIA-Linux-$(uname -m)-*.run
- Remember to say "YES" to in setup if asked if you want to disable "Nouveau"
- Then install the Nvidia Container Toolkit: https://docs.nvidia.com/datace…latest/install-guide.html
2. After everything works, I realised that after a sleep and wake-up cycle GPU transcoding stops working. After some research I found out that this issue is known. To fix that you need to stop Plex before going to sleep and then to start it after wake up.
a. Create /etc/systemd/system/wakeup-script.service with the following content (considering that your plex container's name is plex)
[Unit]
Description=Run script on wakeup from sleep
After=suspend.target
[Service]
Type=oneshot
ExecStart="docker plex start"
[Install]
WantedBy=suspend.target
b. Enable the service: Enable the service so that systemd runs it after every wake-up: systemctl enable wakeup-script.service
c. Reload systemd: Reload the systemd daemon to recognize the new service: systemctl daemon-reload
d. Create /etc/systemd/system/pre-sleep.service with the following content (considering that your plex container's name is plex):
[Unit]
Description=Run a script before the system goes to sleep
Before=sleep.target
[Service]
Type=oneshot
ExecStart="docker stop plex"
[Install]
WantedBy=sleep.target
e. Enable the service so that it runs before the system goes to sleep: sudo systemctl enable pre-sleep.service
f. Reload systemd manager configuration: sudo systemctl daemon-reload