Subject: Re: [vserver] file copying between host and guest
From: Nirmal Guhan <vavatutu@gmail.com>
Date: Wed, 4 Aug 2010 14:24:30 -0700

 Wed, 4 Aug 2010 14:24:30 -0700
On Wed, Aug 4, 2010 at 9:25 AM, Herbert Poetzl <herbert@13thfloor.at> wrote:
> On Wed, Aug 04, 2010 at 04:20:14PM +0200, raflik-nb wrote:
>> Hello, I am a new user of vserver (on Debian) and found this in FAQ:
>
>> ===
>> How can I copy anything from host to guest partition, normally
>>   unvisible on host?
>   ~~~~~~~~~~~ (should be invisible, but hey :)
>> You should just change namespace, e.g.:
>
>> vnamespace --enter <xid> -- /bin/bash
>> and then use standard cp or rsync programs.
>> ===
>
>> What I see is the guest filesystem in /var/lib/<vserver>
>
> which means it is  visible  on the host
>
>> and I can copy files there which are instantly visible
>> from the guest.
>
> which is expected ...
>
>> What issue does that piece of advice actually address?
>
> mainly filesystems not mounted on the host, like
> for example the /tmp (tmpfs) only mounted inside
> the guest (or other filesystems not shared with
> the host namespace)
>
>> I find it a bit confusing.
>
> hope this clarifies,
> Herbert
>
>> Greets,
>> raflik
>

How different is this from doing a "cp <somefile> <rootfs path of
guest/somedirectory>" from host ?

--Nirmal