access usb drive via OpenVZ container

Petrus4

Member
Feb 18, 2009
249
0
16
I need to have an openVZ container access a usb drive connected to the host server and automount this drive during boot up. How can I best do this?
 
I looked at and implemented the following documentation: http://wiki.openvz.org/USB_Printing_in_VE and was able to see the usb device in my container with # lsusb but that was about it, I could not mount the device inside my container or see it with the fdisk -l command. Perhaps there is something I am missing?

After a little research I came upon this: http://wiki.openvz.org/Bind_mounts in which you mount the drive in the HE and and then bind mount the drive in your VE (openVZ container) and this works.

I must admit this is not the most elegant solution. Is there a better way to mount a usb device in an openVZ container? It would be a nice feature to have this automated in the the proxmox-ve gui.
 

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!