Re: [Vserver] Remount Filesystem + Add Interface from the outside

From: Oliver Heinz <oheinz_at_fbihome.de>
Date: Tue 08 Aug 2006 - 09:41:22 BST
Message-Id: <200608081041.22847.oheinz@fbihome.de>

Am Montag, 7. August 2006 20:20 schrieb Herbert Poetzl:
> On Mon, Aug 07, 2006 at 01:27:31PM +0200, Oliver Heinz wrote:
> > Am Montag, 7. August 2006 12:25 schrieb Oliver Welter:
> > > Hi Oliver,
> > >
> > > try "vnamespace -e <xid> mount...."
> >
> > this gives me
> >
> > mount: can't find /srv/vservers/service/tmp in /etc/fstab or /etc/mtab
>
> well, mount tries to get the options from /etc/mtab
> and the devices from /etc/fstab, so, you have two
> or three options here:
>
> 1) --bind mount some filesystem with exec permission
> over the guest /tmp for the time you need it executable
>
> 2) chroot into the guest and do the remount there
>
> 3) copy over the fstab/mtab to the host, modify it
> accordingly and rerun the remount
>
> of course all that is supposed to happen _inside_ the
> guest namespace ...

vnamespace -e <xid> chroot <vdir> mount -o remount,noexec /tmp

which is solution 2) works perfectly and seems to me the best solution

Thank you,
Oliver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Aug 8 09:43:05 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 08 Aug 2006 - 09:43:09 BST by hypermail 2.1.8