Usb serial device in container stops working after a while

andrea1388

New Member
Feb 23, 2024
1
0
1
As indicated in the title I'm facing with this bad problem and I can't get rid of it.
I have a serial usb device (pl2303) that works fine in the container but after a random time (sometimes > 30 mins) it stops working. No data is received.
When it happens even restarting the container doesn't fix the problem. I have to reboot the pve.
The application that uses the usb device simply opens the connection reads data closes, pauses a minute and repeats the cycle.

The container conf is:

Code:
arch: amd64
cores: 1
features: nesting=1
hostname: 102
memory: 100
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=BC:24:11:5B:F5:D2,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-102-disk-0,size=8G
swap: 512
unprivileged: 1
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/ttyUSBInverter dev/ttyUSBInverter none bind,optional,create=file
Tryed with cgroup2 but same result

udev rule:
Code:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="ttyUSBInverter", MODE="0666", GROUP="dialout"

Any idea?
Andrea
 

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!