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

From: Gaz Wilson (dragon_at_dragons.org.uk)
Date: Thu 31 Mar 2005 - 17:16:28 BST


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

-- 
   /           Gary Wilson, aka dragon/dragonlord/dragonv480            \
 .'(_.------.  e: dragon_at_northernscum.org.uk MSN: dragonv480   .------._)`.
<   _       |  Skype:dragonv480 ICQ:342070475 AIM:dragonv480   |       _   >
 `.( `------'     w: http://volvo480.northernscum.org.uk       `------' ).'
   \                w: http://www.northernscum.org.uk                   /
_______________________________________________
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:16:51 BST by hypermail 2.1.3