Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Herbert Poetzl
On Wed, Dec 28, 2005 at 04:00:24PM +0100, Guenther Fuchs wrote:
 Hi there,
 
 as recommended in amavis configuration I have used an tmpfs mount to
 mount memory as tmp for amavisd-new by adding following line to fstab:
 
 | none/var/amavis/tmp tmpfs   size=250m,mode=1777 0 0
 
 For various reasons (and also for other mounts) I'd like to hide
 this (and other) mount(s) visibility inside the guest - how can this
 done? Any ideas?

'define' hide ...

if you want to have mount not show it, just
remove the entry from the mtab (or mount it
with -n) if you want to hide that fact from
/proc/mounts then it's getting trickier ...
(i.e. you will have to patch the kernel)

HTH,
Herbert

 -- 
 regards,
 
 Guenther Fuchs
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Guenther Fuchs
Hi there,

on Wednesday, December 28, 2005 at 16:38 there was posted:

HP 'define' hide ...

As you defined: Not visible to the mount command.

HP if you want to have mount not show it, just remove the entry from
HP the mtab (or mount it with -n)

How can this be done by specifying it in the config fstab? Sorry for
stupid questioning, never fiddled on that ...

HP if you want to hide that fact from /proc/mounts then it's getting
HP trickier ...

That's not necessary for me as /proc/mounts hide original path's from
the host server ;-)

-- 
regards,

Guenther Fuchs

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Herbert Poetzl
On Wed, Dec 28, 2005 at 04:44:46PM +0100, Guenther Fuchs wrote:
 Hi there,
 
 on Wednesday, December 28, 2005 at 16:38 there was posted:
 
 HP 'define' hide ...
 
 As you defined: Not visible to the mount command.
 
 HP if you want to have mount not show it, just remove the entry from
 HP the mtab (or mount it with -n)
 
 How can this be done by specifying it in the config fstab? Sorry for
 stupid questioning, never fiddled on that ...

I think you can not do that with fstab (because there
is no option mount would understand), but as I said,
you can either do the mount with the -n command or
'just' modify the mtab file ...

latter can be done with sed, awk, echo, vi ...
by hand, on startup, in the init scripts ...

 HP if you want to hide that fact from /proc/mounts then it's getting
 HP trickier ...
 
 That's not necessary for me as /proc/mounts hide original path's from
 the host server ;-)

yes, that's the default (hide_mount)
but it will show mounts inside the guest server ...

best,
Herbert

 -- 
 regards,
 
 Guenther Fuchs
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Guenther Fuchs
Hi there,

on Wednesday, December 28, 2005 at 17:03 there was posted:

HP I think you can not do that with fstab
...
HP 'just' modify the mtab file ...

Okay, have to fiddle init-scripts then ...

 HP if you want to hide that fact from /proc/mounts then it's getting
 HP trickier ...
 That's not necessary for me as /proc/mounts hide original path's from
 the host server ;-)
HP yes, that's the default (hide_mount)
HP but it will show mounts inside the guest server ...

It would be fine for me as well if the original (host) path would be
hidden from mtab on mount as well ...

Okay, will fiddle the scripts now.

Thx for looking into anyway!

-- 
regards,

Guenther Fuchs

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Re-use of an existing chroot disk to implement some vserver ; -)

2005-12-28 Thread Michael S. Zick
On Wed December 28 2005 05:43, Joel Soete wrote:
 Hello all,
 
 For those who could have some interest,
 here are just some notes I took for remind of an implementation of a 
 linux-vserver on a parisc-linux boxe(s).
 (only tested on 32bit up kernel on a c110 and d380 models, though).
 
 This particular execise was to re-use existing chrooted disk(s) already 
 debbootstrap, fully populated and customized (i.e. I didn't
 want to loose that job ;-) ).
 
 (take care to use it at your own risks ;-) )
 
 0/ References
 0.1/ the reference used are:
 http://linux-vserver.org/Step-By-Step+Guide+2.6
 
 0.2/ more details learning:
 http://www.morethan.org/step_step.html
 
Joel, Group
Just posted an update of step_step.html 
It is still not complete, but getting closer.

Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Step by Step Guide to a nano-vserver

2005-12-28 Thread Michael S. Zick
Joel and Group,
Today's update is available.

Baby-01 now does proper networking,
only the directions where wrong.

All links remain the same - see below.

Mike
On Fri December 23 2005 10:23, Michael S. Zick wrote:
 Group,
 This morning's update is available.
 
 Also available on-line at:
 http://www.morethan.org/step_step.html
 
 Still don't have networking setup in the baby
 vserver correctly.
 
 Considerations of restricting file access added.
 
 The download links remain the same.
 http://www.spamviz.net/download/step_step.ps.gz
 
 The binary image of the loop file:
 http://www.spamviz.net/download/baby01.bin.gz
 
 Should run on any linux-2.6.14-vs-2.0.1/x686 system.
 Just unpack her and follow the waking baby section
 of the directions.
 Should look as if you had started your real machine
 with the command line option: init=/bin/bash
 
 Now, on to inventing her first clone.
 
 Enjoy,
 Mike
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 
 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver