Re: one question about virualization and kvm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 1, 2009 at 7:27 AM, Vasiliy Tolstov <v.tolstov@xxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux