usb passthrough problem for Debian9 lxc

olsonn

Active Member
Oct 25, 2017
11
0
41
51

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?
 
Hi, I have the same Problem, did you find a solution for this?

Thx.
br
kixm
 
Did you set your container to be unconfined? The default profile doesn't allow mounted devices.
Code:
lxc.aa_profile: unconfined
 

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!