problem with venet0:0 interface in openvz container

khayman

Member
Sep 15, 2010
38
0
6
I've just migrated my old web server (based on Debian 3.3.5-13) to openvz container. Everythings seems to work fine (joomla, mysql apache etc) but the network is unreachable.

from container - etc/network/interfaces:
Code:
# Auto generated lo interface
auto lo
iface lo inet loopback

# Auto generated venet0 interface
auto venet0
iface venet0 inet manual
        up ifconfig venet0 up
        up ifconfig venet0 0
        up route add default dev venet0
        down route del default dev venet0
        down ifconfig venet0 down


iface venet0 inet6 manual

auto venet0:0
iface venet0:0 inet static
        address my_ip_address
        netmask 255.255.255.255

Seems to be ok.

But when I typed ifconfig I got nothing. When I typed ifconfig -a I got only this:
Code:
lo        Link encap:Local Loopback                                                                    LOOPBACK  MTU:16436  Metric:1                                                                RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         collisions:0 txqueuelen:0                                                                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                    BROADCAST POINTOPOINT NOARP  MTU:1500  Metric:1                                              RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         collisions:0 txqueuelen:0                                                                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Other openvz containers on this cluster node works fine.
 
same problem, another server. I've just migrate old server, based on Red Hat 3.4.6-9. In /etc/vz/dists of my HN i found only redhat-7.x.conf versions. What should I type in ostemaplet parametr? default? I've tried with redhat-7.0 but without effect.
 
Unfortunetly, no.

EDIT: Ok problem solved. It's not what i want, but it work. I've just set veth for this openvz container and it works.
 
Last edited:
Same problem in the base install. I'm getting "venet0-00" with HWaddr all set to 00-00
How to reset?? Thanx! Ric