On Wed, Apr 1, 2009 at 7:27 AM, Vasiliy Tolstov <[email protected]> wrote:
> Hello!
> I have two containers with os linux. All files in /usr and /bin are
> identical.
> Is that possible to mount/bind /usr and /bin to containers? (not copy
> all files to containers).. ?

the problem (and solution) is exactly the same as if they weren't
virtual machines, but real machines: use the network.

simply share the directories with NFS and mount them in your initrd
scripts (preferably read/only).

other way would be to set a new image file with a copy of the
directories, and mount them on both virtual machines.  of course, now
you MUST mount them as readonly.  and you can't change anything there
without ummounting from both VMs.

usually it's not worth it, unless you have tens of identical VMs

-- 
Javier
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to