[Vserver] Vservers under Debian
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 homelibmnt 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 63457000176252 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 procdefaults 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: [EMAIL PROTECTED] MSN: dragonv480 .--._)`. _ | Skype:dragonv480 ICQ:342070475 AIM:dragonv480 | _ `.( `--' w: http://volvo480.northernscum.org.uk `--' ).' \w: http://www.northernscum.org.uk / ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vservers under Debian
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 homelibmnt 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 63457000176252 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 procdefaults 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@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vservers under Debian
On Thu, 31 Mar 2005, alexander goeres - lieblinxNET wrote: 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 Thanks for that - it certainly fixed the w issue :-), but ifconfig is still segfaulting - does anyone have any more ideas? ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vservers under 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... Nothing hardware-related should be done inside the server. 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 Execute mesg n before entering. Or connect to the vserver via ssh. test01:/# w Error: /proc must be mounted To mount /proc at boot you need an /etc/fstab line like: /proc /proc procdefaults In the meantime, mount /proc /proc -t proc /proc is hidden from the vserver. If you want to access it, you can run (on the *host*) the vprocunhide script, provided with the tools. test01:/# ifconfig Segmentation fault test01:/# ifconfig -a Segmentation fault Forbidden (network hardware) inside the vserver. test01:/# mount /proc mount: permission denied Forbidden. You have to customize the file (on the host) /etc/vservers/your-server-name/fstab Best, Gilles ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vservers under Debian
test01:/# ifconfig Segmentation fault test01:/# ifconfig -a Segmentation fault Forbidden (network hardware) inside the vserver. Sorry, this should work (as long as you don't want to set up the interface...). ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vservers under Debian
Hello, On 2005.03.31 17:56:22 +0100, Gaz Wilson wrote: On Thu, 31 Mar 2005, Gilles wrote: test01:/# ifconfig Segmentation fault test01:/# ifconfig -a Segmentation fault Forbidden (network hardware) inside the vserver. Sorry, this should work (as long as you don't want to set up the interface...). Hehe - I was just about to write a reply about your previous reply, Gilles! Yes, I simply want to use ifconfig to show the interface, not configure it. Interestingly enough, the IP _IS_ configured as I can ping it from within the vserver - yet ifconfig refuses to work for as yet unknown reasons. ifconfig is old and only knows about named interface addresses. stable tools always created named interface addresses using ifconfig, but the alpha tools use iproute to setup networking and thus can create nameless interface addresses. Those are not listed by ifconfig, but you can use ip addr show or just ip a instead. If you want named interfaces addresses, you have to tell the tools about that, please check the flower page for details, i don't remember them ;) ifconfig shouldn't segfault though... strace available? HTH Bjoern ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] [announce] util-vserver 0.30.205 + status report
just for your information: the community discovered a bug in this util-vserver release. which causes chcontext to fail in the following scenarios: # chcontext --hostname zaphod.2725 doener wrote a quick fix for this bug, which is provided below. best regards, raoul bhatia -- cut --- diff -NurpP --minimal util-vserver-0.30.205/scripts/chcontext util-vserver-0.30.205-fix/scripts/chcontext --- util-vserver-0.30.205/scripts/chcontext 2005-03-21 21:03:30.0 +0100 +++ util-vserver-0.30.205-fix/scripts/chcontext 2005-03-31 18:48:55.0 +0200 @@ -164,7 +164,7 @@ migrate_cmd=( $_VCONTEXT IFS=$old_IFS -if $_VSERVER_INFO -q $OPT_CTX XIDTYPE static; then +if test -z $OPT_CTX || $_VSERVER_INFO -q $OPT_CTX XIDTYPE static; then [EMAIL PROTECTED] [EMAIL PROTECTED] -- \ [EMAIL PROTECTED] --endsetup --migrate-self -- $@ rc=$? -- cut -- Enrico Scholz wrote: Hello, version 0.30.205 util-vserver (alpha branch) is out. Noticable changes are a new 'vhashify' command which is a successor of 'vunify'. It uses some aggressive techniques like mmap'ing of files and the creation of sparse files. To prevent data lossage, it is strongly recommended to execute 'make check' when using non-ext3 filesystems. (Unfortunately, the 'cmp' tool is sometimes not configured for large files and will create false positives). Another issue is 'vyum': the current 'yum' version makes it impossible to execute it when the vserver is running (there, /.. might be unequal to /). A fix for yum can be found at https://bugzilla.redhat.com/beta/show_bug.cgi?id=146650#c1 but the upstream author dislikes it. Feel free to request another fix there ;) Enrico ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- raoul bhatia email.[EMAIL PROTECTED] ipax web.http://www.ipax.at - chief technician, support - irc. #ipax (quakenet) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vservers under Debian
On Thu, Mar 31, 2005 at 05:42:00PM +0100, Gaz Wilson wrote: On Thu, 31 Mar 2005, alexander goeres - lieblinxNET wrote: 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 Thanks for that - it certainly fixed the w issue :-), but ifconfig is still segfaulting - does anyone have any more ideas? yeah, try to strace -fF it and/or inspect the core dump with gdb (command where) to see why it segfaults ... (this is something which we can do together on the irc channel #vserver @ irc.oftc.net ) best, Herbert ___ 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: [RE:] Re: [Vserver] Linux Vserver - Feature Question
On Thu, 31 Mar 2005, Herbert Poetzl wrote: On Thu, Mar 31, 2005 at 09:26:31AM +0200, [EMAIL PROTECTED] wrote: hmm, so you would like to artificially slow down the I/O transfer of a vserver, and make the transaction somewhat longer than necessary? I guess more like not slowing down the host or other vservers. -- Funny quotes: 19. Quantum mechanics: The dreams stuff is made of. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] vsched
... # vsched --help Usage: vsched [--xid xid] 8-- Can anybody tell me, what mean these options? [--fill-rate rate] -- in which measure? percents? [--interval interval] -- milliseconds? nanoseconds? crocodiles per mile? ;) skip cause=clear/ [--prio-bias bias] -- what is bias? 8-- [--] [command args*] -- Peter V. Saveliev ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [RE:] Re: [Vserver] Linux Vserver - Feature Question
There is something like this in a patch to UML developed by the Linode folks: http://www.linode.com/forums/archive/o_t/t_790/linode.com_status_update_04_06_04.html Looks like a token bucket, only for IO. It may be easier to do something like this in UML because their IO driver is a constant (UBD) whereas in VServer things aren't so simple since the driver could be anything? Herbert can probably comment on this better :-) I do think that this would be an interesting feature. Grisha On Thu, 31 Mar 2005, Bodo Eggert wrote: On Thu, 31 Mar 2005, Herbert Poetzl wrote: On Thu, Mar 31, 2005 at 09:26:31AM +0200, [EMAIL PROTECTED] wrote: hmm, so you would like to artificially slow down the I/O transfer of a vserver, and make the transaction somewhat longer than necessary? I guess more like not slowing down the host or other vservers. -- Funny quotes: 19. Quantum mechanics: The dreams stuff is made of. ___ 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] vsched
see this thread (read the whole thread, my post has some inaccuracies corrected in follow-ups) http://www.mail-archive.com/vserver@list.linux-vserver.org/msg03324.html Grisha On Fri, 1 Apr 2005, Peter V. Saveliev wrote: ... # vsched --help Usage: vsched [--xid xid] 8-- Can anybody tell me, what mean these options? [--fill-rate rate] -- in which measure? percents? [--interval interval] -- milliseconds? nanoseconds? crocodiles per mile? ;) skip cause=clear/ [--prio-bias bias] -- what is bias? 8-- [--] [command args*] -- Peter V. Saveliev ___ 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: [RE:] Re: [Vserver] Linux Vserver - Feature Question
On Thu, Mar 31, 2005 at 04:06:46PM -0500, Gregory (Grisha) Trubetskoy wrote: There is something like this in a patch to UML developed by the Linode folks: http://www.linode.com/forums/archive/o_t/t_790/linode.com_status_update_04_06_04.html Looks like a token bucket, only for IO. It may be easier to do something like this in UML because their IO driver is a constant (UBD) whereas in VServer things aren't so simple since the driver could be anything? Herbert can probably comment on this better :-) I do think that this would be an interesting feature. http://www.theshore.net/~caker/uml/patches/ (seems to have updated patches regarding this stuff) http://www.theshore.net/~caker/uml/patches/token-limiter.README will look into it .. anybody volunteering to test such stuff? TIA, Herbert Grisha On Thu, 31 Mar 2005, Bodo Eggert wrote: On Thu, 31 Mar 2005, Herbert Poetzl wrote: On Thu, Mar 31, 2005 at 09:26:31AM +0200, [EMAIL PROTECTED] wrote: hmm, so you would like to artificially slow down the I/O transfer of a vserver, and make the transaction somewhat longer than necessary? I guess more like not slowing down the host or other vservers. -- Funny quotes: 19. Quantum mechanics: The dreams stuff is made of. ___ 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 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] vsched
On Fri, Apr 01, 2005 at 12:31:45AM +0400, Peter V. Saveliev wrote: ... # vsched --help Usage: vsched [--xid xid] 8-- Can anybody tell me, what mean these options? [--fill-rate rate] -- in which measure? percents? tokens [--interval interval] -- milliseconds? nanoseconds? crocodiles per mile? ;) jiffies or ticks ... skip cause=clear/ [--prio-bias bias] -- what is bias? not used for now ... 8-- [--] [command args*] HTH, Herbert -- Peter V. Saveliev ___ 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: [RE:] Re: [Vserver] Linux Vserver - Feature Question
I do think that this would be an interesting feature. http://www.theshore.net/~caker/uml/patches/ (seems to have updated patches regarding this stuff) http://www.theshore.net/~caker/uml/patches/token-limiter.README will look into it .. anybody volunteering to test such stuff? TIA, Herbert I think I can create a test case for this. I have a server that is not currently running any vserver stuff that will be ok with a reboot now and then. I don't monitor this list that closely these days, so jog me when there's something ready for me to test. -- Matthew Nuzum [EMAIL PROTECTED] www.followers.net - Makers of Elite Content Management System View samples of Elite CMS in action by visiting http://www.followers.net/portfolio/ ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver