Monthly Archives: June 2014

install htop

 

 

wget http://dfn.dl.sourceforge.net/sourceforge/htop/htop-0.8.1.tar.gz ; tar xvf htop-0.8.1.tar.gz ; cd htop-0.8.1 ; ./configure ; make ; make install

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.

 

root@server [~]# ifconfig

root@server [~]#

After restarting the network, its showing the following error.

 

root@server [~]# /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

root@server [~]#

 

he 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.

[root@node3 ~]# wget http://repo.smartservermanagement.com/misc/iproute-2.6.32-23.el6.x86_64.rpm

[root@node3 ~]# cp iproute-2.6.32-23.el6.x86_64.rpm /vz/private/455113/fs/root/

Where 455113 is the container ID

[root@node3 ~]# vzctl enter 455113

root@server [~]# rpm -qa |grep iproute

iproute-2.6.32-31.el6.x86_64

root@server [~]#

root@server [/]# rpm -e iproute-2.6.32-31.el6.x86_64 --nodeps

root@server [/]# 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%]

root@server [/]# 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. :)