Wednesday, June 4, 2014

openvz ubuntu vps not restarting


While rebooting Ubuntu vps on your Openvz node you will get the following error.

~]# vzctl start 2121454
Starting container ...
Container is mounted
Adding IP address(es): IP address for your vps
FATAL: kernel too old
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
FATAL: kernel too old
Container start in progress...



This means your Node is running on Centos 5

2.6.18-371.3.1.el5.028stab110.1

So we cannot update to 2.6.32 openvz kernel on CenOS 5

Fix:
 kernel]# pwd
/proc/sys/kernel
kernel]# cat virt_osrelease
2.6.18-371.3.1.el5.028stab110.1
kernel]# echo 2.6.32 > virt_osrelease
[root@server kernel]# vzctl start 5909
Starting container ...
Container is mounted
Adding IP address(es): ipdaddress
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
Container start in progress...

No comments:

Post a Comment