usb passthrough problem for Debian9 lxc

olsonn

Renowned Member
Oct 25, 2017
12
0
66
52

What does not work:

in 107.conf
lxc.cgroup.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file

device is visible as /dev/ttyUSB0 but application (Domoticz) does not recognize it as /dev/ttyUSB0
Its just not selectable. (chmod 666) on ttyUSB0 does not help

What DOES work
on the proxmox host
lxc-device add -n 107 /dev/ttyUSB0 /dev/ttyUSB0

But this does not survive a reboot ofcourse...(can this be set persistent?)

Between the 2 methodes i dont see differences on /dev/ttyUSB0. (rights etc)

HELP :S
Any recommendations?
 
Did you set your container to be unconfined? The default profile doesn't allow mounted devices.
Code:
lxc.aa_profile: unconfined