Permissions - This will be an easy one for someone here

liamstears

New Member
Oct 20, 2022
8
0
1
So I've struggled for ages getting a pci coral tpu and my gpu to passthrough to a container running debian and finally have got it working!

Problem I'm having however is something to do with permissions

For example, the GPU, on the proxmox host I have this:
crw-rw---- 1 root render 226, 128 Apr 30 02:06 renderD128

And on the debian container I have this:
crw-rw---- 1 nobody nogroup 226, 128 Apr 30 01:06 renderD128

This doesn't work however if I chmod 777 /dev/dri/renderD128 on the proxmox host its working fine!

Same thing for the coral

What is the correct way to fix this? I can chmod and all works but obviously on a restart I have to do it again and I'm sure there will be a more elegant/proper way to do this

This is an unprivileged container if that matters?
 
So I've struggled for ages getting a pci coral tpu and my gpu to passthrough to a container running debian and finally have got it working!

Problem I'm having however is something to do with permissions

For example, the GPU, on the proxmox host I have this:
crw-rw---- 1 root render 226, 128 Apr 30 02:06 renderD128

And on the debian container I have this:
crw-rw---- 1 nobody nogroup 226, 128 Apr 30 01:06 renderD128

This doesn't work however if I chmod 777 /dev/dri/renderD128 on the proxmox host its working fine!

Same thing for the coral

What is the correct way to fix this? I can chmod and all works but obviously on a restart I have to do it again and I'm sure there will be a more elegant/proper way to do this

This is an unprivileged container if that matters?
Did you find any solution to this?