Is there any way to share a directory of files between virtual machines running in OpenVZ? My particular use case is that I want to have a shared YUM cache directory, for when they all need to run updates, so that each virtual machine doesn't have to separately download the files from the server. This will make it quicker & use less bandwidth. I could set something up with NFS or Samba or any standard network file sharing app, but I was hoping there was something quick and easy I could do since they are all running off the same drive anyway.
Figured out that what I want is called 'bind mounts'. There is a page on the OpenVZ wiki that describes them.
I think OpenVZ is already setup to do what you are describing with vzyum. From
man vzyum
:Yum an use a proxy server,
man yum.conf
for more, in each of your/etc/yum.repos.d/
configs addproxy=$YOURPROXYSERVER:PORT
to proxy the data through something like squid.