Re: [vserver] Cannot boots up a vserver with CentOS5

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 24 Jun 2009 - 18:04:24 BST
Message-ID: <20090624170424.GN8631@MAIL.13thfloor.at>

On Mon, Jun 22, 2009 at 11:06:15AM -0400, Mingliang Ma wrote:
> Hi
>
> I'm trying to bring up a vserver with CentOS 5, and the OS i'm using is
> Fedora 8. the installation of Linux-VServer was successful. and I can bring
> up a vserver with fedora 8. However, after i created a vserver with CentOS
> 5, i tried to start the vserver (vserver myvserver start) there was no
> response. and its status is " vserver myvserver is stopped". can someone
> help solve this problem? I am very appreciated!

make sure that your guest has a service enabled which
keeps running after startup, because otherwise the
context will be disposed when the last process exits

HTH,
Herbert

> Ming
>
> the following describes my system info:
>
> [root@localhost init.d]# vserver-info - SYSINFO
> Versions:
> Kernel: 2.6.22.19-vs2.2.0.7
> VS-API: 0x00020200
> util-vserver: 0.30.215; Jun 18 2009, 13:57:45
>
> Features:
> CC: gcc, gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
> CXX: g++, g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
> CPPFLAGS: ''
> CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
> -funit-at-a-time'
> CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
> -fmessage-length=0 -funit-at-a-time'
> build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
> Use dietlibc: yes
> Build C++ programs: yes
> Build C99 programs: yes
> Available APIs: v13,net,v21,v22,v23,netv2
> ext2fs Source: e2fsprogs
> syscall(2) invocation: alternative
> vserver(2) syscall#: 273/glibc
> crypto api: none
>
> Paths:
> prefix: /usr/local
> sysconf-Directory: ${prefix}/etc
> cfg-Directory: ${prefix}/etc/vservers
> initrd-Directory: $(sysconfdir)/init.d
> pkgstate-Directory: ${prefix}/var/run/vservers
> vserver-Rootdir: /vservers
>
>
> [root@localhost mirroring]# uname -a
> Linux localhost.localdomain 2.6.22.19-vs2.2.0.7 #1 SMP Mon Jun 15 15:21:03
> EDT 2009 i686 i686 i386 GNU/Linux
>
>
> the following steps describes what i did to bring up a vserver with centos5
>
> [root@localhost ~]# vserver centosvserver2 build --context 42 --netdev eth0
> --interface 192.168.0.250 --hostname metuser -m yum -- -d centos5
>
> You are using a version of yum which is insecure and broken in chroot
> related operations; either apply the patches shipped in the 'contrib/'
> directory of util-vserver, or ask the author of yum to apply them
> (preferred).
>
> In the meantime, 'vyum' will continue with dirty hacks which might not
> work when the vserver is running and local DOS attacks are possible.
>
> Execution will continue in 5 seconds...
>
> ==================================================================================================================
> Package Arch
> Version Repository Size
> ==================================================================================================================
> Installing:
> glibc i686
> 2.5-34 base 5.2 M
> Installing for dependencies:
> basesystem noarch
> 8.0-5.1.1.el5.centos base 2.8 k
> filesystem i386
> 2.4.0-2.el5.centos base 116 k
> glibc-common i386
> 2.5-34 base 16 M
> libgcc i386
> 4.1.2-44.el5 base 94 k
> setup noarch
> 2.5.58-4.el5 base 124 k
> tzdata noarch
> 2009i-2.el5 updates 783 k
>
> Transaction Summary
> ==================================================================================================================
> Install 7 Package(s)
> Update 0 Package(s)
> Remove 0 Package(s)
>
> Total download size: 23 M
> warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
> Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <
> centos-5-key@centos.org>" from
> http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>
> Installed:
> glibc.i686
> 0:2.5-34
>
>
> Dependency Installed:
> basesystem.noarch 0:8.0-5.1.1.el5.centos filesystem.i386
> 0:2.4.0-2.el5.centos glibc-common.i386 0:2.5-34
> libgcc.i386 0:4.1.2-44.el5 setup.noarch
> 0:2.5.58-4.el5 tzdata.noarch 0:2009i-2.el5
>
> You are using a version of yum which is insecure and broken in chroot
> related operations; either apply the patches shipped in the 'contrib/'
> directory of util-vserver, or ask the author of yum to apply them
> (preferred).
>
> In the meantime, 'vyum' will continue with dirty hacks which might not
> work when the vserver is running and local DOS attacks are possible.
>
> Execution will continue in 5 seconds...
> Package filesystem-2.4.0-2.el5.centos.i386 already installed and latest
> version
> You are using a version of yum which is insecure and broken in chroot
> related operations; either apply the patches shipped in the 'contrib/'
> directory of util-vserver, or ask the author of yum to apply them
> (preferred).
>
> In the meantime, 'vyum' will continue with dirty hacks which might not
> work when the vserver is running and local DOS attacks are possible.
>
> Execution will continue in 5 seconds...
> Package setup-2.5.58-4.el5.noarch already installed and latest version
>
> ==================================================================================================================
> Package Arch
> Version Repository Size
> ==================================================================================================================
> Installing:
> coreutils i386
> 5.97-19.el5 base 3.6 M
> Installing for dependencies:
> MAKEDEV i386
> 3.23-1.2 base 135 k
> SysVinit i386
> 2.86-15.el5 base 112 k
> audit-libs i386
> 1.7.7-6.el5_3.3 updates 77 k
> bash i386
> 3.2-24.el5 base 1.8 M
> bzip2-libs i386
> 1.0.3-4.el5_2 base 37 k
> centos-release i386
> 10:5-3.el5.centos.1 base 19 k
> centos-release-notes i386
> 5.3-3 base 39 k
> chkconfig i386
> 1.3.30.1-2 base 159 k
> cracklib i386
> 2.8.9-3.3 base 58 k
> cracklib-dicts i386
> 2.8.9-3.3 base 3.3 M
> db4 i386
> 4.3.29-9.fc6 base 917 k
> device-mapper i386
> 1.02.28-2.el5 base 656 k
> e2fsprogs i386
> 1.39-20.el5 base 967 k
> e2fsprogs-libs i386
> 1.39-20.el5 base 118 k
> ethtool i386
> 6-2.el5 base 65 k
> findutils i386
> 1:4.2.27-5.el5 base 294 k
> gawk i386
> 3.1.5-14.el5 base 1.7 M
> gdbm i386
> 1.8.0-26.2.1 base 27 k
> glib2 i386
> 2.12.3-4.el5_3.1 updates 674 k
> grep i386
> 2.5.1-54.2.el5 base 174 k
> info i386
> 4.8-14.el5 base 172 k
> initscripts i386
> 8.45.25-1.el5.centos base 1.6 M
> iproute i386
> 2.6.18-9.el5 base 812 k
> iputils i386
> 20020927-45.el5 base 125 k
> keyutils-libs i386
> 1.2-1.el5 base 18 k
> krb5-libs i386
> 1.6.1-31.el5_3.3 updates 660 k
> libacl i386
> 2.2.39-3.el5 base 19 k
> libattr i386
> 2.4.32-1.1 base 12 k
> libcap i386
> 1.10-26 base 22 k
> libselinux i386
> 1.33.4-5.1.el5 base 76 k
> libsepol i386
> 1.15.2-1.el5 base 129 k
> libstdc++ i386
> 4.1.2-44.el5 base 363 k
> libtermcap i386
> 2.0.8-46.1 base 14 k
> logrotate i386
> 3.7.4-9 base 39 k
> mcstrans i386
> 0.2.11-3.el5 base 17 k
> mingetty i386
> 1.07-5.2.2 base 19 k
> mktemp i386
> 3:1.5-23.2.2 base 14 k
> module-init-tools i386
> 3.3-0.pre3.1.42.el5 base 416 k
> ncurses i386
> 5.5-24.20060715 base 1.1 M
> net-tools i386
> 1.60-78.el5 base 360 k
> openssl i686
> 0.9.8e-7.el5 base 1.4 M
> pam i386
> 0.99.6.2-4.el5 base 965 k
> pcre i386
> 6.6-2.el5_1.7 base 112 k
> popt i386
> 1.10.2.3-9.el5 base 73 k
> procps i386
> 3.2.7-11.1.el5 base 209 k
> psmisc i386
> 22.2-6 base 61 k
> python i386
> 2.4.3-24.el5 base 5.9 M
> readline i386
> 5.1-1.1 base 223 k
> rsyslog i386
> 2.0.6-1.el5 base 198 k
> sed i386
> 4.1.5-5.fc6 base 174 k
> shadow-utils i386
> 2:4.0.17-14.el5 base 1.0 M
> termcap noarch
> 1:5.5-1.20060701.1 base 265 k
> udev i386
> 095-14.20.el5_3 updates 2.3 M
> util-linux i386
> 2.13-0.50.el5 base 1.8 M
> zlib i386
> 1.2.3-3 base 50 k
>
> Transaction Summary
> ==================================================================================================================
> Install 56 Package(s)
> Update 0 Package(s)
> Remove 0 Package(s)
>
> Total download size: 36 M
>
> Installed:
> coreutils.i386
> 0:5.97-19.el5
>
>
> Dependency Installed:
> MAKEDEV.i386 0:3.23-1.2 SysVinit.i386
> 0:2.86-15.el5
> audit-libs.i386 0:1.7.7-6.el5_3.3 bash.i386
> 0:3.2-24.el5
> bzip2-libs.i386 0:1.0.3-4.el5_2 centos-release.i386
> 10:5-3.el5.centos.1
> centos-release-notes.i386 0:5.3-3 chkconfig.i386
> 0:1.3.30.1-2
> cracklib.i386 0:2.8.9-3.3 cracklib-dicts.i386
> 0:2.8.9-3.3
> db4.i386 0:4.3.29-9.fc6 device-mapper.i386
> 0:1.02.28-2.el5
> e2fsprogs.i386 0:1.39-20.el5 e2fsprogs-libs.i386
> 0:1.39-20.el5
> ethtool.i386 0:6-2.el5 findutils.i386
> 1:4.2.27-5.el5
> gawk.i386 0:3.1.5-14.el5 gdbm.i386
> 0:1.8.0-26.2.1
> glib2.i386 0:2.12.3-4.el5_3.1 grep.i386
> 0:2.5.1-54.2.el5
> info.i386 0:4.8-14.el5 initscripts.i386
> 0:8.45.25-1.el5.centos
> iproute.i386 0:2.6.18-9.el5 iputils.i386
> 0:20020927-45.el5
> keyutils-libs.i386 0:1.2-1.el5 krb5-libs.i386
> 0:1.6.1-31.el5_3.3
> libacl.i386 0:2.2.39-3.el5 libattr.i386
> 0:2.4.32-1.1
> libcap.i386 0:1.10-26 libselinux.i386
> 0:1.33.4-5.1.el5
> libsepol.i386 0:1.15.2-1.el5 libstdc++.i386
> 0:4.1.2-44.el5
> libtermcap.i386 0:2.0.8-46.1 logrotate.i386
> 0:3.7.4-9
> mcstrans.i386 0:0.2.11-3.el5 mingetty.i386
> 0:1.07-5.2.2
> mktemp.i386 3:1.5-23.2.2 module-init-tools.i386
> 0:3.3-0.pre3.1.42.el5
> ncurses.i386 0:5.5-24.20060715 net-tools.i386
> 0:1.60-78.el5
> openssl.i686 0:0.9.8e-7.el5 pam.i386
> 0:0.99.6.2-4.el5
> pcre.i386 0:6.6-2.el5_1.7 popt.i386
> 0:1.10.2.3-9.el5
> procps.i386 0:3.2.7-11.1.el5 psmisc.i386
> 0:22.2-6
> python.i386 0:2.4.3-24.el5 readline.i386
> 0:5.1-1.1
> rsyslog.i386 0:2.0.6-1.el5 sed.i386
> 0:4.1.5-5.fc6
> shadow-utils.i386 2:4.0.17-14.el5 termcap.noarch
> 1:5.5-1.20060701.1
> udev.i386 0:095-14.20.el5_3 util-linux.i386
> 0:2.13-0.50.el5
> zlib.i386 0:1.2.3-3
>
> You are using a version of yum which is insecure and broken in chroot
> related operations; either apply the patches shipped in the 'contrib/'
> directory of util-vserver, or ask the author of yum to apply them
> (preferred).
>
> In the meantime, 'vyum' will continue with dirty hacks which might not
> work when the vserver is running and local DOS attacks are possible.
>
> Execution will continue in 5 seconds...
> [root@localhost ~]# vserver centosvserver2 start
> [root@localhost ~]# vserver centosvserver2 enter
> 'vserver ... suexec' is supported for running vservers only; aborting...
> [root@localhost ~]# vserver centosvserver2 status
> Vserver 'centosvserver2' is stopped
Received on Wed Jun 24 18:04:45 2009

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 24 Jun 2009 - 18:04:47 BST by hypermail 2.1.8