LXC guest with USB removeable media?

burdickjp

New Member
Jun 19, 2018
2
0
1
38
I've an LXC guest running Arch linux that I'm using as a virtual desktop running KDE. I'd like to be able to plug USB drives and SD cards into the host and have KDE recognize them so I can use software like Digikam for pulling photos from SD cards.
I'm having trouble getting the pass-through to work correctly. I'm allowing the specific devices and bind mounting in the LXC configuration. I see the device in /dev on the guest. I'm guessing there's something udev related in getting KDE to recognize it as removable media? I think I also need to do some device permissions and user permissions in Arch. I'd also like a more general solution for all usb mass storage devices rather than a specific thumb drive or SD card adapter.
 
Maybe this is working: Bind some directory from the host to container (MPX in webinterface). If the container is running you mount the usbdrive to this directory on the host, did you see some datas in the container?
 
I have other things working in passthrough: my video device, some ttys, mouse, keyboard, and sound devices, though I haven't gotten sound working yet.
 

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!