Using Nvidia Quadro P600 GPU in OMV 6+ for Tdarr and Plex Transcoding

  • I've sifted through at least 50 web posts on how to install the Nvidia drivers in order to get docker to recognize the driver and make Tdarr and Plex use the GPU to transcode my videos. I became more confused the more I read. Folks tend to make things more complicated than they need to be. This will probably work for other Nvidia cards as well.


    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 an paste code.


    The instruction below worked for my setup. Your mileage may vary.


    1) Install the Nvida drivers

    2) Install the Nvidia Container Toolkit

    3) Don't allow OMV to overwrite /etc/docker/daemon.json

    4) Install Tdarr and Plex through OMV>Services>Compose>Files



    1) - Check what version of Debian you are running and install the driver

    Code
    lsb_release -d

    You should get something like this:


    root@omv6:~# lsb_release -d

    Description: Debian GNU/Linux 11 (bullseye)

    root@omv6:~#


    - Follow the very easy instruction in the Debian wiki to install the driver. https://wiki.debian.org/Nvidia…#Debian_11_.22Bullseye.22



    2) Install the Nvidia Container Toolkit following the very easy instructions on their website.


    Nvidia Container Toolkit


    Once the driver and toolkit is installed, you should a similar output to the one below.


    Screenshot 2023-11-23 183656.jpg



    3) NOTE: Upon OMV reboot and updates - the /etc/docker/daemon.json will be overwritten.

    To stop this:


    Go into your OMV GUI /Services/Compose/Settings


    In the "Docker storage" Section remove /var/library/docker and then save.


    You can then reboot the server to test that the daemon.json file is not being overwritten.


    Screenshot 2024-02-03 105518.png


    4) Install Tdarr through OMV>Services>Compose>Files


    - Be careful about format/spacing. Compose is finicky and may not start if you have a heading in the wrong space.


    The original example came from the Tdarr Compose section. I just had to tweak them for my OMV setup.


    Example from my system. Remember change the environment variables and volume section parameters to your OMV system.



    - Install PLEX through OMV>Services>Compose>Files





    If you are the kind of person that can't be satisfied with just the basics, here is the explanation of the various gpu settings that you can use in your compose yaml file.


    Turn on GPU access with Docker Compose
    Understand GPU support in Docker Compose
    docs.docker.com


    Me, I like to set it and forget it once it all works. My server has been sitting in a closet for 8 years and I just took it out to update the eight ( 8 year old) 4TB drives in a raid 6 array that have never failed me. The drives were getting a little slow an cranky. 4 out of the 8 drives were throwing a lot of SMART errors. I also neede more space. I ended up adding five 14TB drives in a raid 6 array. I hadn't updated OMV is a while. I figured I might as well update while I am building a new array. I did not realize OMV got rid of yacht and portainer...so here I am.






    Once I linked my GPU to Tdarr in the compose file, my Tdarr CPU transcode speed went from the CPU 23fps to the Nvidia GPU cranking out 8000-13,000fps.


    Screenshot 2023-11-23 125131.jpg





    Once I linked my GPU to the Plex container it now shows hardware (hw) transcode when needed.


    Screenshot 2023-11-23 135645.jpg



    Tdarr Plugin GPU Transcode Setting


    Make sure to use a Tdarr GPU Plugin that uses your GPU and set the switch to use "NVENC". Here is my Tdarr plugin stack that transcodes using the GPU.


    Screenshot 2023-11-25 105440.jpg

    9 Mal editiert, zuletzt von reverendspam () aus folgendem Grund: forgot that OMV overwrites /etc/docker/daemon.json on reboot or updates and added instructions to stop this.

  • chente

    Hat das Thema freigeschaltet.
  • ryecoaaron

    Hat das Thema freigeschaltet.
  • chente

    Hat das Thema freigeschaltet.
  • ryecoaaron

    Hat das Thema freigeschaltet.
  • ryecoaaron

    Hat das Thema freigeschaltet.
  • ryecoaaron

    Hat das Thema freigeschaltet.
  • macom

    Hat das Thema freigeschaltet.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!