Anyone using Conbee II in LXC (Proxmox)?

The title says it pretty much: I am struggling to get this working.

I have (I think) succeeded in the pass-through of the USB port (first time I do/need this) to the container since I can see the same device/port as well in the hypervisor as in the container.
Strange thing though: the device number keeps changing.

Any help is greatly appreciated!

Nobody with this combo?

Map it by id

1 Like

Hi @tteck, thanks for helping! :+1:
Does a USB device automatically show as serial?

Depends on the device.
Zigbee coordinators have a USB-to-Serial/UART chip on board.
What are you using USB pass-through for? zigbee2mqtt? or something else?


Don’t know if this is normal: I don’t have a /dev/serial folder.

With lsusb I can see the device and the ID in proxmox but have not found on how to go from there to map the device by ID.

Run this in the Proxmox shell to open ports in the lxc. Be sure to change the lxc id

bash -c β€œ$(wget -qLO -” -s 102

(change 102 to your lxc id)

edit: reboot the lxc after running the script

1 Like

Then run

ls -l /dev/serial/by-id

In the lxc console after a reboot

1 Like

Thanks again for your help @tteck!

I had the stick in a RPi until now.
It was autodetected in Proxmox, visible by device and ID.
Executed your script, inserted the stick and rebooted.

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

Can this be related that I disabled things I don’t use in the BIOS?

@tteck: the serial ports were disabled, I have turned them on and in the Proxmox shell I have now the USB stick as a serial device

lrwxrwxrwx 1 root root 13 Jul 13 18:39 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2437849-if00 β†’ …/…/ttyACM0

but not in the HA lxc

Anyone who can give me some pointers for this?
I have searched here, the Proxmox forum and the web but maybe I’m searching with the wrong keywords.

Thanks in advance!

In the Proxmox shell run cat /etc/pve/lxc/104.conf
Where 104 is replace with your lxc id
post your findings here, so we can find a solution

1 Like
cat /etc/pve/lxc/116.conf
#- HA
arch: amd64
cores: 2
hostname: v-hass
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,gw=,hwaddr=7A:3B:51:A7:D2:4F,ip=,type=veth
onboot: 1
ostype: debian
parent: OK_2021_6bis
rootfs: local-zfs:subvol-116-disk-0,size=5G
swap: 512
unprivileged: 1
lxc.cgroup.devices.allow: c 189:1 rwm
lxc.mount.entry: /dev/bus/usb/001/004 dev/bus/usb/001/004 none bind,optional,create=file

Thanks @tteck!

Replace the last three lines with

lxc.cgroup.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/serial/by-id               dev/serial/by-id         none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0                    dev/ttyUSB0             none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0                    dev/ttyACM0             none bind,optional,create=file

Reboot the lxc and see if you can see the device.

1 Like

Can it be β€˜the last 2 lines’?

I don’ know if it needs to be privileged or not. Try it unprivileged and see.

YESSS! :clap:
Only (don’t know if this matters) is owned by nobody/nogroup.

So now I was looking to add the deCONZ integration and it still seems that I can only select a remote gateway.

I know nothing about deCONZ. Sorry

No problem, you got me a lot further!

Just to be sure, is this the right output?

ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 nobody nogroup 13 Jul 15 21:37 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DExxxxxxx-if00 -> ../../ttyACM0