LXC guest with USB removeable media?

burdickjp

New Member
Jun 19, 2018
2
0
1
39
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.