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.
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