From: Nuno Silva (nuno.silva_at_vgertech.com)
Date: Mon 29 Sep 2003 - 04:59:31 BST
Hi!
vserver project includes a (linux) kernel patch and utilities. Both are 
required.
AFAICT you didn't install a vserver enabled kernel. Maybe that's it.
Regards,
Nuno Silva
Simon Garner wrote:
> Hi all,
> 
> I've been on this list a little while but only just had the chance to
> start working with Vserver. I'm looking at moving to this from FreeVSD
> (which is no longer being worked on).
> 
> I've installed vserver-0.22 (from rpm) and created a test VS. But when I
> try to enter the VS I get this error:
> 
>     Can't set the ipv4 root (Bad address)
> 
> This appears to be coming from the chbind command. If I do just a:
> 
>     /usr/sbin/chbind --ip 192.168.1.13 echo test
> 
> I get the same error. It doesn't seem to make any difference what IP I
> use. The machine is currently configured with two interfaces (plus lo)
> and the vserver test enter command created a third, alias interface
> (ifconfig output below). [One thing to note is that although the alias
> is of eth0 it seems to have the statistics of eth1?]
> 
> The machine is a dual Opteron 240 (MSI K8D mainboard) running Red Hat
> Enterprise Linux 2.9.5 Beta for x86_64. The system has onboard dual
> Broadcom GigE.
> 
> 
> # uname -a
> Linux terra.xxxx 2.4.21-1.1931.2.349.2.2.entsmp #1 SMP Fri Jul 18
> 00:06:19 EDT 2003 x86_64 x86_64 x86_64 GNU/Linux
> 
> # ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:10:DC:FE:C7:EE
>           inet addr:192.168.1.10  Bcast:192.168.1.255
> Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:149 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:13176 (12.8 Kb)  TX bytes:2324 (2.2 Kb)
>           Interrupt:29
> 
> eth0:test Link encap:Ethernet  HWaddr 00:10:DC:FE:C7:EE
>           inet addr:192.168.1.13  Bcast:192.168.1.255
> Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:237436 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:114173 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:218279430 (208.1 Mb)  TX bytes:13532041 (12.9 Mb)
>           Interrupt:29
> 
> eth1      Link encap:Ethernet  HWaddr 00:10:DC:FE:C7:EF
>           inet addr:192.168.1.11  Bcast:192.168.1.255
> Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:237436 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:114173 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:218279430 (208.1 Mb)  TX bytes:13532041 (12.9 Mb)
>           Interrupt:30
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:485290 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:485290 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:46946973 (44.7 Mb)  TX bytes:46946973 (44.7 Mb)
> 
> 
> Also, I couldn't get the source or source RPM to compile on this system.
> 
> 
> # rpmbuild --recompile vserver-0.22-1.src.rpm
> Installing vserver-0.22-1.src.rpm
> warning: user jack does not exist - using root
> warning: user jack does not exist - using root
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.51826
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /usr/src/redhat/BUILD
> + rm -rf vserver-0.22
> + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/vserver-0.22.src.tar.gz
> + tar -xvvf -
> <snip>
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd vserver-0.22
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chown -Rhf root .
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,g-w,o-w .
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.51826
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd vserver-0.22
> + LANG=C
> + export LANG
> + unset DISPLAY
> + make
> g++    -c -o syscall.o syscall.cc
> gcc -funsigned-char -Wall -g -O -DVERSION=\"0.22\" chbind.cc
> syscall.o -o chbind \
>         -lstdc++
> gcc -funsigned-char -Wall -g -O -DVERSION=\"0.22\" chcontext.cc
> syscall.o -o chcontext \
>         -lstdc++
> gcc -funsigned-char -Wall -g -O -DVERSION=\"0.22\" reducecap.cc
> syscall.o -o reducecap \
>         -lstdc++
> gcc -funsigned-char -Wall -g -O -DVERSION=\"0.22\" rebootmgr.cc -o
> rebootmgr \
>         -lstdc++
> rebootmgr.cc: In function `int main(int, char**)':
> rebootmgr.cc:177: cannot convert `size_t*' to `socklen_t*' for argument
> `3' to
>    `int accept(int, sockaddr*, socklen_t*)'
> make: *** [rebootmgr] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.51826 (%build)
> 
> 
> RPM build errors:
>     user jack does not exist - using root
>     user jack does not exist - using root
>     Bad exit status from /var/tmp/rpm-tmp.51826 (%build)
> 
> 
> Help?
> 
> -Simon
> 
>