Using 2 USB EdgeTPU's

goedh452

New Member
Jan 4, 2025
1
0
1
Hi forum!
I hope someone can help me here. I have PVE running with 2 USB EdgeTPU's connected. I would like to pass them to different LXC's. One is running the stable frigate and the other one a beta.

Both TPU's are listed on the host:
Code:
root@proxmox:~# lsusb
Bus 002 Device 005: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub
Bus 002 Device 008: ID 18d1:9302 Google Inc.
Bus 002 Device 003: ID 0bda:0420 Realtek Semiconductor Corp. 4-Port USB 3.0 Hub
Bus 002 Device 007: ID 18d1:9302 Google Inc.

They are added to a separate group:
Code:
root@proxmox:~# ls -la /dev/bus/usb/002
total 0
drwxr-xr-x 2 root root                  160 Jun  6 17:45 .
drwxr-xr-x 6 root root                  120 Jun  6 17:41 ..
crw-rw-r-- 1 root root             189, 128 Jun  6 17:41 001
crw-rw-r-- 1 root root             189, 129 Jun  6 17:41 002
crw-rw-r-- 1 root root             189, 130 Jun  6 17:41 003
crw-rw-r-- 1 root root             189, 132 Jun  6 17:41 005
crw-rw-rw- 1 root lxc-frigate-root 189, 134 Jun  6 17:44 007
crw-rw-rw- 1 root lxc-frigate-root 189, 135 Jun  6 17:45 008

I pass them through in the GUI with device passthrough and the exact path (/dev/bus/usb/002/007 and 008). In the LXC's they are available with the appropriate rights.

The problem:
Passing them both to 1 LXC and using both in that frigate works fine. When I pass them to different LXC's I can startup one of the LXC's. The other one will not find the TPU. Any ideas? Could it be the the running LXC "locks" the driver or something?