Hello, I'mtrying to passthrough a USB TPU (Google Coral) to my frigate LXC.
Now the fun thing is that it sometimes it tends to change in which order it's being detected, so my config mounting
I have tried using udev to match the device ID and link the device to
But the issue is that once in the LXC,
I have made a script to do this, it does
I tried
Any idea is welcome to find a solution
I would have expected there to be a way to tell pve/lxc that device by vendor&id should be mounted in the matching
Now I have temporarly fixed it by passing the entire bus 002 hoping it will not change often, but still, I'd rather pass only the device istead of the full bus...
Thanks in advance for any kind of help on this !
Now the fun thing is that it sometimes it tends to change in which order it's being detected, so my config mounting
/dev/bus/usb/002/002 to the lxc works fine untill for some reason the device becomes accessible under /dev/bus/usb/002/004 and then it all breaks down...I have tried using udev to match the device ID and link the device to
/dev/coral0 and like this I can sucessfully passthrough the same path /dev/coral to my LXC...But the issue is that once in the LXC,
lsusb still shows the device on bus 2 device #4 and I could not find a way to tell my frigate instance to use /dev/coral0. This is because my understanding is that the coral library will search and try to find the TPU device by itself, so I would realy need to finx a way to map /dev/bus/usb/00x/00y to the exact same x and y inside the lxc.I have made a script to do this, it does
lsusb, grabs the bus and device number and creates a symlink to /dev/coral0 on the proper /dev/bus/usb/00x/00y but seems the lib isn't following simlinks and the PU is not found by frigate...I tried
mount --bind inside the container thinking it would be like a symlink but seems it doesn-t work either...Any idea is welcome to find a solution
I would have expected there to be a way to tell pve/lxc that device by vendor&id should be mounted in the matching
/dev/bus/usb/00x/00y inside the lxc, but I can't seem to find this option...Now I have temporarly fixed it by passing the entire bus 002 hoping it will not change often, but still, I'd rather pass only the device istead of the full bus...
Thanks in advance for any kind of help on this !