RTNETLINK answers: No such device on a Virtuozzo VPS

Sometimes a VPS may stop working all of a sudden and while checking the issue, you notice that the ifconfig command is not showing any IP on the server.

[email protected] [~]# ifconfig
[email protected] [~]#

After restarting the network, its showing the following error.

[email protected] [~]# /etc/init.d/network restart

Shutting down loopback interface: [ OK ]

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]

RTNETLINK answers: No such device

RTNETLINK answers: No such device

RTNETLINK answers: No such device

[email protected] [~]#

The issue is because of the iproute package which got updated causing issues on the server. You need to downgrade the package. To downgrade the package, use the steps provided below.

Login to the main node and download the RPM as per the arch.

[[email protected] ~]# wget http://repo.smartservermanagement.com/misc/iproute-2.6.32-23.el6.x86_64.rpm
[[email protected] ~]# cp iproute-2.6.32-23.el6.x86_64.rpm /vz/private/455113/fs/root/

Where 455113 is the container ID

[[email protected] ~]# vzctl enter 455113
[email protected] [~]# rpm -qa |grep iproute
iproute-2.6.32-31.el6.x86_64
[email protected] [~]#
[email protected] [/]# rpm -e iproute-2.6.32-31.el6.x86_64 --nodeps
[email protected] [/]# rpm -ivh iproute-2.6.32-23.el6.x86_64.rpm
warning: iproute-2.6.32-23.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Preparing... ########################################### [100%]
1:iproute ########################################### [100%]
[email protected] [/]# service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: Determining if ip address 127.0.0.1 is already in use for device venet0...

The server is up now. 🙂

Tagged , . Bookmark the permalink.

Leave a Reply