USB Serial Device Disconnects Immediately After Connection

HawkNewbie

Active Member
Apr 17, 2018
7
1
43
57
Hello everyone,

I am running Proxmox 9.1.1 hosting a Home Assistant Core in a VM. I am trying to pass through an slzb-mr1in serial mode through a USB port. The device does not appear in Proxmox when I try to attach it to the VM. Journalctl repeats the following text over and over again.

Code:
Nov 26 20:44:10 lab kernel: usb 1-2.2: new full-speed USB device number 9 using xhci_hcd
Nov 26 20:44:10 lab kernel: usb 1-2.2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
Nov 26 20:44:10 lab kernel: usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 26 20:44:10 lab kernel: usb 1-2.2: Product: SMLIGHT SLZB-MR1
Nov 26 20:44:10 lab kernel: usb 1-2.2: Manufacturer: SMLIGHT
Nov 26 20:44:10 lab kernel: usb 1-2.2: SerialNumber: 4e0ff7b48e25f0119d2a3baf5f5462e4
Nov 26 20:44:10 lab kernel: cp210x 1-2.2:1.0: cp210x converter detected
Nov 26 20:44:10 lab kernel: usb 1-2.2: cp210x converter now attached to ttyUSB0
Nov 26 20:44:51 lab kernel: usb 1-2.2: USB disconnect, device number 9
Nov 26 20:44:51 lab kernel: cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Nov 26 20:44:51 lab kernel: cp210x 1-2.2:1.0: device disconnected

One post says that best practice is to use /dev/serial/by-id/NAME-OF-USB-DEVICE-STRING instead of ttyUSB0, but I am not sure how to create a custom USB entry. Does anyone know why this device keeps disconnecting and how I can fix it?

Thanks.
 
Which USB hubs are compatible with Proxmox?

Also, things I tried to fix the problem:

  • Reinstalled firmware on device
  • Verified installation of cp210x driver on Proxmox using lsmod
  • Tried to find device using ls -l /dev/tty*
Privileges should not be an issue because I am logged in as root.
 
Which USB hubs are compatible with Proxmox?


I mean, I use powered USB hub too, where I have connected 3D printer and webcam, used by Octoprint and also a Zigbee USB Dongle, used by Homeassistant. Two different LXCs on one node. This is how I mounted 3D printer to Octoprint (it uses a serial connection too):

Code:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file,mode=0666

These are lines from Homeassistant, they were created by Proxmox helper scripts though:

Code:
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.cgroup2.devices.allow: c 166:* 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
 
Last edited: