From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasiliy Tolstov Subject: Re: one question about virualization and kvm Date: Thu, 09 Apr 2009 09:42:23 +0400 Message-ID: <1239255743.30305.3.camel@localhost> References: <1238588842.6795.4.camel@localhost> <90eb1dc70904010701r3f442c04j2588ba61bead8ae0@mail.gmail.com> Reply-To: v.tolstov@selfip.ru Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: "kvm@vger.kernel.org" Return-path: Received: from selfip.ru ([77.221.141.148]:44417 "EHLO mail.selfip.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1763588AbZDIFm1 (ORCPT ); Thu, 9 Apr 2009 01:42:27 -0400 Received: from localhost ([127.0.0.1] helo=mail.selfip.ru) by mail.selfip.ru with esmtp (Exim 4.69) (envelope-from ) id 1Lrn1r-0000PC-V5 for kvm@vger.kernel.org; Thu, 09 Apr 2009 09:42:24 +0400 In-Reply-To: <90eb1dc70904010701r3f442c04j2588ba61bead8ae0@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: =D0=92 =D0=A1=D1=80=D0=B4, 01/04/2009 =D0=B2 09:01 -0500, Javier Guerra= =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Wed, Apr 1, 2009 at 7:27 AM, Vasiliy Tolstov = 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 co= py > > all files to containers).. ? >=20 > the problem (and solution) is exactly the same as if they weren't > virtual machines, but real machines: use the network. >=20 > simply share the directories with NFS and mount them in your initrd > scripts (preferably read/only). >=20 > 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. >=20 > usually it's not worth it, unless you have tens of identical VMs >=20 Thank You for answer. But if i store 100-200 kvm guests under one host system, and mount all shared resources via nfs - can this slow down my system? I need only read only access to shared files (only /home and /etc/ is different) --=20 Vasiliy Tolstov Selfip.Ru