Error while creating zigbee2mqtt on LXC

Bison

New Member
Nov 16, 2024
1
0
1
Hello,

I'm using Proxmox 8.2.8 (just updating to have USB passthourgh).

I try to create a new container for zigbee2mqtt. I created a LXC in Proxmox and use other containers with success since months.

1731782851094.png


I tried to create this using a Stacks with Portainer but i got the same error with docker.

From host :
Code:
root@pve2yp:~# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Nov 16 19:39 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0

From CT "docker" i can see the mapping :
Code:
root@docker:~# ls -l /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
crw-rw---- 1 root root 188, 0 Nov 16 18:41 /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

I run this :
Code:
docker run \
   --name zigbee2mqtt \
   --restart=unless-stopped \
   --device=/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0:/dev/ttyUSB0 \
   -p 8080:8080 \
   -v /srv/docker/zigbee2mqtt/data:/app/data \
   -v /run/udev:/run/udev:ro \
   -e TZ=Europe/Paris \
   koenkk/zigbee2mqtt

And got this error :
Code:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error creating device nodes: mount /dev/ttyUSB0:/var/lib/docker/overlay2/57907ebd0d70e18055abb8b88420afde7dcd73cbcc0c4c8c933e26e392a3324e/merged/dev/ttyUSB0 (via /proc/self/fd/6), flags: 0x1000: no such file or directory: unknown.
ERRO[0000] error waiting for container:

Could you help ? I tried many things since hours but nothing works.
 

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!