* one question about virualization and kvm
@ 2009-04-01 12:27 Vasiliy Tolstov
2009-04-01 14:01 ` Javier Guerra
0 siblings, 1 reply; 3+ messages in thread
From: Vasiliy Tolstov @ 2009-04-01 12:27 UTC (permalink / raw)
To: kvm@vger.kernel.org
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).. ?
P.S. Sorry for bad english and may be stupid question.
--
Vasiliy Tolstov <v.tolstov@selfip.ru>
Selfip.Ru
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: one question about virualization and kvm
2009-04-01 12:27 one question about virualization and kvm Vasiliy Tolstov
@ 2009-04-01 14:01 ` Javier Guerra
2009-04-09 5:42 ` Vasiliy Tolstov
0 siblings, 1 reply; 3+ messages in thread
From: Javier Guerra @ 2009-04-01 14:01 UTC (permalink / raw)
To: v.tolstov; +Cc: kvm@vger.kernel.org
On Wed, Apr 1, 2009 at 7:27 AM, Vasiliy Tolstov <v.tolstov@selfip.ru> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: one question about virualization and kvm
2009-04-01 14:01 ` Javier Guerra
@ 2009-04-09 5:42 ` Vasiliy Tolstov
0 siblings, 0 replies; 3+ messages in thread
From: Vasiliy Tolstov @ 2009-04-09 5:42 UTC (permalink / raw)
To: kvm@vger.kernel.org
В Срд, 01/04/2009 в 09:01 -0500, Javier Guerra пишет:
> On Wed, Apr 1, 2009 at 7:27 AM, Vasiliy Tolstov <v.tolstov@selfip.ru> 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
>
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)
--
Vasiliy Tolstov <v.tolstov@selfip.ru>
Selfip.Ru
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-09 5:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 12:27 one question about virualization and kvm Vasiliy Tolstov
2009-04-01 14:01 ` Javier Guerra
2009-04-09 5:42 ` Vasiliy Tolstov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox