Subject: Re: [vserver] Mount host-fs into running vserver
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Wed, 23 Apr 2008 08:42:26 +0200

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