Subject: Re: [vserver] I can't start my VServer
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Thu, 15 Oct 2009 03:22:59 +0200

On Wed, Oct 14, 2009 at 06:29:24PM -0400, Mingliang Ma wrote:
> Hi,

> I installed the Linux-Vserver on a Fedora Core 9 operation system. 
> Every time I tired to start the vserver i get this error:

> [root@pc2 sbin]# vserver vserverpc2 start
> capget(): Invalid argument
> capabilities are not enabled in kernel-setup

did you build the kernel yourself?

> Failed to start vserver 'vserverpc2'

> I have tried both version, util-vserver 0.30.214 and 0.30.215 
> and no one works.

> Here's how I created a vserver:
> 
> 1) # vserver myvserver build -m skeleton --hostname myvserver
> 2) copied the fc9 filesystem into /vservers/myvserver/

you should at least clean up the guest to make it
secure, or better use one of the network based
install methods described here:

http://linux-vserver.org/Building_Guest_Systems

> 3) # /etc/init.d/vprocunhide start

that should happen on host boot ... once :)

> 4) # vserver myvserver start

> then I get the error that was mentioned above. 
> Thank you in advance if someone can help me

please run the testme.sh script on the host, and provide
the output for further analysis ...

http://vserver.13thfloor.at/Stuff/SCRIPT/testme.sh

TIA,
Herbert

> below is some info about my system:

> [root@pc2 image]# vserver-info
> Versions:
>                    Kernel: 2.6.22.19-vs2.2.0.7
>                    VS-API: 0x00020200
>              util-vserver: 0.30.214; Oct 14 2009, 06:26:43
> 
> Features:
>                CC: gcc, gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
>                       CXX: g++, g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
>                  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
> 
> 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
> 
> 
> Ming