OpenVZ Forum - RDF feed
type: channel
items: Networking questions
items: Re: Networking questions

Networking questions
type: item
description: Hi, Everyone Being new to openvz, I have a couple of questions I would like to use veth instead of vnet on my ubuntu 7.10 1. Do I still need to load vznetdev module? It is loaded by default, I tried to change the /etc/init.d/vz and load vzethdev only, later on, vzlist gave me an error "can not open /proc/xxxxxx" 2. If I have to load vznetdev, can I remark the few lines in start_net function in /etc/init.d/vz? This will not create the default venet0 network interface. It seems working fine for me, but I would like some confirm. 3. I have made a customized script to create a bridge device and setup all the network staff after a VE start. It is working fine. Is there a similar thing that can clean up the scene (delete the bridge, flush iptables and other staff) after vzctl stop the VE. In case you ask, I am running this in my laptop, so I prefer clean up the scene to make it run faster Thanks in advance Shawn
creator: Shawn Ning
date: 2008-02-15T20:08:38-00:00

Re: Networking questions
type: item
description: Hi, Quote: 1. Do I still need to load vznetdev module? It is loaded by default, I tried to change the /etc/init.d/vz and load vzethdev only, later on, vzlist gave me an error "can not open /proc/xxxxxx" What vzctl version do you use?.. I thought this problem was fixed. According to bug report http://bugzilla.openvz.org/show_bug.cgi?id=394, it was fixed in vzctl-3.0.0-14. If you use newer version - please, reopen the bug. To wrap up: you don't need to load vznetdev module if you're not going to use venet. I guess the second question is answered automatically yet... Quote: 3. I have made a customized script to create a bridge device and setup all the network staff after a VE start. It is working fine. Is there a similar thing that can clean up the scene (delete the bridge, flush iptables and other staff) after vzctl stop the VE. Probably <veid>.stop or <veid>.umount files could help you? Vasily
creator: Vasily Tarasov
date: 2008-02-16T20:53:32-00:00

Re: Networking questions
type: item
description: Thanks for the tip. I tried couple of different version and still got "Unable to open /proc/vz/veinfo" as soon as I "rmmod vznetdev" I am using ubuntu gutsy and installed kernel version 2.6.18-fza-028stab051.1-686. and I have tried "vzctl version 3.0.22-1dso1" and "vzctl version 3.0.22". I installed them from deb files. maybe I should try compile from source?
creator: Shawn Ning
date: 2008-02-19T02:51:14-00:00

Re: Networking questions
type: item
description: Hi, please check if you booted a OpenVZ kernel and poste the outpout from `uname -r`
creator: curx
date: 2008-02-19T06:40:52-00:00

Re: Networking questions
type: item
description: Hi, I have same problem. # uname -r 2.6.18+ovz028stab053.4 # vzctl --version vzctl version 3.0.22 Kernel is compiled form sources, vzctl is recompiled package from ubuntu. I looked at patch that shoud resolve this problem and it looks strange to me. When vzlist can't open PROCVEINFO it try another way by running get_run_ve_proc2 (which should try to open PROCVESTAT) but it again try to open PROCVEINFO. So it twice try to open PROCVEINFO. http://git.openvz.org/?p=vzctl;a=blobdiff;f=src/vzlist.c;h=8 a99969831f97b738b459ca58846cbea2d6661d0;hp=0a10fe07df83b79fc e7a3080e4b4338f9e88633f;hb=fba90058162ea0417c1b2fae7dc1a7348 33c3519;hpb=26e1d176eecad9d8d3278f68e4f9215b5af1e87d
creator: Xahil
date: 2008-02-19T11:26:39-00:00

Re: Networking questions
type: item
description: OK, we decided this should be fixed in kernel instead. If you want to track the progress, add yourself into Cc for bug #394. http://bugzilla.openvz.org/show_bug.cgi?id=394
creator: kir
date: 2008-02-20T11:47:02-00:00