GPU passthrough can be useful for media encodings, AI or other GPU required tasks
Rootless lxc
For rootless setup we need to do some id mapping on the proxmox node
/etc/subgid
1
2
3
|
root:100000:262144
root:44:1
root:993:1
|
Update lxc config
Simply update the lxc container config
/etc/pve/lxc/xxx.conf
1
2
3
4
5
6
7
8
9
10
|
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.idmap: u 0 100000 262144
lxc.idmap: g 0 100000 44
lxc.idmap: g 44 44 1
lxc.idmap: g 45 100045 948
lxc.idmap: g 993 993 1
lxc.idmap: g 994 100994 261150
|