Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Jellyfin
  3. CUDA not permitted

CUDA not permitted

Scheduled Pinned Locked Moved Solved Jellyfin
18 Posts 6 Posters 6.2k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nebulonN Away
    nebulonN Away
    nebulon
    Staff
    wrote on last edited by
    #8

    After some investigation, it turns out that one has to use a custom docker version provided by nvidia to add support for this. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#getting-started and https://github.com/NVIDIA/nvidia-docker

    So this means that we have to somehow add support on the Cloudron platform side as well as make sure things are working in nvidia and then also non-nvidia case, given that docker parts have to be compatible with whatever the server currently provides hardware wise.

    So this is a bit out of scope for the coming release but hopefully we can get this supported afterwards.

    N robiR A 4 Replies Last reply
    1
    • nebulonN nebulon

      After some investigation, it turns out that one has to use a custom docker version provided by nvidia to add support for this. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#getting-started and https://github.com/NVIDIA/nvidia-docker

      So this means that we have to somehow add support on the Cloudron platform side as well as make sure things are working in nvidia and then also non-nvidia case, given that docker parts have to be compatible with whatever the server currently provides hardware wise.

      So this is a bit out of scope for the coming release but hopefully we can get this supported afterwards.

      N Offline
      N Offline
      natzilla
      wrote on last edited by
      #9

      @nebulon

      I'm surprised I missed that, but I'm also surprised Nvidia had to make this difficult. Going forward I'm willing to provide you the access you need for testing implementation whenever that can happen. I'll have to live with none hardware acceleration for now.

      1 Reply Last reply
      0
      • nebulonN nebulon

        After some investigation, it turns out that one has to use a custom docker version provided by nvidia to add support for this. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#getting-started and https://github.com/NVIDIA/nvidia-docker

        So this means that we have to somehow add support on the Cloudron platform side as well as make sure things are working in nvidia and then also non-nvidia case, given that docker parts have to be compatible with whatever the server currently provides hardware wise.

        So this is a bit out of scope for the coming release but hopefully we can get this supported afterwards.

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #10

        @nebulon this appears to use a docker configuration in privileged mode to get access to the hardware device, which goes against the cloudron use case and security posture.

        A better approach would be to use a different runc such as sysbox-runc that can solve that issue without requiring privileged mode.

        Conscious tech

        1 Reply Last reply
        1
        • nebulonN nebulon

          After some investigation, it turns out that one has to use a custom docker version provided by nvidia to add support for this. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#getting-started and https://github.com/NVIDIA/nvidia-docker

          So this means that we have to somehow add support on the Cloudron platform side as well as make sure things are working in nvidia and then also non-nvidia case, given that docker parts have to be compatible with whatever the server currently provides hardware wise.

          So this is a bit out of scope for the coming release but hopefully we can get this supported afterwards.

          N Offline
          N Offline
          natzilla
          wrote on last edited by
          #11

          @nebulon

          Hi, it's been a little while since this was last looked into. With the suggestion from robi do you think this is something we can look at doing soon? I am still willing to provide access for testing CUDA.

          1 Reply Last reply
          2
          • nebulonN nebulon

            After some investigation, it turns out that one has to use a custom docker version provided by nvidia to add support for this. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#getting-started and https://github.com/NVIDIA/nvidia-docker

            So this means that we have to somehow add support on the Cloudron platform side as well as make sure things are working in nvidia and then also non-nvidia case, given that docker parts have to be compatible with whatever the server currently provides hardware wise.

            So this is a bit out of scope for the coming release but hopefully we can get this supported afterwards.

            A Offline
            A Offline
            AartJansen
            wrote on last edited by AartJansen
            #12

            @nebulon it looks like that nvidia-docker has been superseded by nvidia container toolkit
            https://github.com/NVIDIA/nvidia-container-toolkit
            Does that make the issue go away or change anything at all ?
            I'm also happy to allow you access to my cloudron server with nvidia GPU to try out.

            I've got the nvidia drivers installed, and nvidia container toolkit installed also, but...

            In this guide
            https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
            I have stopped at running the configuration command

            sudo nvidia-ctk runtime configure --runtime=docker
            

            because the file /etc/docker/daemon.json doesn't exist... (and I can't find it anywhere else either) which leads me to think it's not going to work.
            Also theres nothing explaining what effect it will have on the existing docker containers, I'm assuming it will add access to the GPU to all containers.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              robw
              wrote on last edited by
              #13

              The file is created if it doesn't exist already, I think that command is safe to run:

              image.png

              1 Reply Last reply
              1
              • A Offline
                A Offline
                AartJansen
                wrote on last edited by AartJansen
                #14

                Did it make any difference?
                Assuming its functioning I would think the docker start would still have to be modified.
                ie docker run --gpu all <container> where ever that is.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AartJansen
                  wrote on last edited by
                  #15

                  Ended up removing jellyfin from cloudron, its basically useless without hardware transcoding, imo.

                  I followed these instructions https://www.geeksforgeeks.org/how-to-install-jellyfin-media-server-on-ubuntu-22-04/ to install it in ubuntu (i know its not a supported config). And streaming with nvidia support makes it work like a different product. I don't have fancy DNS or SSL certs ...but it works

                  robiR 1 Reply Last reply
                  0
                  • A AartJansen

                    Ended up removing jellyfin from cloudron, its basically useless without hardware transcoding, imo.

                    I followed these instructions https://www.geeksforgeeks.org/how-to-install-jellyfin-media-server-on-ubuntu-22-04/ to install it in ubuntu (i know its not a supported config). And streaming with nvidia support makes it work like a different product. I don't have fancy DNS or SSL certs ...but it works

                    robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by robi
                    #16

                    @AartJansen I still think more progress could be made if a different docker runtime would be used as mentioned in #10

                    Conscious tech

                    1 Reply Last reply
                    0
                    • jamesJ james has marked this topic as solved on
                    • B Offline
                      B Offline
                      bwag
                      wrote last edited by
                      #17

                      Does Cloudron now support NVIDIA GPUs for jellyfin? The topic is marked as solved, but the documentation page still says that it's not supported.

                      I just added a Quadro P400 but have not been able to get Jellyfin to use it so far. I am wondering if I am missing some configuration steps, or if it's just not supported.

                      1 Reply Last reply
                      0
                      • nebulonN Away
                        nebulonN Away
                        nebulon
                        Staff
                        wrote last edited by
                        #18

                        Given that this also uses CUDA just like AI acceleration, I guess one also needs the nvidia patched docker container runtime then? But I don't have nvidia cards to test this. If this is the case though and jellyfin does not just work by exposing /dev/dri to the container, then this is not supported and likely hard to support for Cloudron itself, as using a patched container runtime, which does not work on non nvidia systems is very hard for us to test properly.

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search