Ubuntu 19.04 USB durchreichen funkt nicht

Marco Primus

Member
Dec 17, 2018
22
0
6
44
Hallo Ich habe ein etwas spezielleres Problem ich möchte in ein LXC mit Ubuntu 19.04 mit installiertem Octoprint was soweit alles läuft einen oder mehrere USB Ports durch reichen wenn möglich auch fix an ein gerät zuweisen. Da ich über den Proxmox 2 3D Drucker betreiben will und evlt sogar mehrere Kameras zur beobachtung. um notfalls mit einen von mir konzipierten fernschalter jederzeit den strom abdrehen zu können oder den drucker zu stoppen.

Wie genau muss ich den port durch reiche das auch der Octoprint server den Drucker erkennt. Und wo muss ich was eintragen. Soll heissen was muss ich im PVE und was im LXC eintragen und ändern.

Ich hoffe Ihr könnt mir helfen. den mit der anlaitung wo Vm beschrieben wird. komme ich bei den LXC nicht weiter.

Danke im Vorraus für eure tolle unterstützung.
 
hi.

Und wo muss ich was eintragen. Soll heissen was muss ich im PVE und was im LXC eintragen und ändern.

probier mal in /etc/pve/lxc/CTID.conf:

Code:
lxc.cgroup.devices.allow: c major:minor rwm
lxc.mount.entry: /dev/my-device /dev/my-device none bind,optional,create=dir

oder `create=file` je nachdem was genau du durchreichen willst.

major:minor sind major und minor von device (aus `ls -la /dev/my-device`)

in dem fall wenn deine device nicht usb ist (block-device o.ä.), kannst du einfach einen mountpoint anlegen[0]

[0]: https://forum.proxmox.com/threads/accessing-a-host-partition-from-inside-a-container.54560/
 

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!