I'm running a number of Debian guest vservers on 2.6.13-vs2.0.1-pre2-686 Debian host. It's version util-vserver-0.30.209, I think. Below informal cut & paste illustrates some of the gotchas I ran into (ignore v64 suddenly becoming v65, that's just a slip of the mouse). The process is probably pretty moronic, so I welcome any comments on how to improve it. In closing, a big thanks to all vserver developers out there.
mkdir /home/vservers ln -s /home/vservers /vservers vserver v64 build -n v64 --hostname v64.ativel.com --interface eth0:85.10.225.64/24 -m debootstrap -- -d sarge Could not find local version of 'debootstrap'; downloading it from http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_0.3.1.4_all.deb... http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_0.3.1.4_all.deb: 13:26:26 ERROR 404: Not Found. ERROR: Could not download the debootstrap package from /var/tmp/debootstrap.rIhMnS/debootstrap.deb Usually, this means that Debian released a new version which is unknown to util-vserver and removed the known ones. To fix this, go to http://ftp.debian.org/debian/pool/main/d/debootstrap/ (or a nearby mirror) and search the URL for the most recent *.deb package matching your platform. Then, put this URL into /usr/local/etc/vservers/.defaults/apps/debootstrap/uri and retry the vserver-build command again. rm -rf /usr/local/etc/vservers/.defaults/vdirbase/v64 /usr/local/etc/vservers/v64 # apt-get install debootstrap Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: debootstrap 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Need to get 72.2kB of archives. After unpacking 193kB of additional disk space will be used. Get:1 ftp://ftp.de.debian.org stable/main debootstrap 0.2.45-0.2 [72.2kB] Fetched 72.2kB in 0s (123kB/s) Selecting previously deselected package debootstrap. (Reading database ... 27896 files and directories currently installed.) Unpacking debootstrap (from .../debootstrap_0.2.45-0.2_i386.deb) ... Setting up debootstrap (0.2.45-0.2) ... helium:/home/eugen# vserver v64 build -n v64 --hostname v64.ativel.com --interface eth0:85.10.225.64/24 -m debootstrap -- -d sarge vserver-topdirectory '/usr/local/etc/vservers/.defaults/vdirbase/v64' and/or configuration at '/usr/local/etc/vservers/v64' exist already; please try to use '--force', or remove them manually rm -rf helium:/home/eugen# rm -rf /usr/local/etc/vservers/.defaults/vdirbase/v64 helium:/home/eugen# rm -rf /usr/local/etc/vservers/v64 vserver v64 build -n v64 --hostname v64.ativel.com --interface eth0:85.10.225.64/24 -m debootstrap -- -d sarge helium:/home/eugen# ls -la /vservers/v64/ total 20 drwxr-xr-x 20 root root 4096 2006-01-08 13:34 . drwxr-sr-x 3 root staff 16 2006-01-08 13:28 .. drwxr-xr-x 2 root root 4096 2006-01-08 13:34 bin drwxr-xr-x 2 root root 6 2004-12-15 23:55 boot drwxr-sr-x 3 root staff 97 2006-01-08 13:28 dev drwxr-xr-x 37 root root 4096 2006-01-08 13:34 etc drwxrwsr-x 2 root staff 6 2004-12-15 23:55 home drwxr-xr-x 2 root root 6 2006-01-08 13:33 initrd drwxr-xr-x 7 root root 4096 2006-01-08 13:34 lib drwxr-xr-x 2 root root 6 2006-01-08 13:33 media drwxr-xr-x 2 root root 6 2004-12-15 23:55 mnt drwxr-xr-x 2 root root 6 2006-01-08 13:33 opt drwxr-xr-x 2 root root 6 2004-12-15 23:55 proc drwxr-xr-x 2 root root 35 2006-01-08 13:33 root drwxr-xr-x 2 root root 4096 2006-01-08 13:34 sbin drwxr-xr-x 2 root root 6 2006-01-08 13:33 srv drwxr-xr-x 2 root root 6 2005-05-10 22:01 sys drwxrwxrwt 2 root root 6 2006-01-08 13:34 tmp drwxr-xr-x 11 root root 118 2006-01-08 13:33 usr drwxr-xr-x 13 root root 128 2006-01-08 13:33 var lithium:/home/eugen# vserver v65 start The following problem(s) were encountered while verifying vshelper functionality: * The configured vshelper '/sbin/vshelper' does not match the 'vshelper' script of the util-vserver package To fix this, you can: * disable vshelper entirely by executing | touch "/usr/local/etc/vservers/.defaults/apps/vshelper/disabled" * disable only this message by executing | touch "/usr/local/etc/vservers/.defaults/apps/vshelper/warning-disabled" * configure the util-vserver vshelper script, e.g. by adding | kernel.vshelper = /usr/local/lib/util-vserver/vshelper to /etc/sysctl.conf and rebooting the machine, or by executing | echo "/usr/local/lib/util-vserver/vshelper" >/proc/sys/kernel/vshelper # vi /etc/sysctl.conf # reboot lithium:/home/eugen# vserver v65 start /proc/uptime can not be accessed. Usually, this is caused by procfs-security. Please read the FAQ for more details http://www.linux-vserver.org/index.php?page=Linux-Vserver+FAQ Failed to start vserver 'v65' lithium:/home/eugen# /usr/local/etc/init.d/vprocunhide start Fixing /proc entries visibility.... lithium:/home/eugen# vserver v65 start Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Starting MTA: exim4. Starting internet superserver: inetd. Starting deferred execution scheduler: atd. Starting periodic command scheduler: cron. lithium:/home/eugen# vserver-stat CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME 0 46 82M 24.8M 0m11s28 0m03s67 13m39s38 root server 49152 4 6.6M 2.3M 0m00s00 0m00s00 10m12s20 v65 lithium:/home/eugen# vserver v65 enter mesg: /dev/pts/0: Operation not permitted v65:/# apt-setup v65:/# apt-get upgrade Reading Package Lists... Done Building Dependency Tree... Done The following packages have been kept back: apt apt-utils aptitude at base-config console-common cron dselect exim4 exim4-base exim4-daemon-light groff-base initscripts libgnutls11 libnewt0.51 libpam-modules logrotate nano netbase ppp sysvinit tasksel telnet util-linux wget whiptail The following packages will be upgraded: adduser base-files base-passwd bash bsdmainutils bsdutils console-data console-tools coreutils cpio debconf debconf-i18n debianutils dhcp-client dpkg e2fslibs e2fsprogs exim4-config fdutils findutils gcc-3.3-base gettext-base grep gzip hostname info ipchains iptables iputils-ping libacl1 libattr1 libblkid1 libc6 libcomerr2 libconsole libdb1-compat libdb3 libdb4.2 libgcc1 libgcrypt11 libgpg-error0 liblocale-gettext-perl liblockfile1 liblzo1 libncurses5 libopencdk8 libpam-runtime libpam0g libpcre3 libss2 libssl0.9.7 libstdc++5 libtasn1-2 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtextwrap1 libuuid1 login mailx makedev man-db manpages modutils mount ncurses-base ncurses-bin net-tools netkit-inetd passwd pciutils perl-base pppconfig pppoeconf procps psmisc sysv-rc tar zlib1g 79 upgraded, 0 newly installed, 0 to remove and 26 not upgraded. Need to get 25.9MB of archives. After unpacking 3438kB of additional disk space will be used. Do you want to continue? [Y/n] ... perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory v65:/# perl: warning: Falling back to the standard locale ("C"). chage: the shadow password file is not present chage failed with return code 15, shadow not enabled, password aging cannot be set. Continuing. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_DE:en_US:en_GB:en", LC_ALL = (unset), LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Restarting OpenBSD Secure Shell server: sshd. Setting up ssh (4.2p1-5) ... # apt-get install locales # vi /etc/locale.gen # locale-gen -- Eugen* Leitl <a href="http://leitl.org">leitl</a> http://leitl.org ______________________________________________________________ ICBM: 48.07100, 11.36820 http://www.ativel.com 8B29F6BE: 099D 78BA 2FD3 B014 B08A 7779 75B0 2443 8B29 F6BE
signature.asc
Description: Digital signature
_______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver