OpenVZ Forum


Home » General » Support » Problem using veth
Problem using veth [message #30861] Mon, 09 June 2008 14:24 Go to next message
edillmann is currently offline  edillmann
Messages: 4
Registered: June 2008
Junior Member
Hi,

I'am trying to use veth in openvz-2.6.28-53

I did try the following :

vzctl set 167 --netif_add eth0 --save

vzctl start 167 and got :

Starting VE ...
VE is mounted
Setting CPU limit: 100
Setting CPU units: 1000
Configure meminfo: 2147483647
Set hostname: vm167.example.com
File resolv.conf was modified
Configure veth devices: veth167.0
SIOCGIFFLAGS: No such device

In CE0 i have an interface which is named veth167.0_ifren
but no veth167.0 interface

In VE167 I have an eth0 which is up and configured

Ping doesn't work Sad


Any clues ?

Thanks
Eric
Re: Problem using veth [message #30870 is a reply to message #30861] Mon, 09 June 2008 15:26 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


openvz-2.6.28-53



Shocked What do you have in mind?
Could you possibly show "ip a l" and "cat /proc/vz/veth" from HN before you've set
"vzctl set 167 --netif_add eth0 --save", then set eth0 inside VE and show "ip a l", "cat /proc/vz/veth" again. And also "vzctl --version" and "uname -a" from HN.
Re: Problem using veth [message #30872 is a reply to message #30870] Mon, 09 June 2008 15:34 Go to previous messageGo to next message
edillmann is currently offline  edillmann
Messages: 4
Registered: June 2008
Junior Member
HN BEFORE :

ip a l
1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:09:6b:8c:90:7e brd ff:ff:ff:ff:ff:ff
inet 192.168.3.203/24 brd 192.168.3.255 scope global eth0
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast qlen 1000
link/ether 00:09:6b:8c:90:7f brd ff:ff:ff:ff:ff:ff
inet 192.168.254.203/24 brd 192.168.254.255 scope global eth1
6: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo

cat /proc/vz/veth
Version: 1.0

HN AFTER:

cat /proc/vz/veth
Version: 1.0
00:18:51:05:12:f4 veth167.0_ifren 00:18:51:14:f0:ef eth0 167 deny

ip a l
1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:09:6b:8c:90:7e brd ff:ff:ff:ff:ff:ff
inet 192.168.3.203/24 brd 192.168.3.255 scope global eth0
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast qlen 1000
link/ether 00:09:6b:8c:90:7f brd ff:ff:ff:ff:ff:ff
inet 192.168.254.203/24 brd 192.168.254.255 scope global eth1
6: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
9: veth167.0_ifren: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:18:51:05:12:f4 brd ff:ff:ff:ff:ff:ff

uname -a
Linux obsm4.example.com 2.6.18-028stab053 #2 SMP Thu Jan 31 20:48:41 CET 2008 i686 GNU/Linux

vzctl --version
vzctl version 3.0.22

Re: Problem using veth [message #30873 is a reply to message #30872] Mon, 09 June 2008 15:43 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
where have you got your kernel? Please, describe what steps have you done to get/build it.
Re: Problem using veth [message #30875 is a reply to message #30873] Mon, 09 June 2008 15:48 Go to previous messageGo to next message
edillmann is currently offline  edillmann
Messages: 4
Registered: June 2008
Junior Member
vanilla kernel + patch-ovz028stab053.4-combined.gz
Re: Problem using veth [message #30877 is a reply to message #30875] Mon, 09 June 2008 16:31 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

just in case (it shouldn't take many time) please download the latest vzctl version from here http://git.openvz.org/, try with it (download via "git clone (http|git)://git.openvz.org/pub/<project name> <destination dir>", ./autogen.sh, ./configure,make then use ./src/vzlist, ./src/vzctl binaries). Try with ./src/vzctl does this error still occur?
Re: Problem using veth [message #30918 is a reply to message #30877] Tue, 10 June 2008 13:19 Go to previous messageGo to next message
edillmann is currently offline  edillmann
Messages: 4
Registered: June 2008
Junior Member
Hello,

I didn't try the modified version of vzctl,
but change my kernel to vanilla 2.6.18 + patch-53.1.19.el5.028stab053.14-combined.gz

and the problem was solved

Thanks
Re: Problem using veth [message #30956 is a reply to message #30918] Wed, 11 June 2008 08:33 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

I wasn't be able to reproduce this issue Sad
could you possibly looak at this file - "drivers/net/veth.c" on both your kernels. Is there any difference? Could you possibly attach both of them?

[Updated on: Wed, 11 June 2008 08:34]

Report message to a moderator

Previous Topic: Kernel security support policy
Next Topic: how to open a range of IPs?
Goto Forum:
  


Current Time: Wed Nov 06 03:35:09 GMT 2024

Total time taken to generate the page: 0.03497 seconds