Created
October 23, 2025 14:52
-
-
Save wmantly/63f7f0244004a965fb52bd0a3878e0cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Control group access. Gotten from `ls -la /dev/nvidia*` and `ls -la /dev/dri/*` | |
| lxc.cgroup2.devices.allow: c 195:* rwm | |
| lxc.cgroup2.devices.allow: c 226:* rwm | |
| lxc.cgroup2.devices.allow: c 236:* rwm | |
| lxc.cgroup2.devices.allow: c 241:* rwm | |
| # The onboard GPU, not needed | |
| lxc.mount.entry: /dev/card0 dev/card0 none bind,optional,create=file | |
| # Quadro P2000 | |
| lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file | |
| lxc.mount.entry: /dev/card1 dev/card1 none bind,optional,create=file | |
| lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file | |
| # NVIDIA GeForce GTX 1070 | |
| lxc.mount.entry: /dev/nvidia1 dev/nvidia1 none bind,optional,create=file | |
| lxc.mount.entry: /dev/card2 dev/card2 none bind,optional,create=file | |
| lxc.mount.entry: /dev/dri/renderD129 dev/dri/renderD129 none bind,optional,create=file | |
| # Common Nvidia mounts(needed for any card) | |
| lxc.mount.entry: /dev/nvidiactl dev/nvidiactl none bind,optional,create=file | |
| lxc.mount.entry: /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file | |
| lxc.mount.entry: /dev/nvidia-modeset dev/nvidia-modeset none bind,optional,create=file | |
| lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment