Hello,
my home automation runs in an unprivileged LXC container. Client devices are controlled via a Zigbee USB stick.
I have a udev rule with:
"SUBSYSTEMS=="usb", ATTRS{idVendor}=="1cf1", ATTRS{idProduct}=="0030", MODE="0666", GROUP="dialout", SYMLINK+="CONBEE"
and in the config:
lxc.cgroup.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/CONBEE dev/CONBEE none bind,optional,create=file
This works fine for some hours but after some time the usb stick resets itself and is recognised as a new USB device. Due to the udev rule the permissions are set properly on the host, but in the container I get:
c--------- 0 nobody nogroup 189, 4 Dec 26 23:01 /dev/CONBEE
After rebooting the container the usb device works again.
Is there a solution to not reboot the container after some hours? Or should I use a privileged container instead?
my home automation runs in an unprivileged LXC container. Client devices are controlled via a Zigbee USB stick.
I have a udev rule with:
"SUBSYSTEMS=="usb", ATTRS{idVendor}=="1cf1", ATTRS{idProduct}=="0030", MODE="0666", GROUP="dialout", SYMLINK+="CONBEE"
and in the config:
lxc.cgroup.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/CONBEE dev/CONBEE none bind,optional,create=file
This works fine for some hours but after some time the usb stick resets itself and is recognised as a new USB device. Due to the udev rule the permissions are set properly on the host, but in the container I get:
c--------- 0 nobody nogroup 189, 4 Dec 26 23:01 /dev/CONBEE
After rebooting the container the usb device works again.
Is there a solution to not reboot the container after some hours? Or should I use a privileged container instead?