ok it finally happened again.Do a `ls -l /dev/nvidia-uvm` on the host. It shows major and minor device number right after the GID column.
In the lxc-config I have e.g.
```
lxc.cgroup2.devices.allow = c 236:1 rwm
lxc.cgroup2.devices.allow = c 236:0 rwm
...
lxc.mount.entry = /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file 0 2
lxc.mount.entry = /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file 0 2
...
```
root@pve:~# ls -l /dev/nvidia-uvm
crw-rw-rw- 1 root root 508, 0 Dec 4 15:03 /dev/nvidia-uvm
root@pve:~# ls -l /dev/nvidia-uvm
crw-rw-rw- 1 root root 505, 0 Dec 4 15:03 /dev/nvidia-uvm
Nope I've just made a habit of checking all numbers after reboot / power cycleI also have this problem on 7.4, using cgroup2 to make my GPU available to some unprivileged LXCs. Did you ever make any progress?
It bites me just about every reboot. I'm wishing cgroup2 had an alternative to using device numbers, along the lines of identifying disks by their UUID. I don't see anything in the docs, but hope springs eternal.
dev0: /dev/nvidia0
dev1: /dev/nvidiactl
dev2: /dev/nvidia-uvm
dev3: /dev/nvidia-uvm-tools
Hi, I do not understand your code.For anyone coming on this later, this problem is solved in v8.1:
Proxmox 8.1 (and maybe 8.0?) has explicit device sharing by filename. My example, sharing my gpu, now looks like this in the lxc.conf. There are no longer any cgroup2.devices.allow or mount.entry elements required.
Code:dev0: /dev/nvidia0 dev1: /dev/nvidiactl dev2: /dev/nvidia-uvm dev3: /dev/nvidia-uvm-tools
lxc.cgroup2.devices.allow: c 507:0 rw
lxc.cgroup2.devices.allow: c 507:1 rw
lxc.cgroup2.devices.allow: c 195:0 rw
lxc.cgroup2.devices.allow: c 195:255 rw
lxc.cgroup2.devices.allow: c 195:254 rw
lxc.cgroup2.devices.allow: c 507:0 rw
lxc.cgroup2.devices.allow: c 507:1 rw
lxc.cgroup2.devices.allow: c 10:144 rw
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file
lxc.mount.entry: /dev/nvidiactl dev/nvidiactl 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 dev/nvidia-uvm none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file
lxc.mount.entry: /dev/nvram dev/nvram none bind,optional,create=file