OpenVZ Forum


Home » General » Support » Networking questions
Networking questions [message #27372] Fri, 15 February 2008 20:08 Go to next message
Shawn Ning is currently offline  Shawn Ning
Messages: 3
Registered: February 2008
Junior Member
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
Re: Networking questions [message #27397 is a reply to message #27372] Sat, 16 February 2008 20:53 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
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. Wink

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
Re: Networking questions [message #27497 is a reply to message #27397] Tue, 19 February 2008 02:51 Go to previous messageGo to next message
Shawn Ning is currently offline  Shawn Ning
Messages: 3
Registered: February 2008
Junior Member
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?
Re: Networking questions [message #27519 is a reply to message #27497] Tue, 19 February 2008 06:40 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: N├╝rnberg, Germany
Senior Member

Hi,

please check if you booted a OpenVZ kernel and poste the outpout from `uname -r`

Re: Networking questions [message #27547 is a reply to message #27372] Tue, 19 February 2008 11:26 Go to previous messageGo to next message
Xahil is currently offline  Xahil
Messages: 7
Registered: December 2007
Junior Member
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
Re: Networking questions [message #27600 is a reply to message #27547] Wed, 20 February 2008 11:47 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: VPS checkpointing problem
Next Topic: Fedora Core 8 and OS Template Cache
Goto Forum:
  


Current Time: Fri Jun 02 18:23:31 GMT 2023

Total time taken to generate the page: 0.01382 seconds