Passing a USB device with colons in device name through to container

rsaxvc

New Member
Nov 28, 2026
2
0
0
I've been using USB passthrough for a while now, but today I had trouble with a new board.

Bash:
# ls /dev/serial/by-id/*
/dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit_MA:CC:AA:DD:RR:SS-if00
# pct set 100 --dev1 path=/dev/ttyACM0
Device /dev/serial/by-id/usb-1a86_USB_Single_Serial_MACCAADDRRSS-if00 does not exist
# pct set 100 --dev2 path=/dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit_MA:CC:AA:DD:RR:SS-if00
Device /dev/serial/by-id/usb-1a86_USB_Single_Serial_MACCAADDRRSS-if00 does not exist

It looks like there must be some conversion happening, probably to try and map a device to a permanent identifier, but for this device it's not working - colons are removed, and device path is strange too. I tried a few different ways of escaping, but no luck.
 
Of course, as soon as I post I have an idea- I was able to get it to work by creating a hardlink to the symlink where it was looking, like this:

```
# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 2 root root 13 Nov 27 19:37 usb-1a86_USB_Single_Serial_5CE5195395-if00 -> ../../ttyACM0
lrwxrwxrwx 2 root root 13 Nov 27 19:37 usb-Espressif_USB_JTAG_serial_debug_unit_30:ED:A0:EA:1C:5C-if00 -> ../../ttyACM0
```

After that, pct was able to find it.