On Sun, May 25, 2008 at 10:07:14PM +0200, Ola Lundqvist's all... >Hi Ken > >Thanks a lot for the bug report. > >Have you tried this fix that you describe below? >Please also tell what the problem is. You tell about something about >incorrect syntax check, but I can not understand that from the output >you sent me. > >Best regards,
What I did was 2 things -- run the vserver build command by hand with an --include=wget for eg, and it works. Without it, it parses the --exclude as something else and actually creates an /etc/vservers/--exclude=foo,bar,baz dir (as well as one in /var/lib/vservers). I also edited the newvserver script and added wget to the list. alternately, LANG='C' in the newvserver-vars file (or in my shell...) would work. Im not sure where the syntax check problem is but you can see here there's a problem: /usr/sbin/vserver test build -m debootstrap --rootdir /etc/vservers/.defaults/vdirbase --hostname test --interface lo:10.11.12.13 -- -d etch -m http://http.us.debian.org/debian -- --arch i386 --include= --exclude=sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe! That should fail for you in a wierd way as well. /kc > >// Ola > >On Tue, May 20, 2008 at 11:47:07PM -0400, Ken Chase wrote: >> Package: vserver-debiantools >> Version: 0.6.0 >> >> Arch: x86_64 >> Dist: lenny >> Libc: 2.7-6 >> Kernel: Linux deimos 2.6.22-3-vserver-amd64 #1 SMP Sun Nov 4 18:41:00 UTC 2007 x86_64 GNU/Linux >> >> if LANG='' there's a parsing options issue in newvserver script >> which results in INSTALL_PACKAGES being null and parsing incorrectly >> for the build vserver command: >> >> from line 43 onwards in the newvserver script: >> >> # Packages to install in addition to the base defaults >> # MUST INCLUDE ALL DEPENDENCIES (seperated by "," commas) >> INSTALL_PACKAGES="" >> >> if [ -n "$LANG" ] && [ "$LANG" != "C" ] ; then >> INSTALL_PACKAGES="$INSTALL_PACKAGES locales" >> fi >> >> >> the fix is to put something into INSTALL_PACKAGES as default, such as >> 'wget'. >> >> -- Details --------- >> >> # newvserver --interface lo --hostname test --domain example.org --ip 10.11.12.13 --arch i386 >> VxID: 0 >> chroot-sh: open("/etc/apt/sources.list"): No such file or directory >> >> >>> Executing post install script ... >> >> secure-mount: chdir("/tmp"): No such file or directory >> /etc/vservers/test/fstab:2:1: failed to mount fstab-entry >> vcontext: execvp("bash"): No such file or directory >> >> An error occured while executing the vserver startup sequence; when >> there are no other messages, it is very likely that the init-script >> (bash -c >> exec > /dev/null >> exec 2> /dev/null >> >> set -x >> f=/tmp/startwait >> trap "rm -f $f" EXIT >> mkfifo $f >> ( sleep 15; kill -s 9 -- -1 ) & >> cat "$f" >> kill -s 9 -- -1 >> wait >> ) 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 'test' >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> /usr/sbin/newvserver: line 491: /etc/vservers/.defaults/vdirbase/test/etc/apt/sources.list: No such file or directory >> mv: cannot stat `/etc/vservers/.defaults/vdirbase/test/etc/inittab': No such file or directory >> secure-mount: chdir("/tmp"): No such file or directory >> /etc/vservers/test/fstab:2:1: failed to mount fstab-entry >> find: `var/run': No such file or directory >> fakerunlevel: open("/var/run/utmp"): No such file or directory >> >> >> Failed to start vserver 'test' >> 'vserver ... suexec' is supported for running vservers only; aborting... >> vserver 'test' is not running >> >> You should now adjust the configuration in /etc/vservers/test/ >> to suit your needs, >> or else just go ahead and type `vserver test start' to start >> your new virtual server. debian/rules! >> >> -- >> >> again, with some details: >> >> >> # bash -x newvserver --interface lo --hostname test --domain example.org --ip 10.11.12.13 --arch i386 >> + VERSION=0.6 >> + shopt -s extglob >> + CONTEXT= >> + VROOTDIR=/etc/vservers/.defaults/vdirbase >> + INSTALL_PACKAGES= >> + '[' -n '' ']' >> + EXTRA_PACKAGES= >> + REMOVE_PACKAGES=sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils >> + REMOVE_LINKS='klogd hwclock.sh setserial urandom networking umountfs halt reboot mountvirtfs mountall.sh mountnfs.sh ifupdown' >> + POST_INSTALL_SCRIPT= >> + POST_INSTALL_HOST_SCRIPT= >> + ARCH= >> + DIST=lenny >> + MIRROR=http://ftp.uk.debian.org/debian >> + MIRROR_NON_US=http://non-us.debian.org/debian-non-US >> + MIRROR_SECURITY=http://security.debian.org >> + INTERFACE=eth0 >> + PKGCACHE=0 >> + DEBCONF_FILE_DB= >> + '[' -r /etc/vservers/newvserver-vars ']' >> + . /etc/vservers/newvserver-vars >> ++ MIRROR=http://http.us.debian.org/debian/ >> ++ DIST=etch >> ++ ARCH=i386 >> + parse_args --interface lo --hostname test --domain example.org --ip 10.11.12.13 --arch i386 >> + '[' 10 -gt 0 ']' >> + case "$1" in >> + case "$2" in >> + INTERFACE=lo >> + shift 2 >> + '[' 8 -gt 0 ']' >> + case "$1" in >> + case "$2" in >> + VHOST=test >> + shift 2 >> + '[' 6 -gt 0 ']' >> + case "$1" in >> + case "$2" in >> + VDOMAIN=example.org >> + shift 2 >> + '[' 4 -gt 0 ']' >> + case "$1" in >> + case "$2" in >> + IP=10.11.12.13 >> + shift 2 >> + '[' 2 -gt 0 ']' >> + case "$1" in >> + case "$2" in >> + ARCH=i386 >> + shift 2 >> + '[' 0 -gt 0 ']' >> ++ which dig >> + '[' -x /usr/bin/dig ']' >> + '[' -n 10.11.12.13 -a '(' -z test -o -z example.org ')' ']' >> + '[' -n test -a -n example.org -a -n lo -a -z 10.11.12.13 ']' >> + '[' -n test -a -n example.org -a -n 10.11.12.13 ']' >> + IP_ADDR=10.11.12.13 >> + MIRROR=http://http.us.debian.org/debian >> + MIRROR_NON_US=http://non-us.debian.org/debian-non-US >> + MIRROR_SECURITY=http://security.debian.org >> + VROOTDIR=/etc/vservers/.defaults/vdirbase >> + cat /proc/self/status >> + grep '^\(VxID:[^0-9]0\|s_context:[^0-9]0\)$' >> VxID: 0 >> + '[' -x /usr/bin/id ']' >> ++ id -u >> + '[' 0 -ne 0 ']' >> + '[' -d /etc/vservers/.defaults/vdirbase/ARCHIVES/etch ']' >> + '[' -n i386 ']' >> + ARCH_ARGUMENT='--arch i386' >> + CONTEXT_ARGUMENT= >> + '[' -n '' ']' >> + /usr/sbin/vserver test build -m debootstrap --rootdir /etc/vservers/.defaults/vdirbase --hostname test --interface lo:10.11.12.13 -- -d etch -m http://http.us.debian.org/debian -- --arch i386 --include= --exclude=sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils >> chroot-sh: open("/etc/apt/sources.list"): No such file or directory >> >> >>> Executing post install script ... >> >> secure-mount: chdir("/tmp"): No such file or directory >> /etc/vservers/test/fstab:2:1: failed to mount fstab-entry >> vcontext: execvp("bash"): No such file or directory >> >> An error occured while executing the vserver startup sequence; when >> there are no other messages, it is very likely that the init-script >> (bash -c >> exec > /dev/null >> exec 2> /dev/null >> >> set -x >> f=/tmp/startwait >> trap "rm -f $f" EXIT >> mkfifo $f >> ( sleep 15; kill -s 9 -- -1 ) & >> cat "$f" >> kill -s 9 -- -1 >> wait >> ) 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 'test' >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> 'vserver ... suexec' is supported for running vservers only; aborting... >> + '[' -n '' ']' >> + '[' woody == etch ']' >> + cat >> /usr/sbin/newvserver: line 491: /etc/vservers/.defaults/vdirbase/test/etc/apt/sources.list: No such file or directory >> + cd /etc/vservers/.defaults/vdirbase/test/dev >> + ln -s /proc/self/fd fd >> + ln -s fd/2 stderr >> + ln -s fd/0 stdin >> + ln -s fd/1 stdout >> + echo test >> + cat >> ++ ip -o addr show dev lo primary scope global >> ++ sed -n 's;.*inet \([^/]*\)/.*;\1;p' >> ++ head -1 >> + HOST_IP= >> + echo search example.org >> + grep '^nameserver' /etc/resolv.conf >> + sed s/127.0.0.1// >> + '[' -f /etc/apt/apt.conf ']' >> + '[' -d /etc/apt/apt.conf.d ']' >> + cp -a /etc/apt/apt.conf.d/00trustcdrom /etc/apt/apt.conf.d/01autoremove /etc/apt/apt.conf.d/70debconf /etc/vservers/.defaults/vdirbase/test/etc/apt/apt.conf.d/ >> + cat >> + mv /etc/vservers/.defaults/vdirbase/test/etc/inittab /etc/vservers/.defaults/vdirbase/test/etc/inittab.dist >> mv: cannot stat `/etc/vservers/.defaults/vdirbase/test/etc/inittab': No such file or directory >> + d1=5 >> + d2=5 >> + dt=40 >> + DAILY=18 >> + WEEKLY=23 >> + MONTHLY=28 >> + HOUR=4 >> + cat >> + '[' -n '' ']' >> + '[' -f /etc/timezone ']' >> ++ cat /etc/timezone >> + tz=America/New_York >> + zonefile=/etc/vservers/.defaults/vdirbase/test/usr/share/zoneinfo/America/New_York >> + '[' -f /etc/vservers/.defaults/vdirbase/test/usr/share/zoneinfo/America/New_York ']' >> + '[' -n '' ']' >> + cat >> ++ echo sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils >> ++ sed -e 's/,/ /g' >> + '[' -n '' ']' >> + vserver test start >> secure-mount: chdir("/tmp"): No such file or directory >> /etc/vservers/test/fstab:2:1: failed to mount fstab-entry >> find: `var/run': No such file or directory >> fakerunlevel: open("/var/run/utmp"): No such file or directory >> >> >> Failed to start vserver 'test' >> + chmod 755 /etc/vservers/.defaults/vdirbase/test/vserver-config.sh >> + vserver test exec /vserver-config.sh >> 'vserver ... suexec' is supported for running vservers only; aborting... >> + rm -f /etc/vservers/.defaults/vdirbase/test/vserver-config.sh >> + rm -f /etc/vservers/.defaults/vdirbase/test/config.dat >> + rm -f /etc/vservers/.defaults/vdirbase/test/config.dat-old >> + '[' -n '' ']' >> + '[' -f '' ']' >> + vserver test stop >> vserver 'test' is not running >> + '[' 0 -eq 1 ']' >> + echo >> >> + echo 'You should now adjust the configuration in /etc/vservers/test/' >> You should now adjust the configuration in /etc/vservers/test/ >> + echo 'to suit your needs,' >> to suit your needs, >> + echo 'or else just go ahead and type `vserver test start'\'' to start' >> or else just go ahead and type `vserver test start' to start >> + echo 'your new virtual server. debian/rules!' >> your new virtual server. debian/rules! >> + echo >> >> >> /kc >> -- >> Ken Chase - [EMAIL PROTECTED] Toronto CANADA. >> >> >> > >-- > --------------------- Ola Lundqvist --------------------------- >/ [EMAIL PROTECTED] Annebergsslingan 37 \ >| [EMAIL PROTECTED] 654 65 KARLSTAD | >| http://inguza.com/ +46 (0)70-332 1551 | >\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / > --------------------------------------------------------------- -- Ken Chase - [EMAIL PROTECTED] - 647 829 3387 Heavy Computing - Clueful Server Colocation at 151 Front St. W Toronto -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]