OpenVZ Forum


Home » General » Support » How to disable venet in a VE
How to disable venet in a VE [message #33192] Sat, 27 September 2008 17:42 Go to next message
praveenray is currently offline  praveenray
Messages: 8
Registered: June 2008
Junior Member
Hello
I've set up one of my VEs to use a veth. This VE was using venet earlier with an IP of 10.10.0.3. The new veth has the same IP. Now, since both veth and venet have the same IP, the networking doesn't work (it refuses to see any machine on the network). As soon as I do 'ifconfig venet0 down', everything works great.
I've trying to stop the venet from showing up in the VE with no success. This is in my $VEID.conf:

IP_ADDRESS=""
NETIF=" ifname=eth0,mac=00:18:51:96:29:24,host_ifname=veth219.0,host _mac=00:18:51:39:21:88 "
CONFIG_CUSTOMIZED="yes"
VETH_IP_ADDRESS="10.10.0.219/24"
VE_DEFAULT_GATEWAY="10.10.0.1"
BRIDGEDEV="br0"

I also have this in /etc/vz/vznet.conf:
EXTERNAL_SCRIPT="/usr/sbin/vznetcfg.custom"

and in vznetcfg.custom, towards the end, I do this:
$vzctl exec $VEID ifconfig venet0 down
$vzctl exec $VEID ifconfig venet0:0 down
However, a 'vzctl restart', gives this error(towards the end):
SIOCSIFFLAGS: Cannot assign requested address

However, the VE is alive at this point and if I do :
'vzctl exec 100 ifconfig venet0 down'
'vzctl exec 100 ifconfig venet0:0 down'
,all is well.

So, in short, how do I stop venet from appearing in my VE, if it is using veth?


Thanks
Re: How to disable venet in a VE [message #33198 is a reply to message #33192] Sat, 27 September 2008 20:25 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

you've mentioned that your VE had an IP address 10.10.0.3 but $VEID.conf doesn't contain any information about this in IP_ADDRESS field. So, have you removed that IP address from conf file or just used "vzctl --ipdel ..." command when your VE was stoped? If yes, there is a bug http://bugzilla.openvz.org/show_bug.cgi?id=478 which might be related with your situation.
Please, delete ip address from venet interface when VE is started.

If you're planning to get rid of venet interface you should unload vznetdev module from HN but you can bump into some unexpective things http://forum.openvz.org/index.php?t=msg&goto=32140&& amp;srch=venet+module#msg_32140
we know about this issue and it should be fixed but check it with the kernel you are using now.
Re: How to disable venet in a VE [message #33201 is a reply to message #33198] Sun, 28 September 2008 02:10 Go to previous message
praveenray is currently offline  praveenray
Messages: 8
Registered: June 2008
Junior Member
yeah, I do not have 10.10.0.3 anywhere in the $VEID.conf file. I have following two lines:
IP_ADDRESS=""
VETH_IP_ADDRESS="10.10.0.219/24"

I was actually using 10.10.0.219..I mistyped it as 10.10.0.3 in my previous message. Sorry about the confusion - I've been trying too many things.
The bug you mentioned is exactly what I see so it's definitely my case.
Unloading vznetdev module works as expected but I could not find a way to do it at the boot time. I commented out this module in /etc/init.d/vz and even blacklisted this module but after doing /etc/init.d/vz restart, venet is still there and the module vznetdev somehow gets loaded anyway!
Very strange indeed!!

Previous Topic: Need Help Please
Next Topic: Problems with swap
Goto Forum:
  


Current Time: Fri Jun 27 00:14:34 GMT 2025

Total time taken to generate the page: 0.02666 seconds