From: Thomas Weber (x_at_4t2.com)
Date: Fri 10 May 2002 - 20:00:45 BST
On Fri, May 10, 2002 at 12:52:03PM -0500, Justin M Kuntz wrote:
> [root_at_linux-4 opt]# cat /proc/version
> Linux version 2.4.18ctx-10 (root_at_linux-4.prominic.com) (gcc version 2.96
> 20000731 (Red Hat Linux 7.1 2.96-98)) #4 SMP Wed May 8 22:12:58 EGST 2002
> [root_at_linux-4 opt]# /usr/sbin/vserver 0001 start
> Starting the virtual server 0001
> Server 0001 is not running
> SIOCSIFADDR: File exists
> SIOCSIFFLAGS: Cannot assign requested address
> SIOCSIFNETMASK: Cannot assign requested address
> SIOCSIFBRDADDR: Cannot assign requested address
> SIOCSIFFLAGS: Cannot assign requested address
> ipv4root is now 172.16.128.100
> Host name is now jmk1.prominic.com
> Domain name is now prominic.com
> New security context is 11
> Can't chroot to directory . (Permission denied)
> [root_at_linux-4 opt]# ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:04:76:21:5A:42
> inet addr:172.16.128.99 Bcast:172.16.255.255 Mask:255.255.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:45120 errors:0 dropped:0 overruns:0 frame:0
> TX packets:12158 errors:0 dropped:0 overruns:0 carrier:0
> collisions:107 txqueuelen:100
> RX bytes:11119397 (10.6 Mb) TX bytes:2259431 (2.1 Mb)
> Interrupt:11 Base address:0xb400
>
> eth0:0 Link encap:Ethernet HWaddr 00:04:76:21:5A:42
> inet addr:172.16.128.100 Bcast:172.16.255.255 Mask:255.255.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Interrupt:11 Base address:0xb400
>
> 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:4925 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4925 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1225344 (1.1 Mb) TX bytes:1225344 (1.1 Mb)
>
> [root_at_linux-4 opt]# cat /etc/vservers/0001.conf
> # Description: Vserver #0001
>
> # Select an unused context (this is optional)
> # The default is to allocate a free context on the fly
> # In general you don't need to force a context
> #S_CONTEXT=
> # Select the IP number assigned to the virtual server
> # This IP must be one IP of the server, either an interface
> # or an IP alias
> IPROOT=172.16.128.100
> # You can define on which device the IP alias will be done
> # The IP alias will be set when the server is started and unset
> # when the server is stopped
> # The netmask and broadcast are computed by default from IPROOTDEV
> #IPROOTMASK=
> #IPROOTBCAST=
> IPROOTDEV=eth0
As I understand it:
If you have the IP Aliases already defined you won't need the IPROOTDEV
line. Comment it out.
If you use IPROOTDEV and IPROOT, vserver tries to asign an alias of ${IPROOT}
to ${IPROOTDEV} - in your case it fails to do so because it already exists.
Tom