USB reconnect in container won´t work

DerGraf

Active Member
Nov 25, 2018
19
3
43
50
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