USB in LXC nutzen

speedAmaster

Member
Dec 16, 2021
10
2
8
56
Hallo,
ich versuche ein am host angeschlossenes Gerät in einen Container weiterzureichen.
Auf dem host identifiziert sich das Gerät bei
lsusb
Bus 002 Device 011: ID 1b1f:c00f eQ-3 Entwicklung GmbH HM-CFG-USB/HM-CFG-USB-2 [HomeMatic Configuration adapter] Bus 002 Device 010: ID 1a40:0101 Terminus Technology Inc. Hub
lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M |__ Port 8: Dev 10, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 4: Dev 11, If 0, Class=Human Interface Device, Driver=usbhid, 12M

nach dem Anhalten des Containers habe ich in die 199.conf folgendes eingetragen
usb: host=2-4 lxc.cgroup.devices.allow: c 189:* rwm lxc.mount.entry: /dev/bus/usb/002/010 dev/bus/usb/002/010 none bind,optional,create=file lxc.mount.entry: /dev/bus/usb/002/011 dev/bus/usb/002/011 none bind,optional,create=file

nach dem Start des Containers bekomme ich immer noch die Meldung
Can't open device: Access denied (insufficient permissions)

Wie bekomme ich das USB Gerät korrekt durchgereicht?

PS: in der Proxmox GUI kann ich bei resources kein USB hinzufügen
 
  • Like
Reactions: Panzer1119
Ich nutze eigenlich nur VMs, aber das Problem liest man hier im Forum sehr oft. ;)
Und die Meldung, das Berechtigungen fehlen ist ja recht eindeutig.
 
oups - danke dir!
ich habe jetzt einen priviligierten Container erstellt. Aber es klappt immer noch nicht :-(
 

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!