OpenVZ - RHEL/CentOS/Scientific 6.5 Container Networking Bug

technut

New member
If you are running an OpenVZ environment and update a CentOS/Scientific/RHEL 6 container to CentOS 6.5 (CentOS 6.5 was Released 01/12/13), you will likely lose all network connectivity including the loopback device. This is due to a comparability issue with the network configuration and the iproute package.

++++++++++++++++++++++++++++++++++++++++++++++

Below Reprinted from PCS-Chris:

Yesterday CentOS 6.5 was released and if you've not already seen this, you will likely see floods of tickets come in because when you upgrade an OpenVZ container to CentOS 6.5 and reboot, it will lose all network connectivity.

No active network interfaces:
Code:

[root@test ~]# ifconfig
[root@test ~]#


We cant bring interfaces up either:
Code:

[root@test log]# service network restart
Shutting down loopback interface: [ OK ]
FATAL: Module ipv6 not found.
Bringing up loopback interface: RTNETLINK answers: Operation not supported
Failed to bring up lo.
[FAILED]
Bringing up interface venet0: RTNETLINK answers: Operation not supported
Failed to bring up venet0.
[FAILED]
FATAL: Module ipv6 not found.

How to solve (CentOS 6 64Bit):

Until the OpenVZ developers create an official fix, you can downgrade the iproute package as follows:

1. From your OpenVZ Hostmachine, download the old RPM:

# wget http://repo.smartservermanagement.co...el6.x86_64.rpm

2. Copy this inside the container:
# cp /root/iproute-2.6.32-23.el6.x86_64.rpm /vz/private/<CTID>/root/

3. Console into the VPS, forcefully remove the current iproute package, and replace with old one:

# vzctl enter <CTID>
# rpm -e iproute-2.6.32-31.el6.x86_64 --nodeps
# rpm -ivh /root/iproute-2.6.32-23.el6.x86_64.rpm

4. Restart the network service

# service network restart

..and voila!

Don't forget if you have automated yum updates configured (e.g. cPanel does this), add iproute* to the exclude= line in /etc/yum.conf for the time being.

If this fix doesn't work for you please let me know as we would be interested to hear about it!

Cheers

__________________
Chris E
Sr System Administrator / Co-Owner @ PCSmart Group
Got Linux server problems? Check us out


==============================
==============================

No worries, same problem and fix applies to RHEL 6.5 32bit variants but you will want this RPM:

http://repo.smartservermanagement.co...el6.x86_64.rpm

Note that I have made no changes to this RPM whatsoever, it's actually from Scientific Linux 6.4 as it was the easiest source to find.

__________________
Chris E
Sr System Administrator / Co-Owner @ PCSmart Group
Got Linux server problems? Check us out
 
Top