RE: [Vserver] stalled vserver guest nfs mounts
Here are some notes on nfs I made when playing with it. #I re-mount this filesystem manually without a vserver restart from the root/host sudo vnamespace -e 100 mount -t nfs calnfs01.fglcorporate.net:/nfs_unix_data /vservers/unixdev1/unix_data #I can unmount this filesystem manually without a vserver restart from the root/host sudo vnamespace -e 100 umount /vservers/unixdev1/unix_data Note that 100 is the context of the vserver. It may look a little screwy when doing manual mounts (df -h) but it works. When the vserver is restarted all looks right again. Hope it helps. Sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitris Zilaskos Sent: Wednesday, May 31, 2006 6:31 AM To: vserver@list.linux-vserver.org Subject: [Vserver] stalled vserver guest nfs mounts Hello, I have two vserver guests that mount an nfs share. In the beginning everything worked fine, but after a few weeks the nfs share is frozen, meaning that several directories/files are no longer visible from the guests. I am running 2.6.14.3-vs2.0.1 on scientific linux 4.2. I am using /etc/vservers/guest-name/fstab method. Is there anything I can do other than restarting the guest ( which is not possible at the moment)? Best regards, -- Dimitris Zilaskos Department of Physics @ Aristotle University of Thessaloniki , Greece PGP key : http://tassadar.physics.auth.gr/~dzila/pgp_public_key.asc http://egnatia.ee.auth.gr/~dzila/pgp_public_key.asc MD5sum : de2bd8f73d545f0e4caf3096894ad83f pgp_public_key.asc ___ 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] [EMAIL PROTECTED]
Yes as Herbert notes from your output: Use dietlibc: no (you have been warned) I think you may have overlooked the following line from the crux install notes: sudo prt-get install dietlibc I believe you need to use dietlibc, I had troubles without it. Herbert suggested I try it. All worked fine after. If you search the ml/irc archives at the very least you'll find my issues. I have included a snippet below. Not running make install-distribution did not seem to cause me any issues. But it is prob worthwhile running. Sig -Original Message- From: [EMAIL PROTECTED] [mailto:vserver-[EMAIL PROTECTED] On Behalf Of Magnuson, Sig Sent: Wednesday, August 24, 2005 9:34 PM Cc: vserver@list.linux-vserver.org Subject: RE: [Vserver] unable to stop the vserver after upgrade Herbert thanks for your help. Issue: Unable to stop vserver, everything else appears to work fine. Issue was resolved when dietlibc was installed and tools recompiled EG: Installed dietlibc cd /path/to/vserver/src/util-vserver-0.30.208 make uninstall make clean ./configure make make install Note: allowed ./configure to autodetect dietlibc from config.log ... configure:9473: checking whether to enable dietlibc configure:9533: result: yes (autodetected, 0.29) ... Thanks, sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Herbert Poetzl Sent: Wednesday, April 19, 2006 10:13 AM To: Falk Hamann Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] [EMAIL PROTECTED] On Wed, Apr 19, 2006 at 11:50:09AM +0200, Falk Hamann wrote: On Thu, 13 Apr 2006 08:55:18 -0600 [EMAIL PROTECTED] wrote: See the previous post regarding crux documentation. If still having issues, do the following. It will probably help people troubleshoot your issue. Download, run and paste output back to list http://vserver.13thfloor.at/Stuff/SCRIPT/testme.sh This program is part of util-vserver 0.30.209 Copyright (C) 2004 Enrico Scholz This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. Linux 2.6.16.1 #3 SMP Fri Apr 7 09:44:20 CEST 2006 i686 Ea 0.30.209 273/glibc (S*) compat,v11,v13,fscompat,net,oldproc,olduts VCI: 0002:0001 273 0316 (TbLgnP) ([EMAIL PROTECTED]) (gcc version 4.0.3 (CRUX)) #3 SMP Fri Apr 7 09:44:20 CEST 2006 --- [000]# chcontext true chcontext --xid 45678 true [000]# succeeded. [001]# chcontext --xid 45678 egrep 'context|VxID' /proc/self/status [001]# succeeded. [011]# chcontext --secure --xid 45678 mknod /tmp/testme.sh.LT1693/node c 0 0 [011]# succeeded. [031]# chcontext --hostname zaphod.1690 uname -a | grep -q zaphod.1690 [031]# succeeded. [101]# chbind --ip 192.168.0.42 true [101]# succeeded. [102]# chbind --ip 192.168.0.1/255.255.255.0 --ip 10.0.0.1/24 true [102]# succeeded. [201]# chcontext --xid 45678 --flag fakeinit bash -c 'test $$ -eq 1' [201]# succeeded. [202]# chcontext --flag fakeinit bash -c 'test $$ -eq 1' [202]# succeeded. The testscript works well. looks good, yes ... Run and paste output back to list ./vserver-info [EMAIL PROTECTED] ~# vserver-info Versions: Kernel: 2.6.16.1 VS-API: 0x00020001 util-vserver: 0.30.209; Apr 12 2006, 15:07:54 Features: CC: gcc, gcc (GCC) 4.0.3 (CRUX) CXX: g++, g++ (GCC) 4.0.3 (CRUX) CPPFLAGS: '' CFLAGS: '-O2 -march=i686 -pipe -std=c99 -Wall -pedantic -W -funit-at-a-time' CXXFLAGS: '-O2 -march=i686 -pipe -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time' build/host: i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: no (you have been warned) ~~ you have been warned :) Build C++ programs: yes Build C99 programs: yes Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts ~~ this one should not be required anymore, you can remove it when configuring with --enable-apis=NOLEGACY IIRC ext2fs Source: e2fsprogs syscall(2) invocation: fast vserver(2) syscall#: 273/glibc Paths: prefix: /usr sysconf-Directory: /etc cfg-Directory: /etc/vservers initrd-Directory: /etc/rc.d pkgstate-Directory: ${prefix}/var/run/vservers vserver-Rootdir: /vservers Assumed 'SYSINFO' as no other option given; try '--help' for more information. So the host is crux (version ??) So the guest is crux (version ??) Both are CRUX 2.2. vserver started in debug-mode. I hope these infos help solve the problem. [EMAIL PROTECTED] ~# vserver --debug vcrux01 start + shift + true + case $1 in + shift + break + OPTION_ALL=($OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY) + SELF=($0 [EMAIL PROTECTED]) +
RE: [Vserver] [EMAIL PROTECTED]
Falk, Not sure if this helps any but I have a newer doc version. Pasted it below. I have not tried with crux 2.2 yet. Later Sig How to install and use linux-vserver with crux 2.0 / 2.1 http://crux.nu/ http://linux-vserver.org/ http://gentoo.home.xnull.de/doc/en/vshandbook/index.xml?part=0chap=0 notes: Expect to find errors I may be doing things completely backwards but it seems to work vservers are going to be installed onto seperate partition /vservers/... I use sudo for most root commands. If you prefer to use root then ignore sudo at front of commands Preparing your host server with vserver * Get vserver code cd ~/src/vserver wget http://www.13thfloor.at/vserver/d_rel26/v1.9.5/util-vserver-0.30.204.tar .gz gzip -d util-vserver-0.30.204.tar.gz tar -xf util-vserver-0.30.204.tar wget http://www.13thfloor.at/vserver/d_rel26/v1.9.5/linux-vserver-1.9.5.tar.g z gzip -d linux-vserver-1.9.5.tar.gz tar -xf linux-vserver-1.9.5.tar * Get vanilla linux kernel and compile in vserver patch aquired from above cd /usr/src sudo wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.5.tar.bz2 sudo bzip2 -d linux-2.6.11.5.tar.bz2 tar -xf linux-2.6.11.5.tar cd linux-2.6.11.5 sudo cp ../linux-2.6.6/.config . sudo cp ~/src/vserver/patch-2.6.11.5-vs1.9.5.diff sudo patch -p1 -s ../patch-2.6.11.5-vs1.9.5.diff If you want: patch for the specific kernel sudo make menuconfig sudo make all sudo make modules_install * Install newly patched kernel cd /usr/src sudo rm linux sudo ln -s linux-2.6.11.5 linux sudo cp /usr/src/linux-2.6.11.5/arch/i386/boot/bzImage /boot/vmlinuz-2.6.11.5-1 sudo cp System.map /boot/System.map-2.6.11.5-1 cd /boot sudo ls -s System.map-2.6.6-2 System.map sudo vi /etc/lilo.conf ... ... image=/boot/vmlinuz-2.6.11.5-1 label=KERNEL-4 root=/dev/discs/disc0/part2 read-only sudo lilo -q sudo lilo sudo lilo -q * Install additional/required software sudo prt-get install iproute2 sudo prt-get install iptables sudo prt-get install rsync sudo prt-get install dietlibc * Get vconfig binary cd ~/src/ wget http://www.candelatech.com/~greear/vconfig sudo cp vconfig /usr/local/sbin * Complile and install vserver utilities cd ~/src/vserver/util-vserver-0.30.204 ./configure --prefix=/usr/local make sudo make install * Create vserver guest OS directory sudo mkdir -m 000 /vservers sudo mkdir /vservers/vcrux01 * If using SSH (or any other port listening application) change it to listen to the specific interface (ie not 0.0.0.0) sudo vi /etc/ssh/sshd_config ... ... ListenAddress 172.27.12.19 ... ... * restart ssh and ensure it still works sudo /etc/rc.d/sshd restart Building your first vserver * On Host OS sudo vserver vcrux01 build -m skeleton -n vcrux01 --context 100 --hostname vcrux01.corporate.net --interface 172.27.12.24 --netdev eth0 --netmask 255.255.248.0 --initstyle plain * Edit sysctl.conf and configure vshelper sudo vi /etc/sysctl.conf kernel.vshelper = /usr/local/lib/util-vserver/vshelper * Set up vserver barrier (this is untested) sudo showattr -d /vservers/vcrux01/.. ---bui- /vservers/vcrux01/.. sudo setattr --barrier /vservers/vcrux01/.. sudo showattr -d /vservers/vcrux01/.. ---Bui- /vservers/vcrux01/.. * Try this if the above does not work (This works but above should be better) #sudo showattr -d /vservers/vcrux01 #---bui- /vservers/vcrux01 #sudo setattr --barrier /vservers/vcrux01 #sudo showattr -d /vservers/vcrux01 #---Bui- /vservers/vcrux01 * set default tty (not sure if this works) sudo mkdir -p /usr/local/etc/vservers/.defaults/apps/init cd /usr/local/etc/vservers/.defaults/apps/init sudo ln -s /dev/tty6 tty * Check the folowing file to ensure all it configured fine. If not edit files. cat /usr/local/etc/vservers/vcrux01/apps/init/style plain cat /usr/local/etc/vservers/vcrux01/interfaces/dev eth0 cat /usr/local/etc/vservers/vcrux01/interfaces/mask 255.255.248.0 cat /usr/local/etc/vservers/vcrux01/interfaces/0/ip 172.27.12.24 cat /usr/local/etc/vservers/vcrux01/interfaces/0/name c01 cat /usr/local/etc/vservers/vcrux01/uts/nodename vcrux01.corporate.net cat /usr/local/etc/vservers/vcrux01/name vcrux01 cat /usr/local/etc/vservers/vcrux01/fstab none /proc proc defaults 0 0 none /tmp tmpfs size=16m,mode=1777 0 0 none /dev/pts devpts gid=5,mode=620 0 0 cat /usr/local/etc/vservers/crux01/context 100 # set it up so uptime is reflective of vserver uptime not host uptime cat /usr/local/etc/vservers/unixdev1/flags VIRT_UPTIME Install Crux to /vserver/vcrux01 boot from crux install cd mount /, /usr, and /vservers to /mnt, /mnt/usr, and /mnt/vservers chroot to /mnt set root password run crux setup use /mnt/vservers/vcrux01 as install point do not compile kernel, not used do not run lilo do not run lilo do not run lilo see crux handbook for details: http://crux.nu/doc/handbook.html boot OS back up * configure guest OS vcrux01 cd /mnt/vservers/vcrux01 sudo vi ./etc/rc.conf
RE: [Vserver] Virtualizing a physical server
This is what I did. Modify as required. Hope it helps. sig Creating a vserver from a non-vserver host (The server was redhat AS 3) * Clone host1 (non-vserver) to host2:vserver1 calcrs03 -- calvunix02:rhas3template01 ssh calvunix02 sudo /etc/rc.d/rsyncd start sudo vserver vrhas3template01 build -m skeleton -n vrhas3template01 --context 30 --hostname vrhas3template01.corporate.net --interface 172.27.XX.XX --netdev eth0 --netmask 255.255.248.0 --initstyle plain ssh calcrs03 cat /home/sig/rsync-exclude.txt /u01/ /u02/ /u03/ /u04/ /u05/ /u06/ /u07/ /u08/ /u09/ /u10/ /u11/ /u99/ /unix_data/ /proc/ /dev/ /boot/ sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt / 172.27.XX.XX:/vservers/vrhas3template01 ssh calvunix02 sudo vi /vservers/vrhas3template01/etc/resolv.conf sudo vi /vservers/vrhas3template01/etc/fstab sudo vi /vservers/vrhas3template01/etc/hosts sudo vi /vservers/vrhas3template01/etc/ssh/sshd_config X11UseLocalhost no - Needed for vserver x forwarding sudo vi /vservers/vrhas3template01/etc/sysconfig/network set hostname sudo vi /vservers/vrhas3template01/etc/rc.sysinit remove mtab references remove tty references sudo vi /vservers/vrhas3template01/etc/inittab remove tty references check over /usr/local/etc/vservers/vrhas3template01/.. sudo vserver vrhas3template01 start sudo vserver-stat sudo vserver vrhas3template01 enter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ehab Heikal Sent: Tuesday, January 24, 2006 6:13 PM To: vserver@list.linux-vserver.org Subject: [Vserver] Virtualizing a physical server I need to setup a development or staging server of an existing running server. Is there a tool to do so? ___ 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] Virtualizing a physical server
yup -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ehab Heikal Sent: Wednesday, January 25, 2006 7:30 PM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] Virtualizing a physical server The section starting with sudo vi /vservers/vrhas3template01/etc/resolv.conf Are these files that I should manually edit? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 7:02 PM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] Virtualizing a physical server This is what I did. Modify as required. Hope it helps. sig Creating a vserver from a non-vserver host (The server was redhat AS 3) * Clone host1 (non-vserver) to host2:vserver1 calcrs03 -- calvunix02:rhas3template01 ssh calvunix02 sudo /etc/rc.d/rsyncd start sudo vserver vrhas3template01 build -m skeleton -n vrhas3template01 --context 30 --hostname vrhas3template01.corporate.net --interface 172.27.XX.XX --netdev eth0 --netmask 255.255.248.0 --initstyle plain ssh calcrs03 cat /home/sig/rsync-exclude.txt /u01/ /u02/ /u03/ /u04/ /u05/ /u06/ /u07/ /u08/ /u09/ /u10/ /u11/ /u99/ /unix_data/ /proc/ /dev/ /boot/ sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt / 172.27.XX.XX:/vservers/vrhas3template01 ssh calvunix02 sudo vi /vservers/vrhas3template01/etc/resolv.conf sudo vi /vservers/vrhas3template01/etc/fstab sudo vi /vservers/vrhas3template01/etc/hosts sudo vi /vservers/vrhas3template01/etc/ssh/sshd_config X11UseLocalhost no - Needed for vserver x forwarding sudo vi /vservers/vrhas3template01/etc/sysconfig/network set hostname sudo vi /vservers/vrhas3template01/etc/rc.sysinit remove mtab references remove tty references sudo vi /vservers/vrhas3template01/etc/inittab remove tty references check over /usr/local/etc/vservers/vrhas3template01/.. sudo vserver vrhas3template01 start sudo vserver-stat sudo vserver vrhas3template01 enter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ehab Heikal Sent: Tuesday, January 24, 2006 6:13 PM To: vserver@list.linux-vserver.org Subject: [Vserver] Virtualizing a physical server I need to setup a development or staging server of an existing running server. Is there a tool to do so? ___ 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 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] Copy VServer
Lars, see the included post dated Oct 19, 2005 later sig -Original Message- Sent: Wednesday, October 19, 2005 11:38 AM Subject: RE: [Vserver] Re: I would like to know how to build a FC4 template # This command creates the config dirs/files (/etc/vservers/vserver-name/) and base vserver home /vservers/vserver-name/) sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net --interface 192.168.xxx.xxx --netdev eth0 --netmask 255.255.255.0 --initstyle plain # Notes: other options would be to copy a existing vserver config to the new vserver and modify by hand using your fav text editor (vi, etc) # Copy vserver vcrux01 to vserver vcrux02 sudo cp -rp /etc/vservers/vcrux01 /etc/vservers/vcrux02 # Here is a complete example: sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net --interface xxx.xxx.xxx.xxx --netdev eth0 --netmask 255.255.255.0 --initstyle plain sudo rm -rf /vservers/vcrux02 sudo cp -va /vservers/vcrux01 /vservers/vcrux02 # Here's another way sudo cp -rp /etc/vservers/vcrux01 /etc/vservers/vcrux02 # edit/confirm config files (sudo vi /etc/vservers/vcrux02/..) sudo cp -va /vservers/vcrux01 /vservers/vcrux02 Give the above examples a try. Replace the paths/dirs to match your situation. later sig ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] moving a physical server to a virtual server...?
Pretty much. I have included my notes on how I do it. later sig Creating a vserver from a non-vserver host * Clone host1 (non-vserver) to host2:vserver1 calcrs03 -- calvunix02:rhas3template01 ssh calvunix02 sudo /etc/rc.d/rsyncd start sudo vserver vrhas3template01 build -m skeleton -n vrhas3template01 --context 30 --hostname vrhas3template01.corporate.net --interface 192.168.10.206 --netdev eth0 --netmask 255.255.248.0 --initstyle plain ssh calcrs03 cat /home/sig/rsync-exclude.txt /u01/ /u02/ /u03/ /unix_data/ /proc/ /dev/ /boot/ sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt / calvunix02:/vservers/vrhas3template01 ssh calvunix02 sudo vi /vservers/vrhas3template01/etc/resolv.conf sudo vi /vservers/vrhas3template01/etc/fstab sudo vi /vservers/vrhas3template01/etc/hosts sudo vi /vservers/vrhas3template01/etc/ssh/sshd_config X11UseLocalhost no - Needed for vserver x forwarding (ORACLE) sudo vi /vservers/vrhas3template01/etc/sysconfig/network set hostname sudo vi /vservers/vrhas3template01/etc/rc.sysinit remove mtab references remove tty references sudo vi /vservers/vrhas3template01/etc/inittab remove tty references check over /usr/local/etc/vservers/vrhas3template01/.. sudo vserver vrhas3template01 start sudo vserver-stat sudo vserver vrhas3template01 enter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Evert Meulie Sent: Thursday, November 10, 2005 7:20 AM To: vserver@list.linux-vserver.org Subject: [Vserver] moving a physical server to a virtual server...? Hi all! I have the following problem. We have a server here that originally was set up as www/mysql/etc/etc server for client A. Later on this server was reconfigured as vserver and client B was set up as vserver. Now we want to move client A from the 'main server' to a vserver as well. What is the best way to do this? I have used client B's vserver as template to create a virtual server for client A. Should I now just copy /* (excluding /vservers /proc /tmp /dev/pts, of course) from / to /vservers/[client A] will this do the trick? Evert ___ 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] Talking about limits...
Have a look at: http://linux-vserver.org/Caps+and+Flags http://www.nongnu.org/util-vserver/doc/conf/configuration.html -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Michel Belleau (malaiwah.com)Sent: Friday, October 21, 2005 10:26 AMTo: vserver@list.linux-vserver.orgSubject: Re: [Vserver] Talking about limits...Hi again Sam.I tried searching for the "virt_mem" flag and can't find anything... Where is the best place to search for that flag ?Thanks in advance,Michel Belleau SERVICES INFORMATIQUES MALAIWAH.COM (418) 261-6412 -- http://www.malaiwah.comMichel Belleau (malaiwah.com) a écrit: Hi Sam.I didn't knew about this option before, I'll have a look at the wiki right now!Thanks a lot,Michel Belleau SERVICES INFORMATIQUES MALAIWAH.COM (418) 261-6412 -- http://www.malaiwah.comSam Vilain a écrit: On Tue, 2005-10-18 at 15:46 -0400, Michel Belleau (malaiwah.com) wrote: I tried limiting a vserver memory this week-end but had no luck doing it.. I tried setting the AS and RSS files in the configuration directory, but it doesn't seem to work the way I wanted. It kills processes (like apache in my tests) which need more memory than what I allowed in the limits. What I would like to do is limit the usage of RAM the vserver has. It seems that AS and RSS limits are the total ressources of a vserver. I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I don't want the OOM killer to restrict applications to ask for more than 128 megs of RAM. I know I can do it, since how does VPS using vservers work then? Did you try putting "virt_mem" in /etc/vservers/XXX/flags ? Sam. ___ 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] unmount nfs with vserver
I went back through my orig post on this way back when and found a comment that I missed/forgot. This might have helped me... sorry herbert. I would like to mount a nfs filesystem from a non vserver (nfs server) into a vserver (nfs client). inside, you have to use some kind of userspace nfs daemon as you do not have/get kernel support without proper permissions ... HTH, Herbert I also just found thesebetter late then never. http://vserver.strahlungsfrei.de/tiki-index.php?page=NFSVServer http://www.paul.sladen.org/vserver/faq/#nfs I'm currently mounting NFS from outside the vserver. sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jim Wight Sent: Thursday, October 20, 2005 2:16 AM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] unmount nfs with vserver Ok my plan is to be able to mount/umount nfs disk from inside the guest/vserver. I'm still getting a permission denied. #Now that I have the ccaps in place properly (i hope) cat /usr/local/etc/vservers/unixdev1/ccapabilities SECURE_MOUNT SECURE_REMOUNT BINARY_MOUNT I also want to get NFS working inside a vserver. I have progressed form 'permission denied' to unknown filesystem type 'nfs' by including those in ccapabilities. 'nfs' is listed as a filesystem in /proc/filesystems, and the nfs module is loaded. strace shows that the mount call fails with 'ENODEV (No such device)'. Needless to say, it works if I use CAP_SYS_ADMIN instead. What might the problem be? My testme.sh output is: Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl chcontext is working. chbind is working. Linux 2.6.12.5-vs2.0 i686/0.30.208/0.30.208 [Ea] (0) VCI: 0002:0001 273 0316 --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. Jim ___ 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] VServer forum
I like the maillist because it does not require anything from me (going to a website and looking for updates, etc). Guess that makes me really lazy :) I don't get time to visit all the sites I should each day, but when that new email notification icon is sitting therewell you know the rest. I do believe a web forum would open up vserver to more users (user friendly), modern looking, etc Perhaps something like the following is a option. The best of both worlds one could say I have never used it. http://www.mail2forum.com/ later sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Herbert Poetzl Sent: Thursday, October 20, 2005 12:30 AM To: Evert Meulie Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] VServer forum On Wed, Oct 19, 2005 at 09:09:11PM +0200, Evert Meulie wrote: Hi all! For anyone who is interested I have created a VServer forum on my site: http://vserver.meulie.net/ thanks! I changed the entry to 'Unofficial' and asked to contact me at IRC, don't know when I will be there actually but ML is even better ... the main question is, do we need 'another forum'? basically I've tried to make the ML the one and only 'other' forum (besides the IRC channel), and I'm not convinced that we really need one besides that ... but I leave that to the community ... sidenote: when I tried your forum, it was dog-slow (which is something we could very likely improve if there is a demand for such a kind of forum) please let me know the reasoning behind the forum (e.g. rationale, advantages over ML, etc ...) don't get me wrong, I'm not vetoing this right now I'm just trying to figure the details ... TIA, Herbert Regards, Evert ___ 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] VServer forum
I also noticed that if vserver wanted to go one step further xoops + newbb + CM2F addon (http://dev.xoops.org/modules/xfmod/project/?xoopscm2f) postnuke + PNphpBB + CM2F addon (http://mods.postnuke.com/Article2569.html) I'm sure mambo and other may have this functionality as well sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnuson, Sig Sent: Thursday, October 20, 2005 8:36 AM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] VServer forum I like the maillist because it does not require anything from me (going to a website and looking for updates, etc). Guess that makes me really lazy :) I don't get time to visit all the sites I should each day, but when that new email notification icon is sitting therewell you know the rest. I do believe a web forum would open up vserver to more users (user friendly), modern looking, etc Perhaps something like the following is a option. The best of both worlds one could say I have never used it. http://www.mail2forum.com/ later sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Herbert Poetzl Sent: Thursday, October 20, 2005 12:30 AM To: Evert Meulie Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] VServer forum On Wed, Oct 19, 2005 at 09:09:11PM +0200, Evert Meulie wrote: Hi all! For anyone who is interested I have created a VServer forum on my site: http://vserver.meulie.net/ thanks! I changed the entry to 'Unofficial' and asked to contact me at IRC, don't know when I will be there actually but ML is even better ... the main question is, do we need 'another forum'? basically I've tried to make the ML the one and only 'other' forum (besides the IRC channel), and I'm not convinced that we really need one besides that ... but I leave that to the community ... sidenote: when I tried your forum, it was dog-slow (which is something we could very likely improve if there is a demand for such a kind of forum) please let me know the reasoning behind the forum (e.g. rationale, advantages over ML, etc ...) don't get me wrong, I'm not vetoing this right now I'm just trying to figure the details ... TIA, Herbert Regards, Evert ___ 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 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] Re: I would like to know how to build a FC4 template
# This command creates the config dirs/files (/etc/vservers/vserver-name/) and base vserver home /vservers/vserver-name/) sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net --interface192.168.xxx.xxx --netdev eth0 --netmask 255.255.255.0 --initstyle plain # other options would be to copy a existing vserver config to the new vserver and modify by hand using your fav text editor (vi, etc) sudo cp -rp /etc/vservers/vcrux01 /etc/vservers/vcrux02 # Here is a complete example: sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net --interface xxx.xxx.xxx.xxx --netdev eth0 --netmask 255.255.255.0 --initstyle plain sudo rm -rf /vservers/vcrux02 sudo cp -va /vservers/vcrux01 /vservers/vcrux02 # Here's another way sudo cp -rp /etc/vservers/vcrux01 /etc/vservers/vcrux02 # edit/confirm config files (sudo vi /etc/vservers/vcrux02/..) sudo cp -va /vservers/vcrux01 /vservers/vcrux02 Give the above examples a try. Replace the paths/dirs to match your situation. later sig -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Steven TruongSent: Wednesday, October 19, 2005 11:23 AMTo: Steven Truong; vserver@list.linux-vserver.orgSubject: Re: [Vserver] Re: I would like to know how to build a FC4 templateHi, Mr. Poetzl. Thanks for answering my question. Regarding the user-space command, ah, maybe I did not think it through when I wrote that. But my concern is that once you hard copy a guest server, then you still need to copy/create /etc/vservers/newtest, where newtest is the name of the newly copied server /vservers/newtest.Basically, by copying by hand, users have to take of these steps???Or should you suggest to use vserver-copy, then delete /vservers/newtest, then hard-copy. Because my guess is that vserver-copy would take care some of the works regarding configuration files. I have troubles carrying out some of the steps because I just don't know which of which is legacy or new. I have tried to absord as much infor as possible but I am sure I might forget some of the readings.Could you suggest or point to document(s) that describe(s) correct ways of doing these things?Thanks for sharing your knowledge.Steven. On 10/19/05, Herbert Poetzl [EMAIL PROTECTED] wrote: On Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote: Hi, all. Thanks for your answers. Thank *smagnuson and* Mr. Poetzl . As Mr. Poetzl suggested by those two commands, then we just build one guest server and then (hard) copy by: 'cp -va' the whole guest server to the new one. Is it possible that we bypass the user-space commands/utilities to clone a guest this way? If so, then wonderful.what do you mean by bypass user-space commands? Btw, is it the best possible and portable way?please elaborate!best,Herbert Thanks. On 10/18/05, Steven Truong [EMAIL PROTECTED] wrote: Hi, all. It is a good idea to build a guest server with basic all around apps and then clone this basic server to other guest of the same distribution, in my case FC4. Then for each clone, I would be able to add specific apps to it. For this matter, I could not find enough information to try. It seems like for Gentoo distribution http://www.gentoo.org/doc/en/vserver-howto.xmlshows that you can tar the whole guest server and then reuse this tarball. I also found vserver-copy and read the man page and tried this on my configured guest server. I got the following error trying to copy my lanweb FC4 guest server to a newtest guest server: vserver-copy -v lanweb/ newtest I: vserver-copy: called on abc-25 at Tue Oct 18 12:28:25 PDT 2005 newtest E: vserver-copy: Vserver file "/etc/vservers/lanweb/.conf" does not exist Coudl somebody tell me what .conf file and where/how to configure/find it? Is it the same file with /etc/vservers/lanweb/lanweb.conf file. Currently, I disabled/do not have this lanweb.conf file. In the man page, it also mention about /etc/vservers/vserver.conf and with my current settings, I don't have this file either. Could someone give me some information regarding all of these .conf files? Thank you in advance for all your helps. Steven. ___ 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] unmount nfs with vserver
Ok I have NFS working as following. Any comments/concerns doing it this way? #I mount this filesystem manually without a vserver restart from the root/host sudo vnamespace -e 100 mount -t nfs calnfs01.corporate.net:/nfs_unix_data /vservers/unixdev1/unix_data #I can unmount this filesystem manually without a vserver restart from the root/host sudo vnamespace -e 100 umount /vservers/unixdev1/unix_data #the outstanding issue is that you can only see the mount on the host/root (df -k). The disk values are incorrect. It seems to mimic the preceding df entry df -h FilesystemSize Used Avail Use% Mounted on /dev/ide/host1/bus0/target0/lun0/part9 58G 22G 34G 39% /vservers calnfs01.corporate.net:/nfs_unix_data 58G 22G 34G 39% /vservers/unixdev1/unix_data #the nfs disk is actually 100G in size with 64M used #it seems useable so far -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnuson, Sig Sent: Wednesday, October 19, 2005 12:05 PM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] unmount nfs with vserver Ok my plan is to be able to mount/umount nfs disk from inside the guest/vserver. I'm still getting a permission denied. #Now that I have the ccaps in place properly (i hope) cat /usr/local/etc/vservers/unixdev1/ccapabilities SECURE_MOUNT SECURE_REMOUNT BINARY_MOUNT #I have my nfs disk exported to both host and guest (/etc/exports) #On the guest I have portmap and rpc.statd running #This command takes a couple of minutes to return mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data mount: failed with nfs mount version 4, trying 3.. mount: permission denied #Our nfs server reports this Oct 19 11:44:31 calnfs01 rpc.mountd: authenticated mount request from unixdev1.corporate.net:965 for /nfs_unix_data (/nfs_unix_data) Oct 19 11:44:31 calnfs01 rpc.mountd: authenticated mount request from unixdev1.corporate.net:969 for /nfs_unix_data (/nfs_unix_data) #I am able to contact the NFS server from the vserver rpcinfo -p calnfs01 program vers proto port 102 tcp111 portmapper 102 udp111 portmapper 1000241 udp 32768 status 1000241 tcp 32768 status 132 udp 2049 nfs 133 udp 2049 nfs 132 tcp 2049 nfs 133 tcp 2049 nfs 1000211 udp 32771 nlockmgr 1000213 udp 32771 nlockmgr 1000214 udp 32771 nlockmgr 1000211 tcp 32769 nlockmgr 1000213 tcp 32769 nlockmgr 1000214 tcp 32769 nlockmgr 151 udp926 mountd 151 tcp929 mountd 152 udp926 mountd 152 tcp929 mountd 153 udp926 mountd 153 tcp929 mountd 3901131 tcp 7937 #Here is a strace of the mount strace mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data execve(/bin/mount, [mount, -v, -t, nfs, calnfs01.corporate.net:/nfs_u..., /unix_data], [/* 30 vars */]) = 0 uname({sys=Linux, node=unixdev1, ...}) = 0 brk(0) = 0x8057000 access(/etc/ld.so.preload, R_OK) = -1 ENOENT (No such file or directory) open(tls/i686/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) open(tls/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) open(i686/libblkid.so.1, O_RDONLY)= -1 ENOENT (No such file or directory) open(libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) open(/home/sig/lib/tls/i686/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sig/lib/tls/i686, 0xbf9db988) = -1 ENOENT (No such file or directory) open(/home/sig/lib/tls/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sig/lib/tls, 0xbf9db988) = -1 ENOENT (No such file or directory) open(/home/sig/lib/i686/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sig/lib/i686, 0xbf9db988) = -1 ENOENT (No such file or directory) open(/home/sig/lib/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sig/lib, 0xbf9db988) = -1 ENOENT (No such file or directory) open(/usr/lib/tls/i686/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/tls/i686, 0xbf9db988) = -1 ENOENT (No such file or directory) open(/usr/lib/tls/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/tls, 0xbf9db988) = -1 ENOENT (No such file or directory) open(/usr/lib/i686/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/i686, 0xbf9db988) = -1 ENOENT (No such file or directory) open(/usr/lib/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0 open(/lib/tls/i686/libblkid.so.1, O_RDONLY) = -1 ENOENT (No such file or
RE: [Vserver] unmount nfs with vserver
I have done the following but am getting a error sudo vi /usr/local/etc/vservers/caloratst01/bcapabilities VXC_SECURE_MOUNT VXC_SECURE_REMOUNT VXC_BINARY_MOUNT I also tried: SECURE_MOUNT SECURE_REMOUNT BINARY_MOUNT I am getting the following error on vserver startup sudo vserver caloratst01 start Unknown bcap 'VXC_SECURE_MOUNT' An error occured while executing the vserver startup sequence; when there are no other messages, it is very likely that the init-script (/sbin/init) failed. Common causes are: * /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build method knows how to deal with this, but on existing installations, appending 'true' to this file will help. Failed to start vserver 'caloratst01' Have I got the syntax of the file wrong? -Original Message- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Friday, October 14, 2005 11:18 AM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] unmount nfs with vserver On Fri, Oct 14, 2005 at 10:42:49AM -0600, [EMAIL PROTECTED] wrote: A while back I posted to the list about mounting nfs filesystem into a vserver. The only suggestion that I could get to work was adding the mount to fstab on host system. IE: cat /usr/local/etc/vservers/unixdev1/fstab none/proc procdefaults0 0 none/tmptmpfs size=64m,mode=1777 0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 # added Sept 14, 2005 - common unix NFS filesystem -sig calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0 0 The one issue I came across was that I could not find a way to umount the NFS filesystem ssh unixdev1 sudo umount /unix_data umount: /unix_data: must be superuser to umount umount: /unix_data: must be superuser to umount hmm, looks like you are missing one of the context capabilities for secure mount ... #define VXC_SECURE_MOUNT0x0001 #define VXC_SECURE_REMOUNT 0x0002 #define VXC_BINARY_MOUNT0x0004 I thought I would be fine with it that way but it turns out it is a bigger issue than I thought. Any suggestions on how to umount the NFS filesystem? unmounting on the host should work quite fine ... best, Herbert I have access to host and vserver. thanks sig sudo ./vserver-testme.sh Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl chcontext is working. chbind is working. Linux 2.6.12.4-vs2.0 i686/0.30.208/0.30.208 [Ea] (0) VCI: 0002:0001 273 0316 --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. sudo vserver-info Versions: Kernel: 2.6.12.4-vs2.0 VS-API: 0x00020001 util-vserver: 0.30.208; Aug 24 2005, 21:26:20 Features: CC: gcc, gcc (GCC) 3.4.3 (CRUX) CXX: g++, g++ (GCC) 3.4.3 (CRUX) CPPFLAGS: '' CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time' CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 - funit-at-a-time' build/host: i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: yes Build C++ programs: yes Build C99 programs: yes Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts ext2fs Source: e2fsprogs syscall(2) invocation: alternative vserver(2) syscall#: 273/glibc Paths: prefix: /usr/local sysconf-Directory: ${prefix}/etc cfg-Directory: ${prefix}/etc/vservers initrd-Directory: $(sysconfdir)/init.d pkgstate-Directory: ${prefix}/var/run/vservers Kernelheaders: /lib/modules/2.6.12.4-vs2.0/build/include vserver-Rootdir: /vservers Assumed 'SYSINFO' as no other option given; try '--help' for more information. ___ 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] I would like to know how to build a FC4 template
I get the same error. I just touch an empty file by that name and it works. you get an error at the end indicating a issue with the conf file but seeing as I don't use it I have not been concerned. I was under the impression that the .conf file in question is legacy. More experienced vserver folks should probably correct/confirm this. sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net --interfacexxx.xxx.xxx.xxx --netdev eth0 --netmask 255.255.255.0 --initstyle plainsudo touch /etc/vservers/vcrux01.confsudo vserver-copy vcrux01 vcrux02 later sig -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Steven TruongSent: Tuesday, October 18, 2005 1:38 PMTo: vserver@list.linux-vserver.orgSubject: [Vserver] I would like to know how to build a FC4 templateHi, all. It is a good idea to build a guest server with basic all around apps and then clone this basic server to other guest of the same distribution, in my case FC4. Then for each clone, I would be able to add specific apps to it.For this matter, I could not find enough information to try. It seems like for Gentoo distribution http://www.gentoo.org/doc/en/vserver-howto.xml shows that you can tar the whole guest server and then reuse this tarball.I also found vserver-copy and read the man page and tried this on my configured guest server. I got the following error trying to copy my lanweb FC4 guest server to a newtest guest server:vserver-copy -v lanweb/ newtestI: vserver-copy: called on abc-25 at Tue Oct 18 12:28:25 PDT 2005newtestE: vserver-copy: Vserver file "/etc/vservers/lanweb/.conf" does not existCoudl somebody tell me what .conf file and where/how to configure/find it? Is it the same file with /etc/vservers/lanweb/lanweb.conf file. Currently, I disabled/do not have this lanweb.conf file.In the man page, it also mention about /etc/vservers/vserver.conf and with my current settings, I don't have this file either.Could someone give me some information regarding all of these .conf files? Thank you in advance for all your helps.Steven. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] unmount nfs with vserver
I can mount it from the host using /usr/local/etc/vservers/unixdev1/fstab but have not figured out how to umount (if possible) I was able to use the bcapabilities numeric values with out getting errors on vserver startup. cat /usr/local/etc/vservers/unixdev1/bcapabilities 0x0001 0x0002 0x0004 even with this I am unable to unmount the nfs filesystem when mounted from the host into the vserver. when trying from inside the vserver I can not even mount the nfs filesystem sudo mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data mount: failed with nfs mount version 4, trying 3.. mount: permission denied the nfs server shows Oct 18 15:31:57 calnfs01 rpc.mountd: authenticated mount request from unixdev1.corporate.net:783 for /nfs_unix_data (/nfs_unix_data) Oct 18 15:31:57 calnfs01 rpc.mountd: authenticated mount request from unixdev1.corporate.net:787 for /nfs_unix_data (/nfs_unix_data) I have been working on this from several angles to no avail. Is anyone else mounting nfs into a vserver? How are you doing it? Are you able to umount it afterwards? thanks sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnuson, Sig Sent: Tuesday, October 18, 2005 11:50 AM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] unmount nfs with vserver I have done the following but am getting a error sudo vi /usr/local/etc/vservers/caloratst01/bcapabilities VXC_SECURE_MOUNT VXC_SECURE_REMOUNT VXC_BINARY_MOUNT I also tried: SECURE_MOUNT SECURE_REMOUNT BINARY_MOUNT I am getting the following error on vserver startup sudo vserver caloratst01 start Unknown bcap 'VXC_SECURE_MOUNT' An error occured while executing the vserver startup sequence; when there are no other messages, it is very likely that the init-script (/sbin/init) failed. Common causes are: * /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build method knows how to deal with this, but on existing installations, appending 'true' to this file will help. Failed to start vserver 'caloratst01' Have I got the syntax of the file wrong? -Original Message- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Friday, October 14, 2005 11:18 AM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] unmount nfs with vserver On Fri, Oct 14, 2005 at 10:42:49AM -0600, [EMAIL PROTECTED] wrote: A while back I posted to the list about mounting nfs filesystem into a vserver. The only suggestion that I could get to work was adding the mount to fstab on host system. IE: cat /usr/local/etc/vservers/unixdev1/fstab none/proc procdefaults0 0 none/tmptmpfs size=64m,mode=1777 0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 # added Sept 14, 2005 - common unix NFS filesystem -sig calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0 0 The one issue I came across was that I could not find a way to umount the NFS filesystem ssh unixdev1 sudo umount /unix_data umount: /unix_data: must be superuser to umount umount: /unix_data: must be superuser to umount hmm, looks like you are missing one of the context capabilities for secure mount ... #define VXC_SECURE_MOUNT0x0001 #define VXC_SECURE_REMOUNT 0x0002 #define VXC_BINARY_MOUNT0x0004 I thought I would be fine with it that way but it turns out it is a bigger issue than I thought. Any suggestions on how to umount the NFS filesystem? unmounting on the host should work quite fine ... best, Herbert I have access to host and vserver. thanks sig sudo ./vserver-testme.sh Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl chcontext is working. chbind is working. Linux 2.6.12.4-vs2.0 i686/0.30.208/0.30.208 [Ea] (0) VCI: 0002:0001 273 0316 --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. sudo vserver-info Versions: Kernel: 2.6.12.4-vs2.0 VS-API: 0x00020001 util-vserver: 0.30.208; Aug 24 2005, 21:26:20 Features: CC: gcc, gcc (GCC) 3.4.3 (CRUX) CXX: g++, g++ (GCC) 3.4.3 (CRUX) CPPFLAGS: '' CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time' CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 - funit-at-a-time' build/host: i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: yes Build C++ programs: yes Build C99 programs: yes Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts ext2fs Source: e2fsprogs syscall(2) invocation: alternative vserver(2) syscall#: 273/glibc Paths: prefix: /usr/local sysconf-Directory: ${prefix}/etc
RE: [Vserver] unmount nfs with vserver
unmounting on the host should work quite fine ... what would be the command(s) to unmount the vserver NFS mount through the host? The nfs mount is not visible on the host. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] mount a NFS filesystem into a vserver
Sam, That worked like a charm. I was thinking that is was going to be more complicated than that. For anyone interested here are my steps On NFS server (non vserver) --- added vserver host/root system ip address to nfs shares ie: sudo vi /etc/exports /nfs_unix_data vserverhost.corporate.net(rw,sync,insecure,no_root_squash) sudo exportfs sudo exportfs -r (to reread your config changes) sudo exportfs On vserver host/root system --- start portmap start rpc.statd sudo vi /usr/local/etc/vservers/unixdev1/fstab calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0 0 sudo vserver unixdev1 stop sudo vserver unixdev1 start sudo vserver unixdev1 enter df -h FilesystemSize Used Avail Use% Mounted on /dev/hdv1 58G 8.0G 47G 15% / none 64M 0 64M 0% /tmp calnfs01.corporate.net:/nfs_unix_data 100G 406M 100G 1% /unix_data I wasn't able to find any other process that worked. The above will work fine for what I need. On a minor note: Anyone know how to umount this now that it is mounted? I am ok with restarting the vserver if that is the only way. ssh unixdev1 sudo umount /unix_data umount: /unix_data: must be superuser to umount umount: /unix_data: must be superuser to umount thanks sig -Original Message- From: Sam Vilain [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 6:38 PM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] mount a NFS filesystem into a vserver Tue, 2005-09-13 at 09:49 -0600, [EMAIL PROTECTED] wrote: I am looking to mount a NFS filesystem into a vserver. I have searched the archives, the site, and the web but can not find a straight answer to this. What is the proper/preferred method of doing this? Does anyone have the steps? I would like to mount a nfs filesystem from a non vserver (nfs server) into a vserver (nfs client). You should be able to put the mount entry in /etc/vservers/XXX/fstab, and it will be mounted at the appropriate time on vserver startup. The alternative is to turn on secure mounts, whereby the vserver can do mount operations, with certain restrictions. I haven't needed to use this myself. Sam. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] mount a NFS filesystem into a vserver
Sam, That worked like a charm. I was thinking that is was going to be more complicated than that. For anyone interested here are my steps On NFS server (non vserver) --- added vserver host/root system ip address to nfs shares ie: sudo vi /etc/exports /nfs_unix_data vserverhost.corporate.net(rw,sync,insecure,no_root_squash) sudo exportfs sudo exportfs -r (to reread your config changes) sudo exportfs On vserver host/root system --- start portmap start rpc.statd sudo vi /usr/local/etc/vservers/unixdev1/fstab calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0 0 sudo vserver unixdev1 stop sudo vserver unixdev1 start sudo vserver unixdev1 enter df -h FilesystemSize Used Avail Use% Mounted on /dev/hdv1 58G 8.0G 47G 15% / none 64M 0 64M 0% /tmp calnfs01.corporate.net:/nfs_unix_data 100G 406M 100G 1% /unix_data I wasn't able to find any other process that worked. The above will work fine for what I need. On a minor note: Anyone know how to umount this now that it is mounted? I am ok with restarting the vserver if that is the only way. ssh unixdev1 sudo umount /unix_data umount: /unix_data: must be superuser to umount umount: /unix_data: must be superuser to umount thanks sig -Original Message- From: Sam Vilain [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 6:38 PM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] mount a NFS filesystem into a vserver Tue, 2005-09-13 at 09:49 -0600, [EMAIL PROTECTED] wrote: I am looking to mount a NFS filesystem into a vserver. I have searched the archives, the site, and the web but can not find a straight answer to this. What is the proper/preferred method of doing this? Does anyone have the steps? I would like to mount a nfs filesystem from a non vserver (nfs server) into a vserver (nfs client). You should be able to put the mount entry in /etc/vservers/XXX/fstab, and it will be mounted at the appropriate time on vserver startup. The alternative is to turn on secure mounts, whereby the vserver can do mount operations, with certain restrictions. I haven't needed to use this myself. Sam. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] mount a NFS filesystem into a vserver
I am looking to mount a NFS filesystem into a vserver. I have searched the archives, the site, and the web but can not find a straight answer to this. What is the proper/preferred method of doing this? Does anyone have the steps? I would like to mount a nfs filesystem from a non vserver (nfs server) into a vserver (nfs client). Thanks sig -- Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl chcontext is working. chbind is working. Linux 2.6.12.4-vs2.0 i686/0.30.208/0.30.208 [Ea] (0) VCI: 0002:0001 273 0316 --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. --- Versions: Kernel: 2.6.12.4-vs2.0 VS-API: 0x00020001 util-vserver: 0.30.208; Aug 24 2005, 21:26:20 Features: CC: gcc, gcc (GCC) 3.4.3 (CRUX) CXX: g++, g++ (GCC) 3.4.3 (CRUX) CPPFLAGS: '' CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time' CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time' build/host: i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: yes Build C++ programs: yes Build C99 programs: yes Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts ext2fs Source: e2fsprogs syscall(2) invocation: alternative vserver(2) syscall#: 273/glibc Paths: prefix: /usr/local sysconf-Directory: ${prefix}/etc cfg-Directory: ${prefix}/etc/vservers initrd-Directory: $(sysconfdir)/init.d pkgstate-Directory: ${prefix}/var/run/vservers Kernelheaders: /lib/modules/2.6.12.4-vs2.0/build/include vserver-Rootdir: /vservers Assumed 'SYSINFO' as no other option given; try '--help' for more information. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] mount a NFS filesystem into a vserver
-Original Message- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 10:10 AM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] mount a NFS filesystem into a vserver On Tue, Sep 13, 2005 at 09:49:42AM -0600, [EMAIL PROTECTED] wrote: I am looking to mount a NFS filesystem into a vserver. I have searched the archives, the site, and the web but can not find a straight answer to this. What is the proper/preferred method of doing this? Does anyone have the steps? depends on your setup/permissions ... if you have access to the host system, simply mount it there I have tried this, I can mount the nfs filesystem but it is not viewable inside the vserver. Something else I need to do? On the host system df -k Filesystem 1K-blocks Used Available Use% Mounted on ... ... calnfs01:/nfs_oracle_u99 524272000 158032896 366239104 31% /vservers/unixdev1/mnt ls -la /vservers/unixdev1/mnt total 460911 drwxrwxrwx 6 201 201 160 Sep 8 16:11 . drwxr-xr-x 18 root root 4096 Sep 7 08:55 .. drwxr-xr-x 9 ops 2001 384 Sep 13 09:33 bashful-restore -rw-r--r-- 1 root root 471506944 Aug 18 11:00 failedlogin drwxr-xr-x 25 201 201 984 Sep 9 16:38 oracle drwxr-xr-x 3 201 20172 Sep 8 16:11 oradata On the guest system (unixdev1) df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/hdv1 60199660 8360668 48731624 15% / none 65536 0 65536 0% /tmp ls -la /mnt total 8 drwxr-xr-x 2 root root 4096 Sep 7 00:00 . drwxr-xr-x 18 root root 4096 Sep 7 08:55 .. sig ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] unable to stop the vserver after upgrade
Herbert thanks for your help. Issue: Unable to stop vserver, everything else appears to work fine. Issue was resolved when dietlibc was installed and tools recompiled EG: Installed dietlibc cd /path/to/vserver/src/util-vserver-0.30.208 make uninstall make clean ./configure make make install Note: allowed ./configure to autodetect dietlibc from config.log ... configure:9473: checking whether to enable dietlibc configure:9533: result: yes (autodetected, 0.29) ... Thanks, sig -Original Message- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 23, 2005 4:40 PM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] unable to stop the vserver after upgrade On Tue, Aug 23, 2005 at 03:53:35PM -0600, [EMAIL PROTECTED] wrote: upgraded to new vserver but now am unable to stop the vserver. It just sits there. It starts fine and all else appears ok so far. Anyone have any idea as to what is going on this this? TIA sig Root server Distro Crux 2.1 Vserver distro Crux 2.1 Before upgrade all was working fine. Was running 2.6.11.5-vs1.9.5 with tools util-vserver-0.30.204. Booted into upgraded Kernel with vserver patch (patch-2.6.12.4-vs2.0.diff) and compiled new tools with patch (patch-0.30.208-fix02.diff). Also tried without tools patch. sudo ./testme.sh Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl chcontext is working. chbind is working. Linux 2.6.12.4-vs2.0 i686/0.30.208/0.30.208 [Ea] (0) VCI: 0002:0001 273 0316 --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. sudo vserver-info Versions: Kernel: 2.6.12.4-vs2.0 VS-API: 0x00020001 util-vserver: 0.30.208; Aug 23 2005, 09:33:03 Features: CC: gcc, gcc (GCC) 3.4.3 (CRUX) CXX: g++, g++ (GCC) 3.4.3 (CRUX) CPPFLAGS: '' CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time' CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time' build/host: i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: no (you have been warned) ~~ Build C++ programs: yes Build C99 programs: yes Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts ext2fs Source: e2fsprogs syscall(2) invocation: fast vserver(2) syscall#: 273/glibc Paths: prefix: /usr/local sysconf-Directory: ${prefix}/etc cfg-Directory: ${prefix}/etc/vservers initrd-Directory: $(sysconfdir)/init.d pkgstate-Directory: ${prefix}/var/run/vservers Kernelheaders: /lib/modules/2.6.12.4-vs2.0/build/include vserver-Rootdir: /vservers Assumed 'SYSINFO' as no other option given; try '--help' for more information. I have attached the strace output from the stop command. It never finishes. sudo strace -o /tmp/vserver.log vserver vcruxtemplate01 stop unusual ... you might consider visiting the irc channel #vserver @ irc.oftc.net best, Herbert http://magnuson.ca/vserver.log.txt ___ 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] Official copy method?
Herbert, You are correct. Sorry for misquoting you. Now I'm back to my usual state: Dazed and confused Here are my vservers ls -l /vservers/ total 20 drwxr-xr-x 17 root root 4096 Apr 8 11:36 vcrux01 drwxr-xr-x 17 root root 4096 Apr 8 11:36 vcrux02 drwxr-xr-x 17 root root 4096 Apr 22 08:02 vcrux03 Which of the following is correct syntax for the above example? A,B,C,D, or E :) A) setattr --barrier /vservers B) setattr --barrier /vservers/ C) setattr --barrier /vservers/vcrux02 D) setattr --barrier /vservers/vcrux02/ E) setattr --barrier /vservers/vcrux02/.. A and B need be run only once Repeat C,D,E for each vserver I have been using C. Is this an issue? So far things have been running fine. sig -Original Message- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 10:45 AM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] Official copy method? On Thu, May 12, 2005 at 08:28:36AM -0600, [EMAIL PROTECTED] wrote: I was originally doing it that way but Herbert recommended this way. I have not experienced any issues so far. what I recommended was to use: setattr --barrier /vservers/vcrux02/.. instead of setattr --barrier /vservers (spot the dots ;) and it is because /path/to/.. is not necessarily the same as /path HTH, Herbert sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Björn Steinbrink Sent: Thursday, May 12, 2005 8:21 AM To: vserver@list.linux-vserver.org Subject: Re: [Vserver] Official copy method? Hello, On 2005.05.12 07:48:27 -0600, [EMAIL PROTECTED] wrote: * Set up vserver barrier sudo showattr -d /vservers/vcrux02 ---bui- /vservers/vcrux02 sudo setattr --barrier /vservers/vcrux02 sudo showattr -d /vservers/vcrux02 ---Bui- /vservers/vcrux02 the barrier flag is supposed to be set on /vservers (i.e. the directory directly above the vserver's root directory). Not sure if setting the flag on the vserver's root itself may cause problems with 2.6 kernels. HTH Björn ___ 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] mailing list
http://list.linux-vserver.org/mailman/listinfo/vserver -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Timo Müller Sent: Monday, May 09, 2005 12:08 AM To: vserver@list.linux-vserver.org Subject: [Vserver] mailing list Hey, how can I deleted from the mailings list ?? Thanx ___ 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] mailing list
scroll down to the bottom of the page. In the bottom field enter your email address and click the button labeled Unsubscribe or edit options A new page will appear. click the Unsubscribe button -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Timo Müller Sent: Monday, May 09, 2005 7:51 AM To: vserver@list.linux-vserver.org Subject: Re: [Vserver] mailing list And then ???! [EMAIL PROTECTED] wrote: http://list.linux-vserver.org/mailman/listinfo/vserver -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Timo Müller Sent: Monday, May 09, 2005 12:08 AM To: vserver@list.linux-vserver.org Subject: [Vserver] mailing list Hey, how can I deleted from the mailings list ?? Thanx ___ 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 -- Mit freundlichen Grüßen Timo Müller - Timo Müller Ruhr-Universität Bochum Rechenzentrum Universitätsstraße 150 NA 04/255 D-44780 Bochum Tel: +49 234 32-27674 Email: [EMAIL PROTECTED] - ___ 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] size of /tmp
Here's one way: On host server vi /usr/local/etc/vservers/VSERVER/fstab none/proc procdefaults0 0 none/tmptmpfs size=16m,mode=1777 0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 Change 16m to something else IE: 64m Then start/restart vserver -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sune Vuorela Sent: Tuesday, April 26, 2005 7:21 AM To: vserver@list.linux-vserver.org Subject: [Vserver] size of /tmp Hi! How do I set the size of /tmp in a vserver? In all my vservers, /tmp is 16 mb. # df -h FilesystemSize Used Avail Use% Mounted on /dev/hdv1 14G 3,0G 11G 23% / none 16M 0 16M 0% /tmp # -- Sune ___ 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] Re: size of /tmp
I don't think you could have read this anywhere (actually perhaps the maillist archive but I don't think it's searchable). I only know this because I had a related issue that Herbert helped me with. Does your fstab file look like the one I posted? sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sune Vuorela Sent: Tuesday, April 26, 2005 11:51 AM To: vserver@list.linux-vserver.org Subject: [Vserver] Re: size of /tmp On 2005-04-26, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Here's one way: On host server vi /usr/local/etc/vservers/VSERVER/fstab none/proc procdefaults0 0 none/tmptmpfs size=16m,mode=1777 0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 Change 16m to something else IE: 64m Then start/restart vserver Thanks. (Where could I have read this myself?) -- Sune ___ 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] a couple of beginner questions
Yes that works. I no longer get the warning. thanks sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of D. B. Sent: Wednesday, April 06, 2005 11:38 AM To: vserver@list.linux-vserver.org Subject: Re: [Vserver] a couple of beginner questions Hello Sig, [EMAIL PROTECTED] schrieb: 2) When I stop a vserver I get the following but it does infact stop. Any ideas as to how to correct this? sudo vserver-stat CTX PROCVSZRSS userTIME sysTIMEUPTIME NAME 0 32 33.5M 3K 0m35s20 0m30s27 16h26m54 root server 491874 7.4M 7670m00s14 0m00s60 1m06s54 crux03 sidenote: please don't use dynamic contexts for vserver guests, make them fixed ... sudo vserver crux03 stop vkill: vc_ctx_kill(): No such process in the vserver.stop script i have changed the line : $_VKILL -s INT -- $initpid || fail=1 to $_VKILL -c $S_CONTEXT -s INT -- $initpid || fail=1 Vserver '/usr/local/etc/vservers/crux03' still running unexpectedly; please investigate it manually... I think there is a problem with init based vservers. Maybe not in general but if the host is SuSE based. Vkill signals init to shutdown and immediately after that, vserver.stop tries to stop the vserver but the rc script is still running. I'm wrong ? Dieter this might be related to an issue we are investigating right now, is your guest init based? Thanks for the contexts tip. Not sure if I understand your question. Yes it uses init. Inside the vserver: ps -ef UIDPID PPID C STIME TTY TIME CMD root 1 0 0 08:35 ?00:00:00 init [2] root 24496 1 0 08:35 ?00:00:00 /usr/sbin/syslogd root 24509 1 0 08:35 ?00:00:00 /usr/sbin/crond root 24514 1 0 08:35 ?00:00:00 /usr/sbin/sshd ls -la /etc/inittab -rw-r--r-- 1 root root 604 Apr 4 12:09 /etc/inittab If you need anything else just let me know thanks sig ___ 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] a couple of beginner questions
Dieter, Yes that works perfectly. I spoke with Herbert last night and he came up with the same conclusion. thanks for your reply sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of D. B. Sent: Thursday, April 07, 2005 10:46 AM To: vserver@list.linux-vserver.org Subject: Re: [Vserver] a couple of beginner questions [EMAIL PROTECTED] schrieb: Herbert, I'm sorry, perhaps I've gotten off track. This goes back to the df command not working in the vserver. :df df: cannot read table of mounted filesystems Hello sig, in your vserver do 1) create the following mtab : --cut-- /dev/hdv1 / ufs defaults 0 0 none /proc proc defaults 0 0 none /tmp tmpfs size=16m,mode=1777 0 0 none /dev/pts devpts gid=5,mode=620 0 0 ---cut-- 2) delete the line /bin/rm -f /etc/mtab* from the etc/rc script Dieter ___ 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] Request for comments: Crux vserver install notes
I have vserver up and running on Crux linux. Below are my install notes. Any errors I have will (hopefully) get smoothed over on my next installation. Feel free to make comments / use this document if you desire. thanks sig How to install and use vserver with Crux 2.0 http://crux.nu/ http://linux-vserver.org/ Notes: Expect to find errors I may be doing things completely backwards but it seems to work vservers are going to be installed onto seperate partition /vservers I use sudo for most root commands. If you prefer to use root then ignore sudo at front of commands ## # #Preparing your host server with vserver # ## #Get vserver code cd ~/src/vserver wget http://www.13thfloor.at/vserver/d_rel26/v1.9.5/util-vserver-0.30.204.tar.gz gzip -d util-vserver-0.30.204.tar.gz tar -xf util-vserver-0.30.204.tar wget http://www.13thfloor.at/vserver/d_rel26/v1.9.5/linux-vserver-1.9.5.tar.gz gzip -d linux-vserver-1.9.5.tar.gz tar -xf linux-vserver-1.9.5.tar # Get vanilla linux kernel and compile in vserver patch aquired from above cd /usr/src sudo wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.5.tar.bz2 sudo bzip2 -d linux-2.6.11.5.tar.bz2 tar -xf linux-2.6.11.5.tar cd linux-2.6.11.5 sudo cp ../linux-2.6.6/.config . sudo cp ~/src/vserver/patch-2.6.11.5-vs1.9.5.diff sudo patch -p1 -s ../patch-2.6.11.5-vs1.9.5.diff sudo make menuconfig sudo make all sudo make modules_install #Install newly patched kernel cd /usr/src sudo rm linux sudo ln -s linux-2.6.11.5 linux sudo cp /usr/src/linux-2.6.11.5/arch/i386/boot/bzImage /boot/vmlinuz-2.6.11.5-1 sudo cp System.map /boot/System.map-2.6.11.5-1 cd /boot sudo ls -s System.map-2.6.6-2 System.map sudo vi /etc/lilo.conf ... ... image=/boot/vmlinuz-2.6.11.5-1 label=KERNEL-4 root=/dev/discs/disc0/part2 read-only sudo lilo -q sudo lilo sudo lilo -q #Install additional/required software sudo prt-get install iproute2 sudo prt-get install iptables sudo prt-get install rsync #Get vconfig binary cd ~/src/ wget http://www.candelatech.com/~greear/vconfig sudo cp vconfig /usr/local/sbin #Complile and install vserver utilities cd ~/src/vserver/util-vserver-0.30.204 ./configure --prefix=/usr/local make sudo make install #Create vserver guest OS directory sudo mkdir -m 000 /vservers sudo mkdir /vservers/vcrux01 #If using SSH (or any other port listening application) change it to listen to the specific interface (ie not 0.0.0.0) sudo vi /etc/ssh/sshd_config ... ... ListenAddress 172.27.12.19 ... ... #restart ssh and ensure it still works sudo /etc/rc.d/sshd restart ## # #Building your first vserver # ## sudo vserver vcrux01 build -m skeleton -n vcrux01 --context 100 --hostname vcrux01.domain.net --interface 172.27.12.24 --netdev eth0 --netmask 255.255.248.0 --initstyle plain #Set up vserver barrier sudo showattr -d /vservers ---bui- /vservers sudo setattr --barrier /vservers sudo showattr -d /vservers ---Bui- /vservers #I don't think this is required anymore #sudo chmod /vservers #set default tty (not sure if this works) sudo mkdir -p /usr/local/etc/vservers/.defaults/apps/init cd /usr/local/etc/vservers/.defaults/apps/init sudo ln -s /dev/tty6 tty #Check the folowing files to ensure all it configured fine. If not edit files. cat /usr/local/etc/vservers/vcrux01/apps/init/style plain cat /usr/local/etc/vservers/vcrux01/interfaces/dev eth0 cat /usr/local/etc/vservers/vcrux01/interfaces/mask 255.255.248.0 cat /usr/local/etc/vservers/vcrux01/interfaces/0/ip 172.27.12.24 cat /usr/local/etc/vservers/vcrux01/interfaces/0/name c01 cat /usr/local/etc/vservers/vcrux01/uts/nodename vcrux01.domain.net cat /usr/local/etc/vservers/vcrux01/name vcrux01 cat /usr/local/etc/vservers/vcrux01/fstab none/proc procdefaults0 0 none/tmptmpfs size=16m,mode=1777 0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 cat /usr/local/etc/vservers/crux01/context 100 ## # #Install Crux to /vserver/vcrux01 # ## #boot from crux install cd #mount /, /usr, and /vservers to /mnt, /mnt/usr, and /mnt/vservers #chroot to /mnt #set root password #run crux setup #use /mnt/vservers/vcrux01 as install point #do not compile kernel, not used #do not run lilo #do not run lilo #do not run lilo #see crux handbook for details: http://crux.nu/doc/handbook.html #boot OS back up #configure guest OS vcrux01 cd /mnt/vservers/vcrux01 sudo vi ./etc/rc.conf TIMEZONE=Canada/Mountain HOSTNAME=vcrux01 SERVICES=(crond sshd) sudo rm -f ./etc/mtab sudo vi ./etc/mtab /dev/hdv1 / ufs rw 0 0 sudo chmod 644 ./etc/mtab sudo vi ./etc/rc #At the very least comment out: #/bin/rm -f /etc/mtab* #null this file out cat /dev/null ./etc/fstab sudo vi ./etc/hosts.allow sshd:all cat /dev/null ./etc/rc.d/net sudo vi ./etc/resolve.conf domain domain.net search
RE: [Vserver] a couple of beginner questions
2) When I stop a vserver I get the following but it does infact stop. Any ideas as to how to correct this? sudo vserver-stat CTX PROCVSZRSS userTIME sysTIMEUPTIME NAME 0 32 33.5M 3K 0m35s20 0m30s27 16h26m54 root server 491874 7.4M 7670m00s14 0m00s60 1m06s54 crux03 sidenote: please don't use dynamic contexts for vserver guests, make them fixed ... sudo vserver crux03 stop vkill: vc_ctx_kill(): No such process Vserver '/usr/local/etc/vservers/crux03' still running unexpectedly; please investigate it manually... this might be related to an issue we are investigating right now, is your guest init based? Thanks for the contexts tip. Not sure if I understand your question. Yes it uses init. Inside the vserver: ps -ef UIDPID PPID C STIME TTY TIME CMD root 1 0 0 08:35 ?00:00:00 init [2] root 24496 1 0 08:35 ?00:00:00 /usr/sbin/syslogd root 24509 1 0 08:35 ?00:00:00 /usr/sbin/crond root 24514 1 0 08:35 ?00:00:00 /usr/sbin/sshd ls -la /etc/inittab -rw-r--r-- 1 root root 604 Apr 4 12:09 /etc/inittab If you need anything else just let me know thanks sig ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] a couple of beginner questions
If I add the following to the vserver fstab file and restart vserver. cat /etc/fstab /dev/root / ext3 rw 0 0 Then df command works for the vserver partition df -h FilesystemSize Used Avail Use% Mounted on /dev/root 22G 2.5G 18G 13% / I have not gotten any other entries to work But doing the above breaks the df command on the host server. df -h FilesystemSize Used Avail Use% Mounted on /dev/hdv1 198M 23M 166M 12% / none 2.0G 33M 1.9G 2% /tmp any suggestions on how this should be done? thanks sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnuson, Sig Sent: Wednesday, April 06, 2005 8:31 AM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] a couple of beginner questions Sorry, looking at my previous post I realized many may not look further down. Please scroll down. 1) When inside a guest OS the df command does not work. Is this normal? Here is my output: [EMAIL PROTECTED] / :df df: cannot read table of mounted filesystems [EMAIL PROTECTED] / :df -k df: cannot read table of mounted filesystems no, that's not normal, but I suspect you are missing some file (maybe /etc/mtab or so) which is used by the df tool (using strace -fF on the df might shed some light on that) Other commands like top, ps, du all work fine. When on the host server cat /usr/local/etc/vservers/crux03/fstab none/proc procdefaults0 0 none/tmptmpfs size=16m,mode=1777 0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 When on the vserver ls -la /etc/mtab -rw-r--r-- 1 root root 0 Apr 6 08:13 /etc/mtab ls -la /etc/fstab -rw-r--r-- 1 root root 0 Apr 6 08:12 /etc/fstab should I be populating my fstab with something? Everytime I put something in it the versver won't start. Anyone have a example to share? :strace -fF df execve(/bin/df, [df], [/* 25 vars */]) = 0 uname({sys=Linux, node=vcrux03, ...}) = 0 brk(0) = 0x8051000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fea000 open(/etc/ld.so.preload, O_RDONLY)= -1 ENOENT (No such file or directory) open(tls/i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) open(tls/i686/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(tls/sse2/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(tls/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) open(i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) open(i686/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(sse2/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) ... ... open(/usr/lib/i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/i686/sse2, 0xb348) = -1 ENOENT (No such file or directory) open(/usr/lib/i686/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/i686, 0xb348) = -1 ENOENT (No such file or directory) open(/usr/lib/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/sse2, 0xb348) = -1 ENOENT (No such file or directory) open(/usr/lib/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) stat64(/usr/lib, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0 open(/lib/i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/lib/i686/sse2, 0xb348)= -1 ENOENT (No such file or directory) open(/lib/i686/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/lib/i686, 0xb348) = -1 ENOENT (No such file or directory) open(/lib/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/lib/sse2, 0xb348) = -1 ENOENT (No such file or directory) open(/lib/libc.so.6, O_RDONLY)= 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340T\1..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1150376, ...}) = 0 mmap2(NULL, 1129964, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ed6000 mmap2(0xb7fdf000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x109) = 0xb7fdf000 mmap2(0xb7fe8000, 7660, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fe8000 close(3)= 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ed5000 set_thread_area({entry_number:-1 - 6, base_addr:0xb7ed5280, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 brk(0) = 0x8051000 brk(0x8072000) = 0x8072000 brk(0) = 0x8072000 open(/etc/mtab, O_RDONLY) = 3
RE: [Vserver] a couple of beginner questions
Herbert, I'm sorry, perhaps I've gotten off track. This goes back to the df command not working in the vserver. :df df: cannot read table of mounted filesystems you mentioned the following to me and I started chasing that rabbit. no, that's not normal, but I suspect you are missing some file (maybe /etc/mtab or so) which is used by the df tool (using strace -fF on the df might shed some light on that) I was thinking that I needed an entry in /etc/fstab on the vserver to get df to work. My strace is in a previous posting. thanks sig -Original Message- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 2:51 PM To: Magnuson, Sig Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] a couple of beginner questions On Wed, Apr 06, 2005 at 12:58:09PM -0600, [EMAIL PROTECTED] wrote: If I add the following to the vserver fstab file and restart vserver. cat /etc/fstab /dev/root / ext3 rw 0 0 Then df command works for the vserver partition df -h FilesystemSize Used Avail Use% Mounted on /dev/root 22G 2.5G 18G 13% / I have not gotten any other entries to work well, what _would_ you like to add there? I'm still not able to see what you try to accomplish ... please either try to provide some more details, or pay a visit at the irc channel #vserver @ irc.oftc.net TIA, Herbert But doing the above breaks the df command on the host server. df -h FilesystemSize Used Avail Use% Mounted on /dev/hdv1 198M 23M 166M 12% / none 2.0G 33M 1.9G 2% /tmp any suggestions on how this should be done? thanks sig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnuson, Sig Sent: Wednesday, April 06, 2005 8:31 AM To: vserver@list.linux-vserver.org Subject: RE: [Vserver] a couple of beginner questions Sorry, looking at my previous post I realized many may not look further down. Please scroll down. 1) When inside a guest OS the df command does not work. Is this normal? Here is my output: [EMAIL PROTECTED] / :df df: cannot read table of mounted filesystems [EMAIL PROTECTED] / :df -k df: cannot read table of mounted filesystems no, that's not normal, but I suspect you are missing some file (maybe /etc/mtab or so) which is used by the df tool (using strace -fF on the df might shed some light on that) Other commands like top, ps, du all work fine. When on the host server cat /usr/local/etc/vservers/crux03/fstab none/proc procdefaults0 0 none/tmptmpfs size=16m,mode=1777 0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 When on the vserver ls -la /etc/mtab -rw-r--r-- 1 root root 0 Apr 6 08:13 /etc/mtab ls -la /etc/fstab -rw-r--r-- 1 root root 0 Apr 6 08:12 /etc/fstab should I be populating my fstab with something? Everytime I put something in it the versver won't start. Anyone have a example to share? :strace -fF df execve(/bin/df, [df], [/* 25 vars */]) = 0 uname({sys=Linux, node=vcrux03, ...}) = 0 brk(0) = 0x8051000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fea000 open(/etc/ld.so.preload, O_RDONLY)= -1 ENOENT (No such file or directory) open(tls/i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) open(tls/i686/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(tls/sse2/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(tls/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) open(i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) open(i686/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(sse2/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) open(libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) ... ... open(/usr/lib/i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/i686/sse2, 0xb348) = -1 ENOENT (No such file or directory) open(/usr/lib/i686/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/i686, 0xb348) = -1 ENOENT (No such file or directory) open(/usr/lib/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/usr/lib/sse2, 0xb348) = -1 ENOENT (No such file or directory) open(/usr/lib/libc.so.6, O_RDONLY)= -1 ENOENT (No such file or directory) stat64(/usr/lib, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0 open(/lib/i686/sse2/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/lib/i686/sse2, 0xb348)= -1 ENOENT (No such file or directory) open(/lib/i686/libc.so.6, O_RDONLY) = -1 ENOENT (No such file or directory)
[Vserver] a couple of beginner questions
I'm using Crux (http://crux.nu/) as my root OS and have set up a couple of Crux guest OS's. Everything seems to run fine. I have the following questions I hope someone can help me with. 1) When inside a guest OS the df command does not work. Is this normal? Here is my output: [EMAIL PROTECTED] / :df df: cannot read table of mounted filesystems [EMAIL PROTECTED] / :df -k df: cannot read table of mounted filesystems Other commands like top, ps, du all work fine. 2) When I stop a vserver I get the following but it does infact stop. Any ideas as to how to correct this? sudo vserver-stat CTX PROCVSZRSS userTIME sysTIMEUPTIME NAME 0 32 33.5M 3K 0m35s20 0m30s27 16h26m54 root server 491874 7.4M 7670m00s14 0m00s60 1m06s54 crux03 sudo vserver crux03 stop vkill: vc_ctx_kill(): No such process Vserver '/usr/local/etc/vservers/crux03' still running unexpectedly; please investigate it manually... sudo vserver-stat CTX PROCVSZRSS userTIME sysTIMEUPTIME NAME 0 32 33.5M 3K 0m35s48 0m30s48 16h28m07 root server A very cool project. Thanks Sig sudo vserver-info Versions: Kernel: 2.6.11.5-vs1.9.5 VS-API: 0x00010025 util-vserver: 0.30.204; Mar 31 2005, 13:45:28 Features: CC: gcc, gcc (GCC) 3.3.4 (CRUX) CXX: g++, g++ (GCC) 3.3.4 (CRUX) CPPFLAGS: '' CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W' CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0' build/host: i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: no (you have been warned) Build C++ programs: yes Build C99 programs: yes Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts ext2fs Source: e2fsprogs syscall(2) invocation: fast vserver(2) syscall#: 273/glibc Paths: prefix: /usr/local sysconf-Directory: ${prefix}/etc cfg-Directory: ${prefix}/etc/vservers initrd-Directory: $(sysconfdir)/init.d pkgstate-Directory: ${prefix}/var/run/vservers Kernelheaders: /lib/modules/2.6.11.5-vs1.9.5/build/include vserver-Rootdir: /vservers Assumed 'SYSINFO' as no other option given; try '--help' for more information. Here is a debug output from my: sudo vserver --debug crux03 stop command sudo vserver --debug crux03 stop + shift + true + shift + break + OPTION_ALL=($OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY) + SELF=($0 [EMAIL PROTECTED]) + vserver=crux03 + cmd=stop + test stop '!=' build + allow_legacy= + VSERVER_DIR=/usr/local/etc/vservers/crux03 + allow_legacy=1 + test -n 1 + do_legacy= + test '!' -e /usr/local/etc/vservers/crux03/legacy + test -d /usr/local/etc/vservers/crux03 -o '!' -e /usr/local/etc/vservers/crux03.conf + test -z '' + test -d /usr/local/etc/vservers/crux03 + test -e /usr/local/etc/vservers/crux03/name + read VSERVER_NAME + test stop '!=' start -o -n '' + . /usr/local/lib/util-vserver/vserver.functions ++ declare -a 'NICE_CMD=()' ++ declare -a 'CHBIND_OPTS=()' ++ declare -a 'CAP_OPTS=()' ++ declare -a 'CHCONTEXT_INIT_OPTS=()' ++ declare -a 'CHCONTEXT_FLAG_OPTS=()' ++ declare -a 'CHCONTEXT_OPTS=()' ++ declare -a 'CAPCHROOT_OPTS=()' ++ declare -a 'INTERFACES=()' ++ declare -a 'INITCMD_START=()' ++ declare -a 'INITCMD_START_SYNC=()' ++ declare -a 'INITCMD_STOP=()' ++ declare -a 'INITCMD_STOP_SYNC=()' ++ declare -a 'INITCMD_PREPARE=()' ++ declare -a 'INITKILL_SEQ=()' ++ declare -a 'ENTER_SHELL=()' ++ declare -a 'OPTS_VCONTEXT_CREATE=()' ++ declare -a 'OPTS_VCONTEXT_MIGRATE=()' ++ declare -a 'OPTS_VATTRIBUTE=(--flag fakeinit)' ++ declare -a 'OPTS_VSCHED=()' ++ declare -a 'STOPCMD_PREPARE=()' ++ declare -a 'VSERVER_EXTRA_CMDS=()' ++ VSHELPER_SYNC_TIMEOUT=30 ++ USE_VNAMESPACE= ++ INTERFACE_CMDS_IDX=0 ++ RUNLEVEL_START= ++ RUNLEVEL_STOP= ++ _HAVE_INTERFACE_OPTIONS= ++ _HAVE_CHBIND_OPTIONS= ++ _NEED_VSHELPER_SYNC= ++ _IS_FAKEINIT= ++ INITSTYLE=sysv ++ S_CONTEXT= ++ SILENT_OPT= ++ : crux03 ++ test -e /usr/local/etc/vservers/crux03/noisy -o -n '' ++ SILENT_OPT=--silent + shift 2 + . /usr/local/lib/util-vserver/vserver.stop +++ /usr/local/sbin/vserver-info /usr/local/etc/vservers/crux03 CANONIFY ++ lock /var/lock/vserver.usrlocaletcvserverscrux03.startup +++ /usr/bin/mktemp /tmp/vserver-lock.XX ++ local tmp=/tmp/vserver-lock.RJ7475 ++ /bin/rm -f /tmp/vserver-lock.RJ7475 ++ /usr/bin/mkfifo -m600 /tmp/vserver-lock.RJ7475 ++ /usr/local/lib/util-vserver/lockfile /var/lock/vserver.usrlocaletcvserverscrux03.startup /tmp/vserver-lock.RJ7475 ++ /usr/bin/grep -q true /tmp/vserver-lock.RJ7475 ++ _VS_LOCKS=7478 ++ isVserverRunning /usr/local/etc/vservers/crux03 S_CONTEXT ++ local _ivr_ctx _ivr_procnum ++ getVserverStatus /usr/local/etc/vservers/crux03 _ivr_ctx _ivr_procnum 1 ++ test -r /usr/local/etc/vservers/crux03/run ++ local _gvs_ctx ++ read