USB reconnect in container won´t work

DerGraf

Active Member
Nov 25, 2018
17
3
43
48
Hello.

i have a problems with USB devices in container.
All devices works perfectly by passthrough to container. Udev rules are written e.g. /dev/1wire

From time to time i must do a manually reconnect of a device.
After reconnect the USB device is not responsible in container.
Rebooting container won´t help.
The only way is to reboot the whole server. After PVE reboot USB device is up und working.

I had try it by using e.g. "usbreset 001/007" for /dev/1Wire in PVE
After that i can see device 001:007 in container but is not responsible also.

What can i do ???
PVE reboot is the worst way.

Thanks for help.
 
Last edited:
I think i have found a solve.

On reconnect the USB device in container (e.g /dev/1wire) lost all permissions. Permission is 000 and owner is root:root.
By manual changing to same permission as on PVE the USB Device starts working.

Now i had change the udev-rules and add MODE="0660" and GROUP="dialout" to devices.

On usbreset they don´t lost their permissions and owner by now.

Hope that´s work.
 
Hi "DerGraf",
looks like you solved your issues with Proxmox and 1wire - and maybe you are using (as I do) FHEM as well (group: "dialout").....

I am not able to connect the owserver within a proxmox container for FHEM with the USB-DS9490R.

Any idea?
Bernd
 

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!