Unable to add ip: Address already in use [message #24310] |
Mon, 03 December 2007 21:26 |
Inverted
Messages: 9 Registered: September 2006
|
Junior Member |
|
|
I built 6 templates, one for each architecture(i386, x86_64) for FC2, FC4, & FC6. I used the following commands on the host VE to add the network information for each VE:
vzctl set <VEID> --ipadd xxx.xxx.xxx.xxx --save
However, whenever I try and do this for the FC2 VEs it says that the address is already in use. I can stop the VE and run the commands again and they complete without error. But when I start up the VE the network info doesn't exist. I have checked and no other machine on the network is using this IP.
[root@build1 dists]# vzctl set 201 --ipadd xxx.xxx.xxx.xxx --save
Adding IP address(es): xxx.xxx.xxx.xxx
Unable to add IP xxx.xxx.xxx.xxx: Address already in use
Saved parameters for VE 201
[root@build1 dists]# vzctl enter 201
entered into VE 201
[root@ve201.build1 /]# ifconfig -a
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
BROADCAST POINTOPOINT NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
When I stop the VE and look at /proc/vz/veinfo, the ip information isn't there, but it is there while running.
|
|
|
|
Re: Unable to add ip: Address already in use [message #24406 is a reply to message #24383] |
Tue, 04 December 2007 19:17 |
vaverin
Messages: 708 Registered: September 2005
|
Senior Member |
|
|
Dear Inverted,
vzctl uses distro-depended scripts for adding IP:
IMHO FC based VE's should use following one /etc/vz/dists/scripts/fedora-core-add_ip.sh
Probably in your case vzctl uses incorrect script version.
You can trace the script, hope it helps to clarify the situation.
thank You,
Vasily Averin
|
|
|