Giter VIP home page Giter VIP logo

Comments (19)

ehfd avatar ehfd commented on June 9, 2024

On it in around a week... but first contact GStreamer devs at #gstreamer in the oftc.org IRC or https://matrix.to/#/#_oftc_#gstreamer:matrix.org on this, as it may be a faster solution.

from docker-nvidia-egl-desktop.

 avatar commented on June 9, 2024

any chance you cloud look into this?

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

Thanks for the reminder. First of all, I need the conditions for your workspace. Anything special in your setup?

from docker-nvidia-egl-desktop.

 avatar commented on June 9, 2024

No. I think it was working on a previous version of Nvidia driver and it stops working after an apt upgrade

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

Okay, I will check NVIDIA 535.

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

Works for me. Please reproduce on the latest container build.
https://github.com/selkies-project/docker-nvidia-egl-desktop/pkgs/container/nvidia-egl-desktop

from docker-nvidia-egl-desktop.

 avatar commented on June 9, 2024

Strange, the error persists even if I pulled the latest image. Here is my docker compose file

version: '3.8'
services:
    ubuntu:
        container_name: ubuntu
        restart: unless-stopped
        image: ghcr.io/selkies-project/nvidia-egl-desktop:22.04
        environment:
            - PASSWD=12345678
            #- WEBRTC_ENCODER=x264enc
            - WEBRTC_ENABLE_RESIZE=false
            - ENABLE_AUDIO=true
            - NOVNC_SIDE=true
            - ENABLE_BASIC_AUTH=true
            - VIDEO_PORT=DP-0
            - NVIDIA_DRIVER_CAPABILITIES=all
            - NVIDIA_VISIBLE_DEVICES=all
        tmpfs:
            - '/dev/shm'
        logging:
            driver: "local"
            options:
                max-size: 1m
        cap_add:
            - NET_BIND_SERVICE
            - SYS_ADMIN
        sysctls:
            - net.ipv4.ip_unprivileged_port_start=0
        deploy:
            resources:
                reservations:
                    devices:
                       - capabilities: ["gpu"]
        networks:
            default:
        

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

Could you try removing SYS_ADMIN and try again? Or did it work for you with that setting until 535?

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024
deploy:
  resources:
    reservations:
      devices:
      - capabilities: ["gpu"]

Just asking because I don't know; does this syntax correctly provision the GPUs? Looks a bit different from what I know of.

from docker-nvidia-egl-desktop.

 avatar commented on June 9, 2024

Yes it's correct, it was working before 535.

I also tried specifying Nvidia driver like in https://docs.docker.com/compose/gpu-support/ and removed SYS_ADMIN , but it still didn't work.

from docker-nvidia-egl-desktop.

 avatar commented on June 9, 2024

I think GPUtil can no logner get the gpu info, and the compiled docker image has libnvrtc missing

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

@danisla any clues?...

Continues to work for me.

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

I believe there is something specific to your setup. I need all the relevant information about the host and stacks.

from docker-nvidia-egl-desktop.

 avatar commented on June 9, 2024

Host server is a fresh-installed Ubuntu 22.04.3 LTS with nvidia-headless-535 on a 3060 GPU. No customized kernel or anything special.

$ apt list --installed |grep nvidia

libnvidia-cfg1-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-compute-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-container-tools/bionic,now 1.13.5-1 amd64 [installed]
libnvidia-container1/bionic,now 1.13.5-1 amd64 [installed]
nvidia-compute-utils-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-container-toolkit-base/bionic,now 1.13.5-1 amd64 [installed,automatic]
nvidia-container-toolkit/bionic,now 1.13.5-1 amd64 [installed]
nvidia-dkms-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-docker2/bionic,now 2.13.0-1 all [installed]
nvidia-firmware-535-535.86.05/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-headless-530/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed]
nvidia-headless-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-headless-no-dkms-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-kernel-common-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-kernel-source-535/jammy-updates,jammy-security,now 535.86.05-0ubuntu0.22.04.1 amd64 [installed,automatic]

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

nvidia-headless-535?... I think that might be one of the issues.

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

I don't see the nvenc libraries in that package.

from docker-nvidia-egl-desktop.

 avatar commented on June 9, 2024

I don't see the nvenc libraries in that package.

it works now! but wait... should nvenc be included in the docker image or taken from the host?

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

It should be pushed from the host if NVIDIA_DRIVER_CAPABILITIES is all or includes video.

I should add to the docs that you should not use headless drivers in the host.

It is another possibility to put the libraries inside the Docker container. But the version must be the same as the host. Please keep open.

from docker-nvidia-egl-desktop.

ehfd avatar ehfd commented on June 9, 2024

Docs added.

from docker-nvidia-egl-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.