Hi Ola, thanks for the new version of the script, but it didn't work... :(
I'll be investigating... see bellow, all the log..maybe you can still help
me
# sh -xv newvserver.sh --hostname testxx --domain mydomain.com --ip
10.255.1.192
#!/bin/bash
VERSION='0.7'
+ VERSION=0.7
#
# Copyright (C) 2002-2010 Ola Lundqvist <o...@inguza.com>
# Copyright (C) 2009 Stefan Tomanek <ste...@pico.ruhr.de>
# Copyright (C) 2008 Vincent Bernat <ber...@luffy.cx>
# Copyright (C) 2007 Tijs van Dam <tij...@bluescraper.com>
# Copyright (C) 2007 Jochen Voss <v...@seehuhn.de>
# Copyright (C) 2006 Miroslav Kure <ku...@upcase.inf.upol.cz>
# Copyright (C) 2005 Thomas Gelf <tho...@gelf.net>
# Copyright (C) 2005 Daniel Hermann <
herm...@tkm.physik.uni-karlsruhe.de>
# Copyright (C) 2002 Paul Sladen <vser...@paul.sladen.org>
# Copyright (C) 2002 Mark Lawrence <no...@null.net>
#
# This is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version.
#
# This is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License with
# the source package as the file COPYING. If not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
# Install a virtual debian server (vserver) from a debian HTTP/FTP archive
#
# ----------------------------------------------------------------
# Configurable items:
shopt -s extglob
+ shopt -s extglob
# No context id set by default
CONTEXT=
+ CONTEXT=
# Root directory of your virtual servers (probably shouldn't change this)
# Support for 0.30.203 and above of util-vserver
VROOTDIR="/etc/vservers/.defaults/vdirbase"
+ VROOTDIR=/etc/vservers/.defaults/vdirbase
# Packages to install in addition to the base defaults
# MUST INCLUDE ALL DEPENDENCIES (seperated by "," commas)
INSTALL_PACKAGES=""
+ INSTALL_PACKAGES=
if [ -n "$LANG" ] && [ "$LANG" != "C" ] ; then
INSTALL_PACKAGES="$INSTALL_PACKAGES locales"
fi
+ '[' -n en_US.UTF-8 ']'
+ '[' en_US.UTF-8 '!=' C ']'
+ INSTALL_PACKAGES=' locales'
# Packages installed from within the vserver after it has
# been setup (seperated by "," commas)
EXTRA_PACKAGES=""
+ EXTRA_PACKAGES=
# Packages to remove from the base defaults (seperated by "," commas)
#REMOVE_PACKAGES="dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,nano,fdutils,iptables,libpcap0,pciutils"
REMOVE_PACKAGES="sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils"
+
REMOVE_PACKAGES=sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils
# sysvinit services relating to hardware access to remove
REMOVE_LINKS="klogd hwclock.sh setserial urandom networking umountfs halt
reboot mountvirtfs mountall.sh mountnfs.sh ifupdown"
+ REMOVE_LINKS='klogd hwclock.sh setserial urandom networking umountfs halt
reboot mountvirtfs mountall.sh mountnfs.sh ifupdown'
# Post installation script, run inside vserver guest context
POST_INSTALL_SCRIPT=""
+ POST_INSTALL_SCRIPT=
# Post installation script, run inside vserver host context and before
# POST_INSTALL_SCRIPT
POST_INSTALL_HOST_SCRIPT=""
+ POST_INSTALL_HOST_SCRIPT=
# Architecture: overide on non-Debian host such as Redhat
# otherwise dpkg will detect whether we are i386/powerpc/sparc/etc
ARCH=""
+ ARCH=
# Which debian distribution
# (warning: this has only been tested with
# woody, sarge, etch, lenny and squeeze)
DIST="squeeze"
+ DIST=squeeze
# Local or nearest location of a debian mirror (must include the `/debian')
MIRROR="http://ftp.uk.debian.org/debian"
+ MIRROR=http://ftp.uk.debian.org/debian
# debian-non-US mirror (must include the '/debian-non-US', only used for
woody)
MIRROR_NON_US="http://non-us.debian.org/debian-non-US"
+ MIRROR_NON_US=http://non-us.debian.org/debian-non-US
# mirror for security updates
MIRROR_SECURITY="http://security.debian.org"
+ MIRROR_SECURITY=http://security.debian.org
# Default network interface for vservers:
INTERFACE="eth0"
+ INTERFACE=eth0
# Package caching
PKGCACHE=0
+ PKGCACHE=0
# The name of a debconf database to be read by debconf's file driver.
# This can be used to store the answers for debconf questions during
# install and thus allows for unattended installation. See the
# debconf.conf(5) manual page for the file format.
DEBCONF_FILE_DB=""
+ DEBCONF_FILE_DB=
if [ -r /etc/vservers/newvserver-vars ] ; then
. /etc/vservers/newvserver-vars
fi
+ '[' -r /etc/vservers/newvserver-vars ']'
+ . /etc/vservers/newvserver-vars
# Configuration file for newvserver
# See man newvserver for the variables that you can set here.
MIRROR="http://debian.mydomain.com:3142/debian"
++ MIRROR=http://debian.mydomain.com:3142/debian
DIST="lenny"
++ DIST=lenny
INTERFACE="eth0"
++ INTERFACE=eth0
# ----------------------------------------------------------------
# Nothing from here on should need changing.
# ----------------------------------------------------------------
# NOTE: debootstrap handles multiple MIRRORs, so there is no reason why
# we shouldn't too--that way we could just let it build
/etc/apt/sources.list
usage ()
{
cat << EOF 1>&2
usage: ${0##*/} --hostname x --domain y.z --ip 1.2.3.4/24 [OPTIONS]
(see --help for more information)
EOF
}
full_usage ()
{
cat << EOF
Usage: ${0##*/} --hostname x --domain y.z --ip 1.2.3.4/24 [OPTIONS]
Creates a new Debian vserver by calling "vserver ... build"
Options:
-h, --help this help
-V, --version copyright and version information
--arch set target architecture (eg. --arch "i386")
(autodetected on Debian host if dpkg available)
--dist defaults to "squeeze", passed to debootstrap.
--context n Set the context id to be used.
--fakeinit use "/sbin/init" to boot vserver
--conffile extra configuration file to load.
--interface interface for IP addresses (if not "eth0")
--mirror Debian HTTP/FTP mirror (including the /debian)
--sshkeys copy pub-keys to "/root/.ssh/authorized_keys"
--pkgcache Package caching.
-v, --verbose show extra output during setup
--vsroot location of "/vserver/" directory
Required:
--hostname hostname for new vserver (eg. "alpha")
--domain dns domain for new vserver (eg. "example.com")
--ip IPv4 address for new vserver
(syntax: --ip <ip>[/<netmask|prefixlength>])
Either --ip or --domain/--hostname may be omitted if the
corresponding information can be found via a name server
query. For this to work the dnsutils package must be installed.
You can also set variables in /etc/vservers/newvserver-vars.
EOF
}
full_version ()
{
cat << EOF
${0##*/} version $VERSION
Copyright (C) 2002-2010 Ola Lundqvist <o...@inguza.com>
Copyright (C) 2008 Vincent Bernat <ber...@luffy.cx>
Copyright (C) 2007 Tijs van Dam <tij...@bluescraper.com>
Copyright (C) 2007 Jochen Voss <v...@seehuhn.de>
Copyright (C) 2006 Miroslav Kure <ku...@upcase.inf.upol.cz>
Copyright (C) 2005 Thomas Gelf <tho...@gelf.net>
Copyright (C) 2005 Daniel Hermann <herm...@tkm.physik.uni-karlsruhe.de
Copyright (C) 2002 Paul Sladen <vser...@paul.sladen.org>
Copyright (C) 2002 Mark Lawrence <no...@null.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
EOF
}
parse_args ()
{
while [ $# -gt 0 ] ; do
#echo "parse_args() doing :$#: :$1: :$*:"
case "$1" in
--help|-h)
full_usage
shift
exit 0
;;
--version|-V)
full_version
shift
exit 0
;;
--arch)
case "$2" in
[a-z]*)
ARCH="$2"
;;
*)
echo "${0##*/} error: $1 overrides dpkg autodetect on
non-Debian host-servers" 1>&2
echo 'e.g. "i386"' 1>&2
exit 1
;;
esac
shift 2
;;
--context)
CONTEXT=$2
shift 2
;;
--conffile)
if [ -r "$2" ] ; then
. "$2"
else
echo "Error, can not load config file $2."
exit 1
fi
shift 2
;;
--post-install-script)
if [ -r "$2" ] ; then
POST_INSTALL_SCRIPT="$2"
echo "Script $2 found."
else
echo "Error, can not locate the script $2."
exit 1
fi
shift 2
;;
--post-install-host-script)
if [ -r "$2" ] ; then
POST_INSTALL_HOST_SCRIPT="$2"
echo "Script $2 found."
else
echo "Error, can not locate the script $2."
exit 1
fi
shift 2
;;
--dist)
case "$2" in
[a-z]*)
DIST="$2"
if [ "sarge" != "$2" ] && [ "woody" != "$2" ] && [ "etch" !=
"$2" ] && [ "lenny" != "$2" ] && [ "squeeze" != "$2" ] ; then
echo "${0##*/} warning: I only know how to do \"woody\",
\"sarge\", \"etch\", \"lenny\" and \"squeeze\", be careful!" 1>&2
fi
;;
*)
echo "${0##*/} error: $1 requires a Debian distribution"
1>&2
echo 'e.g. "woody", "sarge", "etch", "lenny" or "squeeze"'
1>&2
exit 1
;;
esac
shift 2
;;
--domain)
case "$2" in
[a-z]*[a-z])
VDOMAIN="$2"
;;
*)
echo "${0##*/} error: $1 requires a dns domain-name" 1>&2
echo 'e.g. "example.com"' 1>&2
exit 1
;;
esac
shift 2
;;
--fakeinit)
# Note space at beginning--this gets tagged straight on
FAKEINIT=" fakeinit"
shift
;;
--pkgcache)
PKGCACHE=1
shift
;;
--hostname)
case "$2" in
[a-z0-9]?(*([a-z0-9_-])[a-z0-9]))
VHOST="$2"
;;
*)
echo "${0##*/} error: $1 must be a hostname for the vserver"
1>&2
echo 'e.g. "alpha"' 1>&2
exit 1
;;
esac
shift 2
;;
--interface)
case "$2" in
[a-z]*)
INTERFACE="$2"
;;
*)
echo "${0##*/} error: $1 must be followed by a network
interface" 1>&2
echo 'e.g. "eth1"' 1>&2
exit 1
;;
esac
shift 2
;;
--ip)
# This does for an octet:
([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]) ;-)
case "$2" in
[0-9]*.[0-9]*.[0-9]*.[0-9]*)
IP="$2"
;;
*)
echo "${0##*/} error: $1 requires a single IPv4 e.g.
\"192.168.100.1\"" 1>&2
exit 1
;;
esac
shift 2
;;
--mirror)
case "$2" in
[hf]*:/*)
MIRROR="$2"
;;
*)
echo "${0##*/} error: $1 requires a debian mirror" 1>&2
echo 'e.g. "http://ftp.uk.debian.org/debian"' 1>&2
exit 1
;;
esac
shift 2
;;
--verbose|-v)
export verbose="true"
shift
;;
--sshkeys)
if [ -f "$2" ]; then
SSH_KEYS="$2"
else
echo "${0##*/} error: $1 must be followed by a valid
public-key-file!" 1>&2
echo 'e.g. "/root/.ssh/id_dsa.pub"' 1>&2
exit 1
fi
shift 2
;;
--vsroot)
case "$2" in
/*)
if [ -d "$2" ]; then
VROOTDIR="$2"
else
echo "${0##*/} error: $1 needs a valid absolute
directory" 1>&2
echo 'e.g. "/vservers"' 1>&2
exit 1
fi
;;
*)
echo "${0##*/} error: $1 needs a valid absolute directory"
1>&2
echo 'e.g. "/vservers"' 1>&2
exit 1
;;
esac
shift 2
;;
-*)
usage
exit 1
;;
?*)
usage
exit 1
;;
esac
done
}
parse_args $@
+ parse_args --hostname testxx --domain mydomain.com --ip 10.255.1.192
+ '[' 6 -gt 0 ']'
+ case "$1" in
+ case "$2" in
+ VHOST=testxx
+ shift 2
+ '[' 4 -gt 0 ']'
+ case "$1" in
+ case "$2" in
+ VDOMAIN=mydomain.com
+ shift 2
+ '[' 2 -gt 0 ']'
+ case "$1" in
+ case "$2" in
+ IP=10.255.1.192
+ shift 2
+ '[' 0 -gt 0 ']'
if [ -x "$(which dig)" ] ; then
if [ -n "$IP" -a \( -z "$VHOST" -o -z "$VDOMAIN" \) ]; then
tmp=$(dig +short -x $(echo $IP | sed 's;/[0-9]*$;;'))
if [ -n "$tmp" ]; then
if [ -z "$VHOST" ]; then
VHOST=$(echo $tmp | sed 's/\..*//')
fi
if [ -z "$VDOMAIN" ]; then
VDOMAIN=$(echo $tmp | sed 's/[^.]*\.//')
fi
fi
fi
if [ -n "$VHOST" -a -n "$VDOMAIN" -a -n "$INTERFACE" -a -z "$IP" ]; then
prefix=$(ip -o addr show dev "$INTERFACE" primary scope global | \
sed -n 's;.*inet [0-9.]*/\([0-9]*\).*;\1;p')
IP="$(dig +short "$VHOST.$VDOMAIN")/$prefix"
fi
if ! [ -n "$VHOST" -a -n "$VDOMAIN" -a -n "$IP" ]; then
echo "${0##*/} error: --hostname, --domain and --ip are required" 1>&2
usage
exit 1
fi
fi
which dig
++ which dig
+ '[' -x /usr/bin/dig ']'
+ '[' -n 10.255.1.192 -a '(' -z testxx -o -z mydomain.com ')' ']'
+ '[' -n testxx -a -n mydomain.com -a -n eth0 -a -z 10.255.1.192 ']'
+ '[' -n testxx -a -n mydomain.com -a -n 10.255.1.192 ']'
IP_ADDR=${IP%%/*}
+ IP_ADDR=10.255.1.192
# Strip final slashes off a couple of things
MIRROR="${MIRROR%/}"
+ MIRROR=http://debian.mydomain.com:3142/debian
MIRROR_NON_US="${MIRROR_NON_US%/}"
+ MIRROR_NON_US=http://non-us.debian.org/debian-non-US
MIRROR_SECURITY="${MIRROR_SECURITY%/}"
+ MIRROR_SECURITY=http://security.debian.org
VROOTDIR="${VROOTDIR%/}"
+ VROOTDIR=/etc/vservers/.defaults/vdirbase
##############################################################################
# Arch specific issues
# Dist specific issues
##############################################################################
if ! cat /proc/self/status | grep '^\(VxID:[^0-9]0\|s_context:[^0-9]0\)$';
then
echo "${0##*/} error:"
echo " Must be run from the host server (security context 0)" 1>&2
echo ' on a "vserver/ctx-patch" enabled kernel' 1>&2
echo ' See: http://www.solucorp.qc.ca/miscprj/s_context.hc' 1>&2
exit 1
fi
+ cat /proc/self/status
+ grep '^\(VxID:[^0-9]0\|s_context:[^0-9]0\)$'
VxID: 0
if [ -x /usr/bin/id ] && [ `id -u` -ne 0 ]; then
echo "${0##*/} error: Must be run as root!" 1>&2
exit 1
fi
+ '[' -x /usr/bin/id ']'
id -u
++ id -u
+ '[' 0 -ne 0 ']'
aptcleanup() {
apt-get autoclean -o Dir::Cache::Archives="$1"
OLD=""
for P in $(find "$1" -mindepth 1 -maxdepth 1 -name *.deb -printf "%f\n"
| sed -e "s/_.*//;") ; do
if [ "$P" == "$OLD" ] ; then
rm -f "$1"/$P_* > /dev/null 2>&1
fi
OLD=$P
done
}
# This is used to keep a cache of the downloaded .deb packges for next
install
if [ -d "$VROOTDIR/ARCHIVES/$DIST" ] && [ $PKGCACHE -eq 1 ] ; then
mkdir -p "$VROOTDIR/$VHOST/var/cache/apt/archives"
if [ ! -d "$VROOTDIR/ARCHIVES/$DIST/partial" ] ; then
# Needed to make apt-get autoclean work fine.
mkdir "$VROOTDIR/ARCHIVES/$DIST/partial"
fi
echo "Clean package cache."
aptcleanup "$VROOTDIR/ARCHIVES/$DIST"
cp -a "$VROOTDIR/ARCHIVES/$DIST/"*.deb
"$VROOTDIR/$VHOST/var/cache/apt/archives" > /dev/null 2>&1
fi
+ '[' -d /etc/vservers/.defaults/vdirbase/ARCHIVES/lenny ']'
# We only want to pass the Architecture if we need to (autodectected
otherwise)
if [ -n "$ARCH" ]; then
ARCH_ARGUMENT="--arch $ARCH"
fi
+ '[' -n '' ']'
# Function to optionally set a context id.
CONTEXT_ARGUMENT=
+ CONTEXT_ARGUMENT=
if [ -n "$CONTEXT" ] ; then
CONTEXT_ARGUMENT="--context $CONTEXT"
fi
+ '[' -n '' ']'
## use "vserver ... build" to build the new vserver
if [ -n "$INSTALL_PACKAGES" ] && [ -n "$REMOVE_PACKAGES" ] ; then
if ! /usr/sbin/vserver "$VHOST" build -m debootstrap \
--rootdir "$VROOTDIR" --hostname "$VHOST" \
--interface "$INTERFACE:$IP" \
$CONTEXT_ARGUMENT \
-- -d "$DIST" -m "$MIRROR" \
-- $ARCH_ARGUMENT \
--include="$INSTALL_PACKAGES" --exclude="$REMOVE_PACKAGES" ; then
echo "${0##*/}: error: vserver-build failure. Cannot continue."
exit 1
fi
elif [ -n "$INSTALL_PACKAGES" ] && [ -z "$REMOVE_PACKAGES" ] ; then
if ! /usr/sbin/vserver "$VHOST" build -m debootstrap \
--rootdir "$VROOTDIR" --hostname "$VHOST" \
--interface "$INTERFACE:$IP" \
$CONTEXT_ARGUMENT \
-- -d "$DIST" -m "$MIRROR" \
-- $ARCH_ARGUMENT \
--include="$INSTALL_PACKAGES" ; then
echo "${0##*/}: error: vserver-build failure. Cannot continue."
exit 1
fi
elif [ -z "$INSTALL_PACKAGES" ] && [ -n "$REMOVE_PACKAGES" ] ; then
if ! /usr/sbin/vserver "$VHOST" build -m debootstrap \
--rootdir "$VROOTDIR" --hostname "$VHOST" \
--interface "$INTERFACE:$IP" \
$CONTEXT_ARGUMENT \
-- -d "$DIST" -m "$MIRROR" \
-- $ARCH_ARGUMENT \
--exclude="$REMOVE_PACKAGES" ; then
echo "${0##*/}: error: vserver-build failure. Cannot continue."
exit 1
fi
else
if ! /usr/sbin/vserver "$VHOST" build -m debootstrap \
--rootdir "$VROOTDIR" --hostname "$VHOST" \
--interface "$INTERFACE:$IP" \
$CONTEXT_ARGUMENT \
-- -d "$DIST" -m "$MIRROR" \
-- $ARCH_ARGUMENT ; then
echo "${0##*/}: error: vserver-build failure. Cannot continue."
exit 1
fi
fi
+ '[' -n ' locales' ']'
+ '[' -n
sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils
']'
+ /usr/sbin/vserver testxx build -m debootstrap --rootdir
/etc/vservers/.defaults/vdirbase --hostname testxx --interface
eth0:10.255.1.192 -- -d lenny -m http://debian.mydomain.com:3142/debian --
'--include= locales'
--exclude=sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://debian.mydomain.com:3142/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving adduser
I: Validating adduser
I: Retrieving apt-utils
I: Validating apt-utils
I: Retrieving apt
I: Validating apt
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving bsdmainutils
I: Validating bsdmainutils
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving libconsole
I: Validating libconsole
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving cpio
I: Validating cpio
I: Retrieving cron
I: Validating cron
I: Retrieving libcwidget3
I: Validating libcwidget3
I: Retrieving libsasl2-2
I: Validating libsasl2-2
I: Retrieving libdb4.6
I: Validating libdb4.6
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debconf
I: Validating debconf
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving libdevmapper1.02.1
I: Validating libdevmapper1.02.1
I: Retrieving dhcp3-client
I: Validating dhcp3-client
I: Retrieving dhcp3-common
I: Validating dhcp3-common
I: Retrieving diff
I: Validating diff
I: Retrieving dmidecode
I: Validating dmidecode
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving libblkid1
I: Validating libblkid1
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libuuid1
I: Validating libuuid1
I: Retrieving ed
I: Validating ed
I: Retrieving findutils
I: Validating findutils
I: Retrieving gcc-4.2-base
I: Validating gcc-4.2-base
I: Retrieving gcc-4.3-base
I: Validating gcc-4.3-base
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving libgdbm3
I: Validating libgdbm3
I: Retrieving libc6
I: Validating libc6
I: Retrieving locales
I: Validating locales
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving libgnutls26
I: Validating libgnutls26
I: Retrieving grep
I: Validating grep
I: Retrieving groff-base
I: Validating groff-base
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving ifupdown
I: Validating ifupdown
I: Retrieving iproute
I: Validating iproute
I: Retrieving iputils-ping
I: Validating iputils-ping
I: Retrieving logrotate
I: Validating logrotate
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving lzma
I: Validating lzma
I: Retrieving libept0
I: Validating libept0
I: Retrieving libgcrypt11
I: Validating libgcrypt11
I: Retrieving libgpg-error0
I: Validating libgpg-error0
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libselinux1
I: Validating libselinux1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libsigc++-2.0-0c2a
I: Validating libsigc++-2.0-0c2a
I: Retrieving libtasn1-3
I: Validating libtasn1-3
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving makedev
I: Validating makedev
I: Retrieving man-db
I: Validating man-db
I: Retrieving manpages
I: Validating manpages
I: Retrieving mawk
I: Validating mawk
I: Retrieving mktemp
I: Validating mktemp
I: Retrieving module-init-tools
I: Validating module-init-tools
I: Retrieving nano
I: Validating nano
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving net-tools
I: Validating net-tools
I: Retrieving netbase
I: Validating netbase
I: Retrieving netcat-traditional
I: Validating netcat-traditional
I: Retrieving libnewt0.52
I: Validating libnewt0.52
I: Retrieving whiptail
I: Validating whiptail
I: Retrieving libssl0.9.8
I: Validating libssl0.9.8
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving libpopt0
I: Validating libpopt0
I: Retrieving procps
I: Validating procps
I: Retrieving libreadline5
I: Validating libreadline5
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving rsyslog
I: Validating rsyslog
I: Retrieving sed
I: Validating sed
I: Retrieving login
I: Validating login
I: Retrieving passwd
I: Validating passwd
I: Retrieving libslang2
I: Validating libslang2
I: Retrieving initscripts
I: Validating initscripts
I: Retrieving sysv-rc
I: Validating sysv-rc
I: Retrieving sysvinit-utils
I: Validating sysvinit-utils
I: Retrieving sysvinit
I: Validating sysvinit
I: Retrieving tar
I: Validating tar
I: Retrieving tasksel-data
I: Validating tasksel-data
I: Retrieving tasksel
I: Validating tasksel
I: Retrieving libwrap0
I: Validating libwrap0
I: Retrieving tcpd
I: Validating tcpd
I: Retrieving info
I: Validating info
I: Retrieving traceroute
I: Validating traceroute
I: Retrieving tzdata
I: Validating tzdata
I: Retrieving update-inetd
I: Validating update-inetd
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving mount
I: Validating mount
I: Retrieving util-linux
I: Validating util-linux
I: Retrieving vim-common
I: Validating vim-common
I: Retrieving vim-tiny
I: Validating vim-tiny
I: Retrieving wget
I: Validating wget
I: Retrieving libxapian15
I: Validating libxapian15
I: Retrieving zlib1g
I: Validating zlib1g
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting coreutils...
I: Extracting libdb4.6...
I: Extracting debconf-i18n...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting libdevmapper1.02.1...
I: Extracting diff...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libblkid1...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting libuuid1...
I: Extracting findutils...
I: Extracting gcc-4.2-base...
I: Extracting gcc-4.3-base...
I: Extracting libgcc1...
I: Extracting libstdc++6...
I: Extracting libc6...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting lsb-base...
I: Extracting lzma...
I: Extracting liblocale-gettext-perl...
I: Extracting libselinux1...
I: Extracting libsepol1...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting makedev...
I: Extracting mawk...
I: Extracting mktemp...
I: Extracting libncurses5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting perl-base...
I: Extracting procps...
I: Extracting sed...
I: Extracting login...
I: Extracting passwd...
I: Extracting libslang2...
I: Extracting initscripts...
I: Extracting sysv-rc...
I: Extracting sysvinit-utils...
I: Extracting sysvinit...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting bsdutils...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting zlib1g...
I: Installing core packages...
I: Unpacking required packages...
Executing post install script ...
Removing any system startup links for /etc/init.d/bootlogd ...
Removing any system startup links for /etc/init.d/bootmisc.sh ...
Removing any system startup links for /etc/init.d/checkfs.sh ...
Removing any system startup links for /etc/init.d/checkroot.sh ...
Removing any system startup links for /etc/init.d/glibc.sh ...
/etc/rcS.d/S01glibc.sh
Removing any system startup links for /etc/init.d/halt ...
Removing any system startup links for /etc/init.d/hostname.sh ...
Removing any system startup links for /etc/init.d/hwclock.sh ...
Removing any system startup links for /etc/init.d/hwclockfirst.sh ...
Removing any system startup links for /etc/init.d/killprocs ...
Removing any system startup links for /etc/init.d/mountall-bootclean.sh ...
Removing any system startup links for /etc/init.d/mountall.sh ...
Removing any system startup links for /etc/init.d/mountdevsubfs.sh ...
Removing any system startup links for /etc/init.d/mountkernfs.sh ...
Removing any system startup links for /etc/init.d/mountnfs-bootclean.sh ...
Removing any system startup links for /etc/init.d/mountnfs.sh ...
Removing any system startup links for /etc/init.d/mountoverflowtmp ...
Removing any system startup links for /etc/init.d/mtab.sh ...
Removing any system startup links for /etc/init.d/procps ...
Removing any system startup links for /etc/init.d/reboot ...
Removing any system startup links for /etc/init.d/rmnologin ...
Removing any system startup links for /etc/init.d/stop-bootlogd ...
Removing any system startup links for /etc/init.d/stop-bootlogd-single ...
Removing any system startup links for /etc/init.d/umountfs ...
Removing any system startup links for /etc/init.d/umountnfs.sh ...
Removing any system startup links for /etc/init.d/umountroot ...
Removing any system startup links for /etc/init.d/urandom ...
# Create a locale.gen if needed.
if [ -n "$LANG" ] && [ "$LANG" != "C" ] ; then
if [ ! -e "$VROOTDIR/$VHOST/etc/locale.gen" ] ; then
echo $LANG $(locale charmap) > "$VROOTDIR/$VHOST/etc/locale.gen"
elif ! grep $LANG "$VROOTDIR/$VHOST/etc/locale.gen" > /dev/null ; then
echo $LANG $(locale charmap) >> "$VROOTDIR/$VHOST/etc/locale.gen"
fi
fi
+ '[' -n en_US.UTF-8 ']'
+ '[' en_US.UTF-8 '!=' C ']'
+ '[' '!' -e /etc/vservers/.defaults/vdirbase/testxx/etc/locale.gen ']'
+ grep en_US.UTF-8 /etc/vservers/.defaults/vdirbase/testxx/etc/locale.gen
# Make it so that apt and friends work
if [ "woody" == "$DIST" ] ; then
cat << EOF > "$VROOTDIR/$VHOST/etc/apt/sources.list"
deb $MIRROR/ $DIST main
deb-src $MIRROR/ $DIST main
deb $MIRROR_NON_US $DIST/non-US main
deb-src $MIRROR_NON_US $DIST/non-US main
deb $MIRROR_SECURITY $DIST/updates main
EOF
else
cat << EOF > "$VROOTDIR/$VHOST/etc/apt/sources.list"
deb $MIRROR/ $DIST main
deb-src $MIRROR/ $DIST main
deb $MIRROR_SECURITY $DIST/updates main
EOF
fi
+ '[' woody == lenny ']'
+ cat
# Fix up the available device nodes (mostly done by vserver-build above)
if cd "$VROOTDIR/$VHOST/dev"; then
if [ ! -L fd ] && [ ! -e fd ] ; then
ln -s /proc/self/fd fd
fi
if [ ! -L stderr ] && [ ! -e stderr ] ; then
ln -s fd/2 stderr
fi
if [ ! -L stdin ] && [ ! -e stdin ] ; then
ln -s fd/0 stdin
fi
if [ ! -L stdout ] && [ ! -e stdout ] ; then
ln -s fd/1 stdout
fi
fi
+ cd /etc/vservers/.defaults/vdirbase/testxx/dev
+ '[' '!' -L fd ']'
+ '[' '!' -L stderr ']'
+ '[' '!' -e stderr ']'
+ ln -s fd/2 stderr
+ '[' '!' -L stdin ']'
+ '[' '!' -e stdin ']'
+ ln -s fd/0 stdin
+ '[' '!' -L stdout ']'
+ '[' '!' -e stdout ']'
+ ln -s fd/1 stdout
# Give the new host a hostname
echo "$VHOST" > "$VROOTDIR/$VHOST/etc/hostname"
+ echo testxx
# Set up the /etc/hosts file (needed for some parts of the base-config)
cat << EOF > "$VROOTDIR/$VHOST/etc/hosts"
# /etc/hosts
127.0.0.1 localhost
$IP_ADDR $VHOST.$VDOMAIN $VHOST
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
EOF
+ cat
# grab DNS servers from the host-server for `resolv.conf'
HOST_IP=$(ip -4 -o addr show primary scope global dev "$INTERFACE" | \
awk '$3 == "inet" {split($4,i,"/"); print i[1]; exit}')
ip -4 -o addr show primary scope global dev "$INTERFACE" | awk '$3
== "inet" {split($4,i,"/"); print i[1]; exit}'
++ ip -4 -o addr show primary scope global dev eth0
++ awk '$3 == "inet" {split($4,i,"/"); print i[1]; exit}'
+ HOST_IP=192.168.10.33
(echo search $VDOMAIN;
grep '^nameserver' /etc/resolv.conf | sed "s/127.0.0.1/$HOST_IP/") \
> "$VROOTDIR/$VHOST/etc/resolv.conf"
+ echo search mydomain.com
+ grep '^nameserver' /etc/resolv.conf
+ sed s/127.0.0.1/192.168.10.33/
# If there is a proxy server statement in-use in the Host server, copy it
across
if [ -f /etc/apt/apt.conf ]; then
cp /etc/apt/apt.conf $VROOTDIR/$VHOST/etc/apt/apt.conf
fi
+ '[' -f /etc/apt/apt.conf ']'
# support the apt.conf.d directories
if [ -d /etc/apt/apt.conf.d ] ; then
cp -a /etc/apt/apt.conf.d/* $VROOTDIR/$VHOST/etc/apt/apt.conf.d/ >
/dev/null 2>&1
fi
+ '[' -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/01proxy /etc/apt/apt.conf.d/70debconf
/etc/vservers/.defaults/vdirbase/testxx/etc/apt/apt.conf.d/
# Create a dummy fstab
cat << EOF > "$VROOTDIR/$VHOST/etc/fstab"
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump>
<pass>
proc /proc proc defaults 0 0
EOF
+ cat
# Create a reduced inittab that doesn't start getty on the consoles
mv "$VROOTDIR/$VHOST/etc/inittab" "$VROOTDIR/$VHOST/etc/inittab.dist" && \
grep -v respawn\:/sbin/getty "$VROOTDIR/$VHOST/etc/inittab.dist" > \
"$VROOTDIR/$VHOST/etc/inittab" && rm -f
"$VROOTDIR/$VHOST/etc/inittab.dist"
+ mv /etc/vservers/.defaults/vdirbase/testxx/etc/inittab
/etc/vservers/.defaults/vdirbase/testxx/etc/inittab.dist
mv: cannot stat `/etc/vservers/.defaults/vdirbase/testxx/etc/inittab': No
such file or directory
# By default the Debian Install script runs zillions of cron jobs at
# 0625 every morning. On a system with lots of vservers all trying to
# scan the disk at the same time this causes $MAJOR disk-thrash. So
# we randomize it a bit so that they run evenly between 1am and 7am,
# avoiding the 5minutes either side of the hour when other stuff tends
# to be scheduled. (BTW, this solution is Overkill!)
# This looks over complicated--and it probably is...:
#
# a) We want the DAILY jobs to run between :05 and :55 minutes past
# b) We want the WEEKLY job 3-5 minutes after the DAILY.
# c) And the MONTHLY job 3-5 minutes after that.
# d) Make sure all three jobs are started by 55minutes past (five-to)
# ...if they were ever to all run on the same day!
d1=$(($RANDOM % 3 + 3)); # between 3 and 5
+ d1=3
d2=$(($RANDOM % 3 + 3)); # between 3 and 5
+ d2=4
dt=$((50 - $d1 - $d2)); # between 0 and 44
+ dt=43
DAILY=$(($RANDOM % $dt + 5)) # between 5 and 49
+ DAILY=46
WEEKLY=$(($DAILY + $d1)) # between 8 and 52
+ WEEKLY=49
MONTHLY=$(($WEEKLY + $d2)) # between 11 and 55
+ MONTHLY=53
HOUR=$(($RANDOM % 6 + 1)) # between 1 and 7 (AM localtime)
+ HOUR=2
# Create replacement /etc/crontab with randomized times above
cat << EOF > "$VROOTDIR/$VHOST/etc/crontab"
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the \`crontab\'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
$DAILY $HOUR * * * root test -e /usr/sbin/anacron || run-parts
--report /etc/cron.daily
$WEEKLY $HOUR * * 7 root test -e /usr/sbin/anacron || run-parts
--report /etc/cron.weekly
$MONTHLY $HOUR 1 * * root test -e /usr/sbin/anacron || run-parts
--report /etc/cron.monthly
EOF
+ cat
if [ -n "$EXTRA_PACKAGES" ]; then
EXTRA_PACKAGES_INSTALL="apt-get --assume-yes install
${EXTRA_PACKAGES//,/ }"
fi
+ '[' -n '' ']'
if [ -f /etc/timezone ]; then
tz=$(cat /etc/timezone)
zonefile="$VROOTDIR/$VHOST/usr/share/zoneinfo/$tz"
if [ -f "$zonefile" ]; then
echo "$tz" >$VROOTDIR/$VHOST/etc/timezone
cp "$zonefile" "$VROOTDIR/$VHOST/etc/localtime"
fi
fi
+ '[' -f /etc/timezone ']'
cat /etc/timezone
++ cat /etc/timezone
+ tz=Europe/Amsterdam
+
zonefile=/etc/vservers/.defaults/vdirbase/testxx/usr/share/zoneinfo/Europe/Amsterdam
+ '[' -f
/etc/vservers/.defaults/vdirbase/testxx/usr/share/zoneinfo/Europe/Amsterdam
']'
+ echo Europe/Amsterdam
+ cp
/etc/vservers/.defaults/vdirbase/testxx/usr/share/zoneinfo/Europe/Amsterdam
/etc/vservers/.defaults/vdirbase/testxx/etc/localtime
if [ -n "$DEBCONF_FILE_DB" ]; then
cp "$DEBCONF_FILE_DB" "$VROOTDIR/$VHOST/config.dat"
SET_DEBCONF_OVERRIDE='export DEBCONF_DB_OVERRIDE="File{/config.dat}"'
fi
+ '[' -n '' ']'
# ------------------------------------------------------------
# From here on we do things live in the server
# Generate the script that runs the rest of the setup from within the
# virtual server.
cat << EOF > "$VROOTDIR/$VHOST/vserver-config.sh"
#!/bin/sh
$SET_DEBCONF_OVERRIDE
[ -x /usr/sbin/locale-gen ] && /usr/sbin/locale-gen
apt-get update
if [ ! -f /etc/timezone ]; then
# tzsetup was part of base-config which is gone since etch
# tzconfig is part of libc, so it should be ubiquitious
if [ -x /usr/sbin/tzsetup ]; then
/usr/sbin/tzsetup -y
elif [ -x /usr/sbin/tzconfig ]; then
/usr/sbin/tzconfig
fi
fi
dpkg-reconfigure -u passwd
tasksel
if [ "$DIST" == "woody" ]; then
rm -f /etc/exim/exim.conf
eximconfig
fi
# because the --exclude flag doesn\'t seem to work on debootstrap
dpkg -P `echo $REMOVE_PACKAGES | sed -e 's/,/ /g'`
for link in $REMOVE_LINKS
do
update-rc.d -f \$link remove
update-rc.d -f \$link stop 90 3 .
done
$EXTRA_PACKAGES_INSTALL
EOF
+ cat
echo $REMOVE_PACKAGES | sed -e 's/,/ /g'
++ sed -e 's/,/ /g'
++ echo
sparc-utils,dhcp-client,lilo,makedev,pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,setserial,syslinux,fdutils,libpcap0,iptables,pciutils
# Run the post-installation script from outside the server
if [ -n "$POST_INSTALL_HOST_SCRIPT" ]; then
"$POST_INSTALL_HOST_SCRIPT"
fi
+ '[' -n '' ']'
## start vserver before we can exec anything inside it
vserver $VHOST start
+ vserver testxx start
/etc/init.d/rc: line 74: /etc/default/rcS: No such file or directory
error: '/etc/init.d/rc' exited outside the expected code flow.
An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/etc/init.d/rc 3) 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 'testxx'
# Run the above commands from within the server
chmod 755 $VROOTDIR/$VHOST/vserver-config.sh
+ chmod 755 /etc/vservers/.defaults/vdirbase/testxx/vserver-config.sh
vserver $VHOST exec /vserver-config.sh
+ vserver testxx exec /vserver-config.sh
'vserver ... suexec' is supported for running vservers only; aborting...
rm -f $VROOTDIR/$VHOST/vserver-config.sh
+ rm -f /etc/vservers/.defaults/vdirbase/testxx/vserver-config.sh
rm -f "$VROOTDIR/$VHOST/config.dat"
+ rm -f /etc/vservers/.defaults/vdirbase/testxx/config.dat
rm -f "$VROOTDIR/$VHOST/config.dat-old"
+ rm -f /etc/vservers/.defaults/vdirbase/testxx/config.dat-old
# Run the post-installation script from within the server
if [ -n "$POST_INSTALL_SCRIPT" ]; then
cp "$POST_INSTALL_SCRIPT" $VROOTDIR/$VHOST/post_install_script
chmod 755 $VROOTDIR/$VHOST/post_install_script
vserver $VHOST exec /post_install_script
rm -f $VROOTDIR/$VHOST/post_install_script
fi
+ '[' -n '' ']'
# If you need to install your SSH management keys into the vserver
if [ -f "$SSH_KEYS" ]; then
mkdir -p "$VROOTDIR/$VHOST/root/.ssh"
chmod 700 "$VROOTDIR/$VHOST/root/.ssh/"
cat "$SSH_KEYS" >> "$VROOTDIR/$VHOST/root/.ssh/authorized_keys"
chmod 600 "$VROOTDIR/$VHOST/root/.ssh/authorized_keys"
fi
+ '[' -f '' ']'
## stop the vserver
vserver $VHOST stop
+ vserver testxx stop
vserver 'testxx' is not running
# Populate the archive for future virtual servers
if [ $PKGCACHE -eq 1 ] ; then
if [ ! -d "$VROOTDIR/ARCHIVES/$DIST/partial" ] ; then
mkdir -p "$VROOTDIR/ARCHIVES/$DIST/partial"
fi
cp "$VROOTDIR/$VHOST/"var/cache/apt/archives/*.deb
"$VROOTDIR/ARCHIVES/$DIST"
echo "Cleanup package cache."
aptcleanup "$VROOTDIR/ARCHIVES/$DIST"
fi
+ '[' 0 -eq 1 ']'
echo
+ echo
echo "You should now adjust the configuration in /etc/vservers/$VHOST/"
+ echo 'You should now adjust the configuration in /etc/vservers/testxx/'
You should now adjust the configuration in /etc/vservers/testxx/
echo "to suit your needs,"
+ echo 'to suit your needs,'
to suit your needs,
echo "or else just go ahead and type \`vserver $VHOST start' to start"
+ echo 'or else just go ahead and type `vserver testxx start'\'' to start'
or else just go ahead and type `vserver testxx start' to start
echo "your new virtual server. debian/rules!"
+ echo 'your new virtual server. debian/rules!'
your new virtual server. debian/rules!
echo
+ echo
Jorge E. Espada
On Thu, Sep 9, 2010 at 1:45 AM, Ola Lundqvist <o...@inguza.com> wrote:
Hi Jorge
I do not know if I solved all your problems but at least the first.
Please try the attached newvserver.sh script to see if that one solves
your problems.
Best regards,
// Ola
On Wed, Sep 08, 2010 at 06:18:58PM -0300, jorge espada wrote:
> Sorry...my fault, I already sent it, and thank you for your kindness
> and support
>
> regards
> Jorge E. Espada
> Phone: +54 9 341 5692435
> On Wed, Sep 8, 2010 at 5:45 PM, Ola Lundqvist <[1]...@inguza.com>
> wrote:
>
> Hi Jorge
>
> On Wed, Sep 08, 2010 at 05:27:47PM -0300, jorge espada wrote:
> > Package: vserver-debiantools
> >
> > Version: 0.6.3
> >
> > Package:util-vserver
> >
> > Version: 0.30.216~r2772-6
> >
> > I'm trying to start a vserver after create it and I got this
> error:
> >
>
> > # newvserver --hostname test71 --domain [1][2]mydomain.com--ip
>
> > 10.255.1.192 --interface eth0 --dist lenny
> >
> > .....
> >
> > .....
>
> It was those .... lines that I was interested in. Please provide the
> full log.
> Submit it to the bug number you have created. You should have a bug
> id quite
> soon.
> Best regards,
> // Ola
>
> > ... Removing any system startup links for /etc/init.d/urandom
...
> > ln: creating symbolic link `fd': File exists
> > mv: cannot stat
> `/etc/vservers/.defaults/vdirbase/test71/etc/inittab':
> > No such file or directory
> > /etc/init.d/rc: line 74: /etc/default/rcS: No such file or
> directory
> > error: '/etc/init.d/rc' exited outside the expected code flow.
> > An error occured while executing the vserver startup sequence;
> when
> > there are no other messages, it is very likely that the
> init-script
> > (/etc/init.d/rc 3) 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 'test71'
> > 'vserver ... suexec' is supported for running vservers only;
> > aborting...
> > vserver 'test71' is not running
> > You should now adjust the configuration in /etc/vservers/test71/
> > to suit your needs,
> > or else just go ahead and type `vserver test71 start' to start
> > your new virtual server. debian/rules!
> > Y really don't know how to sort this problem, a try a lot of
> thing..all
> > of them successfulness
> > I'm running Debian lenny:
> > Linux pb08 2.6.26-2-vserver-amd64 #1 SMP Sun Jun 20 20:40:33 UTC
> 2010
> > x86_64 GNU/Linux and libc6 2.7-18lenny4
> > # uname -a ; dpkg -l | grep vserver
> > Linux pb08 2.6.26-2-vserver-amd64 #1 SMP Sun Jun 20 20:40:33 UTC
> 2010
> > x86_64 GNU/Linux
> > ii linux-image-2.6.26-2-vserver-amd64 2.6.26-25
> > Linux 2.6.26 image on AMD64, Linux-VServer s
> > ii util-vserver 0.30.216~r2772-6
> > user-space tools for Linux-VServer virtual p
> > ii vserver-debiantools 0.6.3
> > Tools to manage debian virtual servers
> > Thanks
> >
> > I think that the problem is the newvserver script
> >
> >
> >
> > Jorge E. Espada
> >
>
> > Referenser
> >
> > 1. [3]http://mydomain.com/
> --
> --- Inguza Technology AB --- MSc in Information Technology ----
> / [4]...@inguza.com Annebergsslingan 37
\
> | [5]o...@debian.org 654 65 KARLSTAD
|
> | [6]http://inguza.com/ Mobile: +46 (0)70-332 1551
|
> \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
> ---------------------------------------------------------------
>
> Referenser
>
> 1. mailto:o...@inguza.com
> 2. http://mydomain.com/
> 3. http://mydomain.com/
> 4. mailto:o...@inguza.com
> 5. mailto:o...@debian.org
> 6. http://inguza.com/
--
--- Inguza Technology AB --- MSc in Information Technology ----
/ o...@inguza.com Annebergsslingan 37 \
| o...@debian.org 654 65 KARLSTAD |
| http://inguza.com/ Mobile: +46 (0)70-332 1551 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------