PVE 7.0.x and LXC USB passthrough issue

YAGA

Renowned Member
Feb 15, 2016
76
8
73
58
Dear PVE users,

Previously I was running smoothly a LXC container with USB passthrough on PVE 6.4.x.

After an upgrade from PVE 6.4.x. to PVE 7.0.x this container cannot access anymore to the USB device.

From PVE server:
Code:
:~# test -w /dev/ttyACM0 && echo success || echo failure
success

:~# ls -la /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 Jul 25 10:54 /dev/ttyACM0

From LXC container:
Code:
:~# test -w /dev/ttyACM0 && echo success || echo failure
failure

:~# ls -la /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 Jul 25 10:54 /dev/ttyACM0

LXC config file includes:
Code:
lxc.cgroup.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file

Device is visible with lsusb from the PVE server and the LXC container.

Everything seems to be ok except that the LXC container has no read and write permission to /dev/ttyACM0 since the PVE 7.0.x upgrade.

Any advice is welcome,

Regards,
 
Last edited:
Hi @avw

Very good point, it works !

I haven't seen this change (cgroup -> cgroup2) in the last major upgrade between PVE 6.x to 7.x.

Many thanks,

Regards,
 
Hi @avw

Very good point, it works !

I haven't seen this change (cgroup -> cgroup2) in the last major upgrade between PVE 6.x to 7.x.

Many thanks,

Regards,
I have replaced all cgroup with cgroup2. But problem still exists. Can you help me ?
 

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!