Serial port not detected for ZWave-JS UI #1307
-
Describe the issue Screenshots
(HOST)
root@pve-home:~# lsusb
Bus 002 Device 002: ID 0bc2:ac41 Seagate RSS LLC One Touch HDD
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 10c4:ea60 **Silicon Labs CP210x UART Bridge**
Bus 001 Device 003: ID 8087:0026 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(HOST)
arch: amd64
cores: 2
features: nesting=1
hostname: zwave-js-ui
memory: 1024
net0: name=eth0,bridge=vmbr0,hwaddr=72:4B:ED:2F:5D:C2,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-101-disk-0,size=4G
swap: 512
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* 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/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 189:1 rwm (LXC)
root@zwave-js-ui:~# ls -l /dev/ttyUSB0
---------- 1 root root 0 Apr 8 16:07 /dev/ttyUSB0
root@zwave-js-ui:~# ls -l /dev/ttyUSB1
---------- 1 root root 0 Apr 8 16:07 /dev/ttyUSB1
root@zwave-js-ui:~# ls -l /dev/ttyACM0
---------- 1 root root 0 Apr 8 16:07 /dev/ttyACM0
root@zwave-js-ui:~# ls -l /dev/ttyACM1
---------- 1 root root 0 Apr 8 16:07 /dev/ttyACM1 (LXC)
root@zwave-js-ui:~# ls -l /dev/serial/by-id
total 0
root@zwave-js-ui:~# Bug reports will be closed after 12 hours of NO activity. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
This may be worth a try: Remove this from the LXC conf file (reboot)
then run this in the Proxmox Shell. (replace bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/usb-passthrough.sh)" -s 101 Reboot the LXC to apply the changes |
Beta Was this translation helpful? Give feedback.
-
Output from the Proxmox shell after running the command
Output from the Zigbee2MQTT LXC console (not running Zwave, but USB pass-through is the same) after running the command
|
Beta Was this translation helpful? Give feedback.
-
I received this: root@zwave-js-ui:~# ls -l /dev/serial/by-id
ls: cannot access '/dev/serial/by-id': No such file or directory The conf file is updated to this arch: amd64
cores: 2
features: nesting=1
hostname: zwave-js-ui
memory: 1024
net0: name=eth0,bridge=vmbr0,hwaddr=EE:BC:20:96:B0:46,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-101-disk-0,size=4G
swap: 512
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.autodev: 1
lxc.hook.autodev: bash -c 'for char_dev in $(find /sys/dev/char -regextype sed -regex ".*/166:.*" -o -regex ".*/188:.*" -o -regex ".*/189:.*"); do dev="/dev/$(sed -n "/DEVNAME/ s/^.*=\(.*\)$/\1/p" ${char_dev}/uevent)"; mkdir -p $(dirname ${LXC_ROOTFS_MOUNT}${dev}); for link in $(udevadm info --query=property $dev | sed -n "s/DEVLINKS=//p"); do mkdir -p ${LXC_ROOTFS_MOUNT}$(dirname $link); cp -dpR $link ${LXC_ROOTFS_MOUNT}${link}; done; cp -dpR $dev ${LXC_ROOTFS_MOUNT}${dev};done;' |
Beta Was this translation helpful? Give feedback.
-
@tteck is there any other options? |
Beta Was this translation helpful? Give feedback.
-
Found my issue. I assigned the usb to VM. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
This may be worth a try:
Remove this from the LXC conf file (reboot)
then run this in the Proxmox Shell. (replace
101
with your LXC ID)bash -c "$(wget -qL…