You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to passthrough my iGPU /dev/dri/card0 + /dev/dri/renderD128 to LXC.
Inside of LXC i need the group video and render which is in LXC:
getent group video | cut -d : -f3 # ---> 44 on LXC
getent group render | cut -d : -f3 # ---> 106 on LXC
On my Proxmox host the group video and render is:
getent group video | cut -d : -f3 # ---> 44 on Proxmox
getent group render | cut -d : -f3 # ---> 104 on Proxmox
When i run your python-script with this: python main.py :44=:44 :106=:104
i get the following mapping syntax:
# Add to /etc/pve/lxc/<container_id>.conf:
lxc.idmap: g 0 100000 44
lxc.idmap: g 44 44 1
lxc.idmap: g 45 100045 61
lxc.idmap: g 106 104 1
lxc.idmap: g 107 100107 65429
# Add to /etc/subuid:
# Add to /etc/subgid:
root:44:1
root:104:1
But my LXC Container does not start. Only when i add this line lxc.idmap: u 0 100000 65536 above your mapping, my Container will start and i see the group video and render in my LXC:
This is my working mapping for lxc:
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 44
lxc.idmap: g 44 44 1
lxc.idmap: g 45 100045 61
lxc.idmap: g 106 104 1
lxc.idmap: g 107 100107 65429
this is how it looks like in lxc for /dev/dri:
ls -al /dev/dri/
crw-rw---- 1 nobody video 226, 0 May 30 19:28 card0
crw-rw---- 1 nobody render 226, 128 May 30 19:28 renderD128
can you please give me some advice?
The text was updated successfully, but these errors were encountered:
I want to passthrough my iGPU
/dev/dri/card0
+/dev/dri/renderD128
to LXC.Inside of LXC i need the group
video
andrender
which is in LXC:On my Proxmox host the group
video
andrender
is:When i run your python-script with this:
python main.py :44=:44 :106=:104
i get the following mapping syntax:
But my LXC Container does not start. Only when i add this line
lxc.idmap: u 0 100000 65536
above your mapping, my Container will start and i see the groupvideo
andrender
in my LXC:This is my working mapping for lxc:
this is how it looks like in lxc for
/dev/dri
:can you please give me some advice?
The text was updated successfully, but these errors were encountered: