About this list Date view Thread view Subject view Author view Attachment view

From: alexander goeres - lieblinxNET (agoeres_at_lieblinx.net)
Date: Thu 31 Mar 2005 - 17:39:47 BST


The problem with /proc inside a vserver looks as if you might have forgotten
to "unhide" the proc entries.

Compiling util-vservers from source and installing them gave
an /etc/init.d/vprocunhide script on the main server, that solved the problem
for me

Have success.
Alexander

Am Donnerstag, 31. März 2005 18:16 schrieb Gaz Wilson:
> Does anyone have any experience with the development branch of Vserver
> and Debian?
>
> I'm having trouble with things not running within the vserver, most notably
> "w" and "ifconfig", although my testing stopped there, there may be many
> more...
>
> I have a totally clean build of Debian (Sarge), running kernel 2.6.11 and
> VS 1.9.5 built from source.
>
> I have built util-vserver-0.30.204 from source, with the following
> configure line:
>
> ./configure --with-vrootdir=/local/vservers
>
> Which went well, this was installed.
>
> I have then created a vserver with the following command line:
>
> vserver test01 build -m debootstrap --hostname test01 --netdev eth0
> --interface 172.29.31.242/16 -- -d sarge
>
> Which appeared to go well. I then started it up:
>
> host01:/# vserver test01 start
> Starting system log daemon: syslogd.
> Starting kernel log daemon: klogd.
> Starting MTA: exim4.
> Starting internet superserver: inetd.
> Starting deferred execution scheduler: atd.
> Starting periodic command scheduler: cron.
>
> All OK so far, but when I enter the server, I get all sorts of oddness...
>
> If I enter the vserver, then execute in this order: ls, mount, df, w,
> ifconfig, ifconfig -a, mount /proc and id - I get:
>
> host01:/# vserver test01 enter
> mesg: /dev/pts/0: Operation not permitted
> test01:/# ls
> bin dev home lib mnt proc sbin sys usr
> boot etc initrd media opt root srv tmp var
> test01:/# mount
> /dev/hdv1 on / type ufs (defaults)
> none on /proc type proc (defaults)
> none on /tmp type tmpfs (size=16m,mode=1777)
> none on /dev/pts type devpts (gid=5,mode=620)
> test01:/# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hdv1 63457000 176252 60057308 1% /
> none 16384 0 16384 0% /tmp
> test01:/# w
> Error: /proc must be mounted
> To mount /proc at boot you need an /etc/fstab line like:
> /proc /proc proc defaults
> In the meantime, mount /proc /proc -t proc
> test01:/# ifconfig
> Segmentation fault
> test01:/# ifconfig -a
> Segmentation fault
> test01:/# mount /proc
> mount: permission denied
> test01:/# id
> uid=0(root) gid=0(root) groups=0(root)
>
> I have read many many pages of documentation from various servers
> including:
>
> http://lena.franken.de/linux/debian_and_vserver/vserver.html
> http://linux-vserver.org/alpha+util-vserver
> http://www.13thfloor.at/vserver/*
> http://www.solucorp.qc.ca/miscprj/s_context.hc
> etc
> etc
>
> but to no avail.
>
> Has anyone seen this issue before and can they advise me what might be
> astray? I guess there could be something in the kernel that is missing or
> needed, but I couldn't say...
>
> GW

-- 
netzwerk- & systemadministrator
-------------------------------------------
agoeres at lieblinx. net
tel.: +49 (0)30 / 61 20 26 87
fax: +49 (0)30 / 69 00 46 03
-------------------------------------------
lieblinxNET
     we do software
a marwood & thiele GbR
-------------------------------------------
reichenberger straße 125
10999 berlin

http://lieblinx.net ------------------------------------------- _______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 31 Mar 2005 - 17:38:28 BST by hypermail 2.1.3