Code Monkey home page Code Monkey logo

Comments (10)

3XX0 avatar 3XX0 commented on August 10, 2024 14

Can you try setting user = "root:vglusers" in /etc/nvidia-container-runtime/config.toml

from libnvidia-container.

hmeine avatar hmeine commented on August 10, 2024 1

Some of the presumably irrelevant hits pointed to wrong device permissions, which I tried to rule out.

crw-rw---- 1 root vglusers 195,   0 Okt  9 16:27 /dev/nvidia0
crw-rw---- 1 root vglusers 195, 255 Okt  9 16:27 /dev/nvidiactl
crw-rw---- 1 root vglusers 195, 254 Okt  9 16:27 /dev/nvidia-modeset
crw-rw-rw- 1 root root     236,   0 Okt  9 16:27 /dev/nvidia-uvm
crw-rw-rw- 1 root root     236,   1 Okt  9 16:31 /dev/nvidia-uvm-tools

I am in the vglusers group, and I also temporarily changed them all to mode 0666.

from libnvidia-container.

hmeine avatar hmeine commented on August 10, 2024 1

I found the culprit: At some point in the past, I had virtualgl installed. Uninstalling that left two configuration files, which I had to remove:

/etc/udev/rules.d/99-virtualgl-dri.rules contained

KERNEL=="card[0-9]", MODE="0660", OWNER="root", GROUP="vglusers"

and /etc/modprobe.d/virtualgl.conf contained:

options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=1005 NVreg_DeviceFileMode=0660

I removed both files, ran update-initramfs -u in order to let the changed options take effect, and did delgroup vglusers (which was 1005, of course), and now I could revert the definition of user in /etc/nvidia-container-runtime/config.toml.

from libnvidia-container.

3XX0 avatar 3XX0 commented on August 10, 2024

So nvidia-container-cli info works but docker run doesn't?
Can you always reproduce it? That's weird, both of them should either work or fail.

from libnvidia-container.

hmeine avatar hmeine commented on August 10, 2024

Yes, exactly. docker run with nvidia runtime always fails, but I find no other problem.

from libnvidia-container.

hmeine avatar hmeine commented on August 10, 2024

Jackpot! 👍 At last, I am able to run nvidia-docker again! :-)

I must admit that I am still very puzzled – after all, I even tried with rw permissions for "other". Furthermore, I know several people with Ubuntu 18.04 who did not seem to have to do this (but I will double-check again, now that I know more).

from libnvidia-container.

hmeine avatar hmeine commented on August 10, 2024

Ok, just confirmed: on a machine with 18.04 installed from scratch and NVRM version 390.77, the config entry is missing (actually, default is a commented out #user = "root:video"), and dev permissions are:

crw-rw-rw- 1 root root 195,   0 Sep 24 13:59 /dev/nvidia0
crw-rw-rw- 1 root root 195,   1 Sep 24 13:59 /dev/nvidia1
crw-rw-rw- 1 root root 195,   2 Sep 24 13:59 /dev/nvidia2
crw-rw-rw- 1 root root 195,   3 Sep 24 13:59 /dev/nvidia3
crw-rw-rw- 1 root root 195, 255 Sep 24 13:59 /dev/nvidiactl
crw-rw-rw- 1 root root 195, 254 Sep 24 17:43 /dev/nvidia-modeset
crw-rw-rw- 1 root root 238,   0 Sep 24 13:59 /dev/nvidia-uvm
crw-rw-rw- 1 root root 238,   1 Sep 24 17:43 /dev/nvidia-uvm-tools

from libnvidia-container.

3XX0 avatar 3XX0 commented on August 10, 2024

Yeah, permissions of the device files are dictated by the kernel module parameters and those can vary depending on how you install the driver. Hence the setting ;)

from libnvidia-container.

hmeine avatar hmeine commented on August 10, 2024

Thanks again. For completeness, I asked another colleague who has the same upgrade history AND the same driver version, and STILL the permissions are different, and she does not need that setting.

from libnvidia-container.

romangrothausmann avatar romangrothausmann commented on August 10, 2024

Many thanks @3XX0 for the support, #37 (comment) solved the problem for us. Is there anything else to consider if we want to use nvidia-docker and VirtualGL on the same machine?

from libnvidia-container.

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.