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 Any clues ? Thanks Eric
Hello, Quote: openvz-2.6.28-53 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.
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
where have you got your kernel? Please, describe what steps have you done to get/build it.
vanilla kernel + patch-ovz028stab053.4-combined.gz
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?
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
Hi, I wasn't be able to reproduce this issue 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?