Subject: Re: [vserver] Using unionfs on guest root
From: Oliver Welter <mail@oliwel.de>
Date: Tue, 26 Aug 2008 13:33:01 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Herbert Poetzl schrieb:
> On Mon, Aug 25, 2008 at 01:43:02AM +0200, Oliver Welter wrote:
> Hi All,
> 
> I am playing around with aufs (unionfs) and dont find the right way to
> do the following:
> 
> I want to have a readonly root-image and mount a writable partition on
> top of it. I can so so mounting the trees first in the main context and
> than start the vserver, but I want to do it in the context of the guest,
> so it is not visible outside.
> 
> I put the aufs mount in the guest fstab:
> none / aufs dirs=overlay:rootfs=ro 0 0
> 
>> that's the correct way to do it (fstab.remote for
>> network related mounts)
> 
> When I launch the guest, I get:
> vcontext(/dev/null) permission denied
> 
>> looks like your /dev/null is not accessible,
>> try to add an explicit 'dev' to the fstab,
>> IIRC, the fstab mounts are executed 'securely'
>> which means they add 'nodev' if not specified
>> otherwise ...

none / aufs dev,dirs=/vservers/_overlays/testing:/vservers/testing=ro

does the job

- --
Protect your environment -  close windows and adopt a penguin!
PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF  8168 CAB7 B0DD 3985 1721
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIs+ntyrew3TmFFyERAsdeAJ9vWA0myYzeuFAOX+C9Pu5Zx2v0cgCeM0fY
IEYqyEjz4yYhCRPgXn8iTVY=
=V5ri
-----END PGP SIGNATURE-----