Re: [Vserver] vserver@crux

From: Falk Hamann <Falk.Hamann_at_dbaudio.com>
Date: Wed 19 Apr 2006 - 10:50:09 BST
Message-ID: <20060419115009.1697e60b@butler.dbaudio.com>

On Thu, 13 Apr 2006 08:55:18 -0600
<smagnuson@forzani.com> 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 03000016 (TbLgnP)
(root@butler)
(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.
> Run and paste output back to list 
> ./vserver-info
root@butler ~# 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) 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
        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.
root@butler ~# vserver --debug vcrux01 start
+ shift
+ true
+ case "$1" in
+ shift
+ break
+ OPTION_ALL=($OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY)
+ SELF=("$0" "${OPTION_ALL[@]}")
+ vserver=vcrux01
+ cmd=start
+ test start '!=' build
+ allow_legacy=
+ case "$vserver" in
+ VSERVER_DIR=/etc/vservers/vcrux01
+ allow_legacy=1
+ test -n 1
+ do_legacy=
+ test '!' -e /etc/vservers/vcrux01/legacy
+ test -d /etc/vservers/vcrux01 -o '!' -e /etc/vservers/vcrux01.conf
+ test -z ''
+ test -d /etc/vservers/vcrux01
+ test -e /etc/vservers/vcrux01/name
+ read VSERVER_NAME
+ test start '!=' start -o -n ''
+ isAvoidNamespace /etc/vservers/vcrux01
+ local cfgdir
+ /usr/sbin/vserver-info - FEATURE namespace
++ /usr/sbin/vserver-info /etc/vservers/vcrux01 CFGDIR
+ cfgdir=/etc/vservers/vcrux01
+ test '!' -e /etc/vservers/vcrux01/namespace
+ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/vcrux01/nonamespace
+ exec /usr/sbin/vnamespace --new -- /usr/sbin/vserver ----nonamespace --debug vcrux01 start 2
+ shift
+ true
+ case "$1" in
+ shift
+ break
+ OPTION_ALL=($OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY)
+ SELF=("$0" "${OPTION_ALL[@]}")
+ vserver=vcrux01
+ cmd=start
+ test start '!=' build
+ allow_legacy=
+ case "$vserver" in
+ VSERVER_DIR=/etc/vservers/vcrux01
+ allow_legacy=1
+ test -n 1
+ do_legacy=
+ test '!' -e /etc/vservers/vcrux01/legacy
+ test -d /etc/vservers/vcrux01 -o '!' -e /etc/vservers/vcrux01.conf
+ test -z ''
+ test -d /etc/vservers/vcrux01
+ test -e /etc/vservers/vcrux01/name
+ read VSERVER_NAME
+ test start '!=' start -o -n ----nonamespace
+ . /usr/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_RESCUE=(/bin/sleep 900)'
++ 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_VCONTEXT_ENTER=()'
++ declare -a 'OPTS_VATTRIBUTE=(--flag fakeinit)'
++ declare -a 'OPTS_VSCHED=()'
++ declare -a 'STOPCMD_PREPARE=()'
++ declare -a 'VSERVER_EXTRA_CMDS=()'
++ INIT_RESCUE=
++ 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=
++ : vcrux01
++ test -e /etc/vservers/vcrux01/noisy -o -n ''
++ SILENT_OPT=--silent
+ case "$2" in
+ shift 2
+ . /usr/lib/util-vserver/vserver.start
+++ /usr/sbin/vserver-info /etc/vservers/vcrux01 CANONIFY
++ lock /var/lock/vserver.etcvserversvcrux01.startup
+++ /usr/bin/mktemp /tmp/vserver-lock.XXXXXX
++ local tmp=/tmp/vserver-lock.SZ2033
++ /bin/rm -f /tmp/vserver-lock.SZ2033
++ /usr/bin/mkfifo -m600 /tmp/vserver-lock.SZ2033
++ /usr/lib/util-vserver/lockfile /var/lock/vserver.etcvserversvcrux01.startup /tmp/vserver-lock.SZ2033
++ /usr/bin/grep -q true /tmp/vserver-lock.SZ2033
++ _VS_LOCKS='2036 '
++ isVserverRunning /etc/vservers/vcrux01
++ local _ivr_ctx _ivr_procnum
++ getVserverStatus /etc/vservers/vcrux01 _ivr_ctx _ivr_procnum 1
++ test -r /etc/vservers/vcrux01/run
++ return 1
++ return 1
++ is_configured=
++ is_executed=
++ is_started=
++ is_mounted=
++ is_vshelper_init=
++ have_interfaces=
++ startsync_pipe=
++ have_initcmd=
++ test 1 -gt 0
++ case "$1" in
++ break
++ test xsysv = xrescue -a -z '' -a 1 -gt 0
++ set -e
++ trap cleanup EXIT
++ sanityCheck /etc/vservers/vcrux01
++ declare -r cfgdir=/etc/vservers/vcrux01
++ test -e /etc/vservers/vcrux01/fstab.local
++ test -e /etc/vservers/vcrux01/hostname -a '!' -L /etc/vservers/vcrux01/hostname
++ test -e /etc/vservers/vcrux01/domainname -a '!' -L /etc/vservers/vcrux01/domainname
++ local i
++ for i in '"$cfgdir"/interfaces/*/only_ip'
++ test -e '/etc/vservers/vcrux01/interfaces/*/only_ip'
++ find /etc/vservers/vcrux01 -type f -exec /usr/lib/util-vserver/check-unixfile '{}' ';'
++ vshelper.doSanityCheck
++ local vshelper this_xid i
++ declare -a 'warnings=()'
++ local solution_disable=
++ local solution_sysctl=
++ vshelper.isEnabled
++ local f=disabled
++ test '!' -e /etc/vservers/.defaults/apps/vshelper/disabled
++ /usr/sbin/vserver-info - FEATURE vshelper
++ test -n ''
++ return 0
++ vshelper.isEnabled warning
++ local f=warning-disabled
++ test '!' -e /etc/vservers/.defaults/apps/vshelper/warning-disabled
++ /usr/sbin/vserver-info - FEATURE vshelper
++ test -n ''
++ return 0
+++ /usr/sbin/vserver-info - XID
++ this_xid=0
++ test 0 = 0
++ local proc_file=/proc/sys/kernel/vshelper
++ test -r /proc/sys/kernel/vshelper
+++ cat /proc/sys/kernel/vshelper
++ vshelper=/usr/lib/util-vserver/vshelper
++ /usr/bin/cmp -s /usr/lib/util-vserver/vshelper /usr/lib/util-vserver/vshelper
++ test -d /usr/var/run/vshelper
++ test 0 -eq 0
++ return 0
++ /usr/sbin/vserver-info - VERIFYCAP
++ /usr/sbin/vserver-info - VERIFYPROC
++ mountRootFS /etc/vservers/vcrux01
++ local cfgdir=/etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01/vdir
++ local fstab=/etc/vservers/vcrux01/fstab
++ local xflag=
++ test -e /etc/vservers/vcrux01/fstab
++ pushd /etc/vservers/vcrux01/vdir
++ test -w etc -o -w etc/mtab
++ /usr/lib/util-vserver/secure-mount -a --chroot --fstab /etc/vservers/vcrux01/fstab --rootfs only -n
++ popd
++ generateOptions /etc/vservers/vcrux01
++ _generateInterfaceOptions /etc/vservers/vcrux01
++ local iface
++ local ctx
++ test '!' -e /etc/vservers/vcrux01/context
++ read ctx
++ for iface in '"$1/interfaces/"*'
++ test -d /etc/vservers/vcrux01/interfaces/0
++ test '!' -e /etc/vservers/vcrux01/interfaces/0/disabled
++ _processSingleInterface /etc/vservers/vcrux01/interfaces/0
++ local iface=/etc/vservers/vcrux01/interfaces/0
++ local ip
++ local dev
++ local prefix
++ local mask
++ local bcast
++ local name
++ local scope
++ local mac
++ local extip
++ local up=up
++ _getInterfaceValue ip '' /etc/vservers/vcrux01/interfaces/0
++ local _giv_val=ip
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : 192.168.1.233
++ eval 'ip=$_giv_tmp'
+++ ip=192.168.1.233
++ _getInterfaceValue extip '' /etc/vservers/vcrux01/interfaces/0 /etc/vservers/vcrux01/interfaces/0/..
++ local _giv_val=extip
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'extip=$_giv_tmp'
+++ extip=
++ _getInterfaceValue dev '' /etc/vservers/vcrux01/interfaces/0 /etc/vservers/vcrux01/interfaces/0/..
++ local _giv_val=dev
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : eth0
++ eval 'dev=$_giv_tmp'
+++ dev=eth0
++ _getInterfaceValue prefix '' /etc/vservers/vcrux01/interfaces/0 /etc/vservers/vcrux01/interfaces/0/..
++ local _giv_val=prefix
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'prefix=$_giv_tmp'
+++ prefix=
++ _getInterfaceValue mask '' /etc/vservers/vcrux01/interfaces/0 /etc/vservers/vcrux01/interfaces/0/..
++ local _giv_val=mask
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : 255.255.254.0
++ eval 'mask=$_giv_tmp'
+++ mask=255.255.254.0
++ _getInterfaceValue bcast '' /etc/vservers/vcrux01/interfaces/0 /etc/vservers/vcrux01/interfaces/0/..
++ local _giv_val=bcast
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'bcast=$_giv_tmp'
+++ bcast=
++ _getInterfaceValue name '' /etc/vservers/vcrux01/interfaces/0
++ local _giv_val=name
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : c01
++ eval 'name=$_giv_tmp'
+++ name=c01
++ _getInterfaceValue scope '' /etc/vservers/vcrux01/interfaces/0 /etc/vservers/vcrux01/interfaces/0/..
++ local _giv_val=scope
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'scope=$_giv_tmp'
+++ scope=
++ _getInterfaceValue mac '' /etc/vservers/vcrux01/interfaces/0
++ local _giv_val=mac
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'mac=$_giv_tmp'
+++ mac=
++ test -n 192.168.1.233
++ test -n eth0 -o -e /etc/vservers/vcrux01/interfaces/0/nodev
++ test '!' -e /etc/vservers/vcrux01/interfaces/0/down
++ true
++ _transformMask2Prefix prefix '' 255.255.254.0
++ local _tm2p_tmp=
++ test -n ''
++ /usr/lib/util-vserver/mask2prefix 255.255.254.0
++ _tm2p_tmp=23
++ eval 'prefix=$_tm2p_tmp'
+++ prefix=23
++ return 0
++ INTERFACES=("${INTERFACES[@]}" "$ip${prefix:+/$prefix}")
++ test '!' -e /etc/vservers/vcrux01/interfaces/0/nodev
++ test '!' -e /etc/vservers/vcrux01/interfaces/0/only_ip
++ local vlan_info
+++ _getVLANInfo eth0
+++ case "$1" in
+++ return 1
++ vlan_info=
++ test -e /etc/vservers/vcrux01/interfaces/0/indirect
++ _addInterfaceCmd IP_ADDR 192.168.1.233/23 broadcast + label eth0:c01 dev eth0
++ eval 'INTERFACE_CMDS_0=( "$@" )'
+++ INTERFACE_CMDS_0=("$@")
++ let ++INTERFACE_CMDS_IDX
++ _addInterfaceCmd IP_LINK eth0 up
++ eval 'INTERFACE_CMDS_1=( "$@" )'
+++ INTERFACE_CMDS_1=("$@")
++ let ++INTERFACE_CMDS_IDX
++ break
++ for iface in '"$1/interfaces/"*'
++ test -d /etc/vservers/vcrux01/interfaces/dev
++ continue
++ for iface in '"$1/interfaces/"*'
++ test -d /etc/vservers/vcrux01/interfaces/mask
++ continue
++ _HAVE_INTERFACE_OPTIONS=1
++ test -n ''
++ _generateChbindOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local i
++ local bcast=
++ test -n 1
++ local f=/etc/vservers/vcrux01/interfaces/bcast
++ getFileValue bcast /etc/vservers/vcrux01/interfaces/bcast
++ local _gfv_var=bcast
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/vcrux01/interfaces/bcast ''
++ findObject -f _gfv_file /etc/vservers/vcrux01/interfaces/bcast ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/vcrux01/interfaces/bcast
++ test '!' -f /etc/vservers/vcrux01/interfaces/bcast
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ CHBIND_OPTS=($SILENT_OPT ${bcast:+--bcast "$bcast"})
++ for i in '"${INTERFACES[@]}"'
++ CHBIND_OPTS=("${CHBIND_OPTS[@]}" --ip "$i")
++ _HAVE_CHBIND_OPTIONS=1
++ _generateNiceCommand /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local nice
++ test -r /etc/vservers/vcrux01/nice
++ return 0
++ _generateInitOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local cfgdir=/etc/vservers/vcrux01/apps/init
++ local i f
++ INITCMD_START=()
++ INITCMD_STOP=()
++ INITCMD_START_SYNC=()
++ INITCMD_STOP_SYNC=()
++ INITCMD_PREPARE=()
++ STOPCMD_PREPARE=()
++ INITKILL_SEQ=(15 5 9)
++ CHCONTEXT_INIT_OPTS=()
++ getFileValue INITSTYLE /etc/vservers/vcrux01/apps/init/style
++ local _gfv_var=INITSTYLE
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/vcrux01/apps/init/style ''
++ findObject -f _gfv_file /etc/vservers/vcrux01/apps/init/style ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/vcrux01/apps/init/style
++ test '!' -f /etc/vservers/vcrux01/apps/init/style
++ _fo_file=/etc/vservers/vcrux01/apps/init/style
++ break
++ test -z /etc/vservers/vcrux01/apps/init/style -o -n /etc/vservers/vcrux01/apps/init/style
++ eval '_gfv_file="/etc/vservers/vcrux01/apps/init/style"'
+++ _gfv_file=/etc/vservers/vcrux01/apps/init/style
++ test -n /etc/vservers/vcrux01/apps/init/style -a -r /etc/vservers/vcrux01/apps/init/style
++ eval read INITSTYLE
+++ read INITSTYLE
++ getFileValue RUNLEVEL_START /etc/vservers/vcrux01/apps/init/runlevel
++ local _gfv_var=RUNLEVEL_START
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/vcrux01/apps/init/runlevel ''
++ findObject -f _gfv_file /etc/vservers/vcrux01/apps/init/runlevel ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/vcrux01/apps/init/runlevel
++ test '!' -f /etc/vservers/vcrux01/apps/init/runlevel
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ getFileValue RUNLEVEL_START /etc/vservers/vcrux01/apps/init/runlevel.start
++ local _gfv_var=RUNLEVEL_START
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/vcrux01/apps/init/runlevel.start ''
++ findObject -f _gfv_file /etc/vservers/vcrux01/apps/init/runlevel.start ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/vcrux01/apps/init/runlevel.start
++ test '!' -f /etc/vservers/vcrux01/apps/init/runlevel.start
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ getFileValue RUNLEVEL_STOP /etc/vservers/vcrux01/apps/init/runlevel.stop
++ local _gfv_var=RUNLEVEL_STOP
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/vcrux01/apps/init/runlevel.stop ''
++ findObject -f _gfv_file /etc/vservers/vcrux01/apps/init/runlevel.stop ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/vcrux01/apps/init/runlevel.stop
++ test '!' -f /etc/vservers/vcrux01/apps/init/runlevel.stop
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ getFileArray INITKILL_SEQ /etc/vservers/vcrux01/apps/init/killseq
++ test -r /etc/vservers/vcrux01/apps/init/killseq
++ return 1
++ :
++ case x"$INITSTYLE" in
++ INITCMD_START=(/sbin/init)
++ INITCMD_STOP=(/sbin/init)
++ _IS_FAKEINIT=1
++ _NEED_VSHELPER_SYNC=1
++ test -z ''
++ test -z ''
++ test xplain '!=' xrescue
++ getFileArray INITCMD_START /etc/vservers/vcrux01/apps/init/cmd.start
++ test -r /etc/vservers/vcrux01/apps/init/cmd.start
++ return 1
++ :
++ getFileArray INITCMD_STOP /etc/vservers/vcrux01/apps/init/cmd.stop
++ test -r /etc/vservers/vcrux01/apps/init/cmd.stop
++ return 1
++ :
++ getFileArray INITCMD_START_SYNC /etc/vservers/vcrux01/apps/init/cmd.start-sync
++ test -r /etc/vservers/vcrux01/apps/init/cmd.start-sync
++ return 1
++ :
++ getFileArray INITCMD_STOP_SYNC /etc/vservers/vcrux01/apps/init/cmd.stop-sync
++ test -r /etc/vservers/vcrux01/apps/init/cmd.stop-sync
++ return 1
++ :
++ getFileArray INITCMD_PREPARE /etc/vservers/vcrux01/apps/init/cmd.prepare
++ test -r /etc/vservers/vcrux01/apps/init/cmd.prepare
++ return 1
++ :
++ test -n '' -o -e /etc/vservers/vcrux01/apps/init/sync
++ INITCMD_START_SYNC=()
++ INITCMD_STOP_SYNC=()
++ _NEED_VSHELPER_SYNC=
++ vshelper.isEnabled
++ local f=disabled
++ test '!' -e /etc/vservers/.defaults/apps/vshelper/disabled
++ /usr/sbin/vserver-info - FEATURE vshelper
++ test -n ''
++ return 0
++ vshelper.getSyncTimeout /etc/vservers/vcrux01 VSHELPER_SYNC_TIMEOUT
++ local _vgst_appdir _vgst_file _vgst_tmp
+++ /usr/sbin/vserver-info /etc/vservers/vcrux01 APPDIR vshelper
++ _vgst_appdir=
++ _vgst_appdir=
++ findFile _vgst_file /etc/vservers/.defaults/apps/vshelper/sync-timeout ''
++ findObject -f _vgst_file /etc/vservers/.defaults/apps/vshelper/sync-timeout ''
++ local _fo_mod=-f
++ local _fo_var=_vgst_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/.defaults/apps/vshelper/sync-timeout
++ test '!' -f /etc/vservers/.defaults/apps/vshelper/sync-timeout
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_vgst_file=""'
+++ _vgst_file=
++ test -n ''
++ return 1
++ :
++ _generateChcontextOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local ctx hostname domainname
++ local cap_opts
++ local flag
++ test -z ''
++ _generateCapabilityOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local cap
++ _generateBCapabilityOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local cap
++ local f=/etc/vservers/vcrux01/bcapabilities
++ test -e /etc/vservers/vcrux01/bcapabilities
++ return 0
++ _generateCCapabilityOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local cap
++ local f=/etc/vservers/vcrux01/ccapabilities
++ test -e /etc/vservers/vcrux01/ccapabilities
++ return 0
++ test -e /etc/vservers/vcrux01/capabilities
++ return 0
++ _generateFlagOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ CHCONTEXT_FLAG_OPTS=()
++ test '!' -e /etc/vservers/vcrux01/flags
++ isAvoidNamespace /etc/vservers/vcrux01
++ local cfgdir
++ /usr/sbin/vserver-info - FEATURE namespace
+++ /usr/sbin/vserver-info /etc/vservers/vcrux01 CFGDIR
++ cfgdir=/etc/vservers/vcrux01
++ test '!' -e /etc/vservers/vcrux01/namespace
++ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/vcrux01/nonamespace
++ USE_VNAMESPACE=1
++ CHCONTEXT_FLAG_OPTS=("${CHCONTEXT_FLAG_OPTS[@]}" --flag namespace)
++ CHCONTEXT_OPTS=($SILENT_OPT "${CHCONTEXT_FLAG_OPTS[@]}" "${CAP_OPTS[@]}" --secure ${ctx:+--ctx "$ctx"} ${hostname:+--hostname "$hostname"} ${domainname:+--domainname "$domainname"})
++ OPTS_VCONTEXT_CREATE=($SILENT_OPT ${ctx:+--xid "$ctx"})
++ OPTS_VATTRIBUTE=(--secure --flag default "${OPTS_VATTRIBUTE[@]}")
++ _generateScheduleOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local f=/etc/vservers/vcrux01/schedule
++ test -e /etc/vservers/vcrux01/schedule
++ return 0
++ _generatePersonalityOptions /etc/vservers/vcrux01
++ local vdir=/etc/vservers/vcrux01
++ local f=/etc/vservers/vcrux01/personality
++ local type flags
++ test -s /etc/vservers/vcrux01/personality
++ return 0
++ test -n 1
++ CHCONTEXT_INIT_OPTS=(--disconnect --flag fakeinit)
++ OPTS_VCONTEXT_MIGRATE=("${OPTS_VCONTEXT_MIGRATE[@]}" --initpid --disconnect)
++ pushd /etc/vservers/vcrux01
++ execScriptlets /etc/vservers/vcrux01 vcrux01 prepre-start
++ declare -r vdir=/etc/vservers/vcrux01
++ declare -r name=vcrux01
++ declare -r flavor=prepre-start
++ local base i
++ for base in '"$vdir"/scripts' '"$__CONFDIR"/.defaults/scripts'
++ local DONT_SKIP_DEFAULTS=
++ local already_handled=
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile /etc/vservers/vcrux01/scripts/prepre-start
++ test -f /etc/vservers/vcrux01/scripts/prepre-start
++ return 1
++ continue
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile '/etc/vservers/vcrux01/scripts/prepre-start.d/*'
++ test -f '/etc/vservers/vcrux01/scripts/prepre-start.d/*'
++ return 1
++ continue
++ test -z '' -o -n ''
++ for base in '"$vdir"/scripts' '"$__CONFDIR"/.defaults/scripts'
++ local DONT_SKIP_DEFAULTS=
++ local already_handled=
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile /etc/vservers/.defaults/scripts/prepre-start
++ test -f /etc/vservers/.defaults/scripts/prepre-start
++ return 1
++ continue
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile '/etc/vservers/.defaults/scripts/prepre-start.d/*'
++ test -f '/etc/vservers/.defaults/scripts/prepre-start.d/*'
++ return 1
++ continue
++ test -z '' -o -n ''
++ popd
++ enableInterfaces /etc/vservers/vcrux01
++ local i=0
++ declare -a var
++ lock /var/lock/vserver.interfaces
+++ /usr/bin/mktemp /tmp/vserver-lock.XXXXXX
++ local tmp=/tmp/vserver-lock.gX2068
++ /bin/rm -f /tmp/vserver-lock.gX2068
++ /usr/bin/mkfifo -m600 /tmp/vserver-lock.gX2068
++ /usr/lib/util-vserver/lockfile /var/lock/vserver.interfaces /tmp/vserver-lock.gX2068
++ /usr/bin/grep -q true /tmp/vserver-lock.gX2068
++ _VS_LOCKS='2071 2036 '
++ test 0 -lt 2
++ eval 'var=( "${INTERFACE_CMDS_0[@]}" )'
+++ var=("${INTERFACE_CMDS_0[@]}")
++ local type=IP_ADDR
++ unset 'var[0]'
++ set -- 192.168.1.233/23 broadcast + label eth0:c01 dev eth0
++ case "$type" in
++ /usr/sbin/ip addr add 192.168.1.233/23 broadcast + label eth0:c01 dev eth0
++ let ++i
++ test 1 -lt 2
++ eval 'var=( "${INTERFACE_CMDS_1[@]}" )'
+++ var=("${INTERFACE_CMDS_1[@]}")
++ local type=IP_LINK
++ unset 'var[0]'
++ set -- eth0 up
++ case "$type" in
++ /usr/sbin/ip link set eth0 up
++ let ++i
++ test 2 -lt 2
++ unlock 1
++ local num=1
++ local i
++ set -- 2071 2036
++ test 2 -gt 0
++ kill -HUP 2071
++ shift
++ test 1 '!=' 1
++ break
++ _VS_LOCKS=2036
++ have_interfaces=1
++ mountVserver /etc/vservers/vcrux01
++ local cfgdir=/etc/vservers/vcrux01
++ local ns_opt=
++ local vdir=/etc/vservers/vcrux01/vdir
++ local mtab_src
++ test -e /etc/vservers/vcrux01/fstab -o -e /etc/vservers/vcrux01/fstab.local -o -e /etc/vservers/vcrux01/fstab.remote
++ findObject -r mtab_src /etc/vservers/vcrux01/apps/init/mtab /etc/vservers/.defaults/init/mtab /usr/lib/util-vserver/defaults/mtab /dev/null
++ local _fo_mod=-r
++ local _fo_var=mtab_src
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/vcrux01/apps/init/mtab
++ test '!' -r /etc/vservers/vcrux01/apps/init/mtab
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/.defaults/init/mtab
++ test '!' -r /etc/vservers/.defaults/init/mtab
++ for _fo_i in '"$@"'
++ test -n /usr/lib/util-vserver/defaults/mtab
++ test '!' -r /usr/lib/util-vserver/defaults/mtab
++ _fo_file=/usr/lib/util-vserver/defaults/mtab
++ break
++ test -z /usr/lib/util-vserver/defaults/mtab -o -n /usr/lib/util-vserver/defaults/mtab
++ eval 'mtab_src="/usr/lib/util-vserver/defaults/mtab"'
+++ mtab_src=/usr/lib/util-vserver/defaults/mtab
++ pushd /etc/vservers/vcrux01/vdir
++ /usr/lib/util-vserver/chroot-sh truncate /etc/mtab
++ test -n 1
++ test -z ''
++ _mountVserverInternal /etc/vservers/vcrux01/fstab
++ local fstab=/etc/vservers/vcrux01/fstab
++ local xflag=
++ test -e /etc/vservers/vcrux01/fstab
++ shift
++ pushd /etc/vservers/vcrux01/vdir
++ test -w etc -o -w etc/mtab
++ /usr/lib/util-vserver/secure-mount -a --chroot --fstab /etc/vservers/vcrux01/fstab --rootfs no
++ popd
++ _mountVserverInternal /etc/vservers/vcrux01/fstab.local
++ local fstab=/etc/vservers/vcrux01/fstab.local
++ local xflag=
++ test -e /etc/vservers/vcrux01/fstab.local
++ return 0
++ _mountVserverInternal /etc/vservers/vcrux01/fstab.remote /usr/sbin/chbind --silent --ip 192.168.1.233/23
++ local fstab=/etc/vservers/vcrux01/fstab.remote
++ local xflag=
++ test -e /etc/vservers/vcrux01/fstab.remote
++ return 0
++ isAvoidNamespace /etc/vservers/vcrux01
++ local cfgdir
++ /usr/sbin/vserver-info - FEATURE namespace
+++ /usr/sbin/vserver-info /etc/vservers/vcrux01 CFGDIR
++ cfgdir=/etc/vservers/vcrux01
++ test '!' -e /etc/vservers/vcrux01/namespace
++ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/vcrux01/nonamespace
++ /usr/lib/util-vserver/secure-mount --rbind -n /etc/vservers/vcrux01/vdir /
++ is_mounted=1
++ prepareInit /etc/vservers/vcrux01
++ pushd /etc/vservers/vcrux01/vdir
++ case "$INITSTYLE" in
++ /usr/lib/util-vserver/chroot-sh rm .autofsck forcefsck
++ :
++ :
++ /usr/lib/util-vserver/chroot-sh truncate fastboot
++ pushd /etc/vservers/vcrux01/vdir/
++ execScriptlets /etc/vservers/vcrux01 vcrux01 pre-start
++ declare -r vdir=/etc/vservers/vcrux01
++ declare -r name=vcrux01
++ declare -r flavor=pre-start
++ local base i
++ for base in '"$vdir"/scripts' '"$__CONFDIR"/.defaults/scripts'
++ local DONT_SKIP_DEFAULTS=
++ local already_handled=
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile /etc/vservers/vcrux01/scripts/pre-start
++ test -f /etc/vservers/vcrux01/scripts/pre-start
++ return 1
++ continue
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile '/etc/vservers/vcrux01/scripts/pre-start.d/*'
++ test -f '/etc/vservers/vcrux01/scripts/pre-start.d/*'
++ return 1
++ continue
++ test -z '' -o -n ''
++ for base in '"$vdir"/scripts' '"$__CONFDIR"/.defaults/scripts'
++ local DONT_SKIP_DEFAULTS=
++ local already_handled=
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile /etc/vservers/.defaults/scripts/pre-start
++ test -f /etc/vservers/.defaults/scripts/pre-start
++ return 1
++ continue
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile '/etc/vservers/.defaults/scripts/pre-start.d/*'
++ test -f '/etc/vservers/.defaults/scripts/pre-start.d/*'
++ return 1
++ continue
++ test -z '' -o -n ''
++ popd
++ test -z ''
++ pushd /etc/vservers/vcrux01/vdir/
++ is_configured=1
++ /usr/sbin/vserver-info - FEATURE migrate
++ /usr/sbin/chbind --silent --ip 192.168.1.233/23 -- /usr/lib/util-vserver/exec-ulimit /etc/vservers/vcrux01/ulimits /usr/sbin/vcontext --create --silent --xid 100 -- /usr/sbin/vnamespace --set -- /usr/sbin/vlimit --dir /etc/vservers/vcrux01/rlimits --missingok -- /usr/sbin/vsched --xid self -- /usr/sbin/vuname --xid self --dir /etc/vservers/vcrux01/uts --missingok -- /usr/sbin/vuname --xid self --set -t context=/etc/vservers/vcrux01 -- /usr/sbin/vattribute --set --secure --flag default --flag fakeinit -- /usr/lib/util-vserver/save_ctxinfo /etc/vservers/vcrux01 /usr/bin/env -i -- /usr/sbin/vcontext --migrate-self --endsetup --chroot --silent --initpid --disconnect -- /sbin/init
save_ctxinfo: open("/usr/var/run/vservers/vcrux01"): No such file or directory
+ set +e
+ test -z ''
+ test -z ''
+ test -n 1 -a -z ''
+ warning '
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.'
+ test -n ''
+ echo '
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.'
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.
+ test -n ''
+ warning '
Failed to start vserver '\''vcrux01'\'''
+ test -n ''
+ echo '
Failed to start vserver '\''vcrux01'\'''
Failed to start vserver 'vcrux01'
+ test -n --debug
+ test -z 1
+ umountVserver /etc/vservers/vcrux01
+ local cfgdir=/etc/vservers/vcrux01
+ local vdir=/etc/vservers/vcrux01/vdir
+ local is_ok=1
+ isAvoidNamespace /etc/vservers/vcrux01
+ local cfgdir
+ /usr/sbin/vserver-info - FEATURE namespace
++ /usr/sbin/vserver-info /etc/vservers/vcrux01 CFGDIR
+ cfgdir=/etc/vservers/vcrux01
+ test '!' -e /etc/vservers/vcrux01/namespace
+ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/vcrux01/nonamespace
+ return 0
+ test -z 1
+ disableInterfaces /etc/vservers/vcrux01
+ test -n 1
+ local i=2
+ declare -a var
+ lock /var/lock/vserver.interfaces
++ /usr/bin/mktemp /tmp/vserver-lock.XXXXXX
+ local tmp=/tmp/vserver-lock.iZ2093
+ /bin/rm -f /tmp/vserver-lock.iZ2093
+ /usr/bin/mkfifo -m600 /tmp/vserver-lock.iZ2093
+ /usr/lib/util-vserver/lockfile /var/lock/vserver.interfaces /tmp/vserver-lock.iZ2093
+ /usr/bin/grep -q true /tmp/vserver-lock.iZ2093
+ _VS_LOCKS='2096 2036'
+ test 2 -gt 0
+ let --i
+ eval 'var=( "${INTERFACE_CMDS_1[@]}" )'
++ var=("${INTERFACE_CMDS_1[@]}")
+ local type=IP_LINK
+ unset 'var[0]'
+ set -- eth0 up
+ case "$type" in
+ test 1 -gt 0
+ let --i
+ :
+ eval 'var=( "${INTERFACE_CMDS_0[@]}" )'
++ var=("${INTERFACE_CMDS_0[@]}")
+ local type=IP_ADDR
+ unset 'var[0]'
+ set -- 192.168.1.233/23 broadcast + label eth0:c01 dev eth0
+ case "$type" in
+ /usr/sbin/ip addr del 192.168.1.233/23 broadcast + label eth0:c01 dev eth0
+ test 0 -gt 0
+ unlock 1
+ local num=1
+ local i
+ set -- 2096 2036
+ test 2 -gt 0
+ kill -HUP 2096
+ shift
+ test 1 '!=' 1
+ break
+ _VS_LOCKS=2036
+ unlock
+ local num=
+ local i
+ set -- 2036
+ test 1 -gt 0
+ kill -HUP 2036
+ shift
+ test '' '!=' 1
+ test -z ''
+ test 0 -gt 0
+ _VS_LOCKS=
Thanks Falk
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Apr 19 10:51:12 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 19 Apr 2006 - 10:51:19 BST by hypermail 2.1.8