In lxc version 1, it was easy to have access to a connected usb phone in a lxc container: Add following in the lxc container config: lxc.cgroup.devices.allow = c 189:* rwm # dev/bus/usb lxc.mount.entry = /dev/bus/usb dev/bus/usb none bind,optional,create=dir
But for some reason, when upgrading to lxc 2 (either on debian Stretch, or Debian Jessie with backports) the phone device is not accessible anymore, expect when you run lxc-device add -n node02 /dev/bus/usb/xxx/yyy (or with some udev rules to create a fixed link: lxc-device add -n jenkins02 /dev/Samsung-Galaxy-S4) Installed lxc version: Debian Jessie: 2.0.7-2~bpo8+1 Debian Stretch: 2.0.7-2+deb9u1 Debian Jessie: 1.0.6-6+deb8u6 (that one works..) What is the reason for needing to run the lxc-device add command? For some reason, sometimes the phone seems to reconnect, causing it to get a different path, and being not available anymore in the container, until being re-added. The pro of the situation is that it is possible to assign usb connected phones to different lxc containers, but as it is hard to check from the host if a phone is still connected properly to the lxc container, it is hard to rerun the lxc-device command.
_______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users