Proxmox virtual machine home assistant + docker container: Zigbee USB pass through

Rob8

New Member
Dec 14, 2022
2
0
1
The Netherlands
I found the following video Proxmox Sonoff Zigbee LXC USB Passthrough [ioBroker SONOFF Zigbee 3.0 USB Dongle Plus,TI CC2652P] - YouTube

My problem seems to start at step 3)
root@pve:~# ls /dev/serial/by-id/
ls: cannot access ‘/dev/serial/by-id/’: No such file or directory

My environment is:
Proxmox 7.3-3
In a virtual machine: Home Assistant
In docker container (portainer, mariadb, phpadmin, influxdb, grafan., mosquitto, nodered, zigbee2mqtt)

Hopefully, someone can help me out.

Kind regards,
Robert
```
From the pve terminal:
1)
root@pve:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A) **
Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics CH340 serial converter**
Bus 001 Device 002: ID 0bda:c821 Realtek Semiconductor Corp. Bluetooth Radio Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

2) root@pve:~# ls -l /dev/bus/usb/001/003
crw-rw-r-- 1 root root 189, 2 Dec 13 16:30 /dev/bus/usb/001/003

3) root@pve:~# ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory

4) ls -l /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory

5) root@pve:~# ➜ ~ ls -l /dev/ttyUSB*
-bash: ➜: command not found

From the Home Assistant Terminal:
1)
lsusb
Bus 003 Device 001: ID 1d6b:0003
Bus 002 Device 002: ID 1a86:7523
Bus 001 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 0627:0001
Bus 002 Device 001: ID 1d6b:0002

2)
ls -l /dev/bus/usb/002/002
crw-rw-r-- 1 root root 189, 129 Dec 13 16:30 **/dev/bus/usb/002/002**

ls -la /dev/ttyUSB0
crw-rw---- 1 root audio 188, 0 Dec 13 11:16 **/dev/ttyUSB0

3)
ls /dev/serial/by-id/ **usb-1a86_USB_Serial-if00-port0

4)
ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Dec 13 16:30 **usb-1a86_USB_Serial-if00-port0** -> **../../ttyUSB0

5)
ls -l /dev/ttyUSB*
crw-rw---- 1 root audio 188, 0 Dec 13 16:30 **/dev/ttyUSB0
```
 
Last edited:
Hi,
Did you get any info about it ?
I'm having the same issue with my Proxmox server 7.2-7 ( uname -r 5.15.39-1-pve)


root@pve:~# ls /dev/serial/by-id/ ls: cannot access '/dev/serial/by-id/': No such file or directory
 
Hi,
Did you get any info about it ?
I'm having the same issue with my Proxmox server 7.2-7 ( uname -r 5.15.39-1-pve)


root@pve:~# ls /dev/serial/by-id/ ls: cannot access '/dev/serial/by-id/': No such file or directory
I found this topic with the hint to install linux-modules-extra


But i am running into follow up issues. Maybe this will help you.
 
  • Like
Reactions: brozikcz
So many problems could be solved if people would just install Docker as all experienced users suggest ALL THE TIME: Don't use LX(C) containers and then Docker, just use a real VM and then docker. USB passthrough is much easier with a VM. I do that and my usb dongle works like charm in zigbee2mqtt ...
 
So many problems could be solved if people would just install Docker as all experienced users suggest ALL THE TIME: Don't use LX(C) containers and then Docker, just use a real VM and then docker. USB passthrough is much easier with a VM. I do that and my usb dongle works like charm in zigbee2mqtt ...
I don't want to use docker ;) Just want to passthrough an USB device.
 
Have you tried a "real" VM and not only a LX(C) container? Passthrough should be very easy!
Sure. But i like the Memory handling Form LXContainer and the smaller overhead.

Also I just want to know how to run this very simple & basic command on PVE that was running on 6.x but not even more on 7.
 
So many problems could be solved if people would just install Docker as all experienced users suggest ALL THE TIME: Don't use LX(C) containers and then Docker, just use a real VM and then docker. USB passthrough is much easier with a VM. I do that and my usb dongle works like charm in zigbee2mqtt ...
Okay, i followed your suggestion to use a VM (Ubuntu Server) and install docker there. But, ich also get in the VM the same error message and cannot define the USB BT Stickt in the VM by its unique name.

ls: cannot access '/dev/serial/by-id/': No such file or directory

So i am not pretty sure where is the benefit of using VM > docker.
 
So many problems could be solved if people would just install Docker as all experienced users suggest ALL THE TIME: Don't use LX(C) containers and then Docker, just use a real VM and then docker. USB passthrough is much easier with a VM. I do that and my usb dongle works like charm in zigbee2mqtt ...
I've got 4 VM's with multiple dockers and indeed usb devices passed through but to use Frigate, LXC is the recommended setup.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!