Help Mapping GID 993 of Container to 104 of Host for GPU Passthrough

badfella

New Member
Jun 7, 2024
2
0
1
I needed a bit of help.

I was able to figure out some of the mappings by searching the internet for hours but looks like I cannot make it work. I am trying to passthrough my iGPU to Ubuntu Unprivileged LXC container.

Video group mapping is working fine which is 44. But render is not. I can't seem to figure out how to map 993 of Container(render) to 104 of host(render group on host)

These are the mappings I had added to my .conf. I have the 1005 ones for storage passthrough.

lxc.idmap: u 0 100000 1005
lxc.idmap: u 1005 1005 1
lxc.idmap: u 1006 101006 64530
lxc.idmap: g 0 100000 44
lxc.idmap: g 44 44 1
lxc.idmap: g 45 100045 62
lxc.idmap: g 107 104 1
lxc.idmap: g 108 100108 897
lxc.idmap: g 1005 1005 1
lxc.idmap: g 1006 101006 64530

The video group iD on host is 44 and same on container.
But the render group Id on Host is 104 and 993 on container.

Can you please tell me how to map 993 of container to 104 of host? That is the only part I think remaining.


Code:
lxc.idmap: u 0 100000 1005
lxc.idmap: u 1005 1005 1
lxc.idmap: u 1006 101006 64530
lxc.idmap: g 0 100000 44
lxc.idmap: g 44 44 1
lxc.idmap: g 45 100045 62
lxc.idmap: g 107 104 1
lxc.idmap: g 108 100108 897
lxc.idmap: g 1005 1005 1
lxc.idmap: g 1006 101006 64530
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 226:1 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri/card1 dev/dri/card1 none bind,optional,create=file
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
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,mode=666 0 0
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!