Re: [vserver] Mount host-fs into running vserver

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 23 Apr 2008 - 07:42:26 BST
Message-ID: <20080423064226.GG30605@MAIL.13thfloor.at>

On Fri, Apr 11, 2008 at 02:13:45PM +0200, Wilhelm Meier wrote:
> Hallo,
>
> I think, this question was already answered on the list, but I can't
> find right answer ..,
>
> on the host I have a directory /mnt/test and I want to bind-mount this
> into a running vserver. I thought I have to use vnamespace to do
> this:
>
> vnamespace -e test mount /mnt/test /var/lib/vservers/test/mnt/test -o
> bind,ro
>
> but the files in /mnt/test don't schow up in the vserver:
>
> vserver test exec ls -l /mnt/test
>
> ist empty.
>
> What am I doing wrong?

most likely they are not there (in /mnt/test) after
you entered the guest's namespace with vnamespace,
thus the bind mount succeeds, but leaves you with
the empty mountpoint ...

instead trying to bind mount a newly on the guest
mounted path (I assume /mnt/test is such a thing)
simply do the /mnt/test mount inside the guest
namespace and preferably to the right location too

HTC,
Herbert

>
> --
> Wilhelm
Received on Wed Apr 23 07:58:04 2008

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 23 Apr 2008 - 07:58:06 BST by hypermail 2.1.8