How to share a drive across all VMs and LXCs

rofo69

New Member
Jan 17, 2024
13
2
3
So, I have an Ubuntu VM with a usb drive attached via passthrough from the host. It in turn, shares the contents of the drive to anything on the network via SMB.
All of this works fine, but got me thinking. If an LXC needs to grab files from the SMB, I'm assuming it has no knowledge that the files are actually stored on a drive locally attached to the host, so it has to go out onto the network to get them via SMB.

This means the speed of the connection to the drives is limited (I'm guessing) to the network connection to the router, which is 1 gigabit hardwired connection.

If this is right, the only options I seem to have to speed this up, is either a 2.5g or 10g network ?

Is there a way of sharing drives (perhaps internal ones as well, not just usb) to other VMs and LXC's without having to go out onto the network to get them, and therefore getting closer to the actual speed of the connection/drive ?

Am I right in that I recall its dangerous to directly share (say) usb drives with more than one VM at a time ?
 
Last edited:
So, I have an Ubuntu VM with a usb drive attached via passthrough from the host. It in turn, shares the contents of the drive to anything on the network via SMB.
All of this works fine, but got me thinking. If an LXC needs to grab files from the SMB, I'm assuming it has no knowledge that the files are actually stored on a drive locally attached to the host, so it has to go out onto the network to get them via SMB.

This means the speed of the connection to the drives is limited (I'm guessing) to the network connection to the router, which is 1 gigabit hardwired connection.

If this is right, the only options I seem to have to speed this up, is either a 2.5g or 10g network ?

Is there a way of sharing drives (perhaps internal ones as well, not just usb) to other VMs and LXC's without having to go out onto the network to get them, and therefore getting closer to the actual speed of the connection/drive ?

Am I right in that I recall its dangerous to directly share (say) usb drives with more than one VM at a time ?


UPDATE:- I think I found my own answer, which is what i was hoping for:-

https://www.reddit.com/r/Proxmox/co...Any VM to Other machine,-> router -> internet.
 
  • Like
Reactions: Kingneutron
Regardless, 2.5g network might be worth investing in. Switch prices and NICs are comparable to 1gbit equipment these days and you can use the same CAT5E cables.

Just try to go with Intel chipsets; not much choice besides Realtek if you go with USB3 NIC
 

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!