Categories

Thursday, 4 April 2013

Ubuntu 12.04 OpenVz template issue in kernal 2.6.18-308.el5.028stab099.3

Hello,

 If you are running kernal  2.6.18-308.el5.028stab099.3 openvz. Then VM built with template ubuntu 12.04 won't boot with the error as FATAL: kernel too old.

To fix the issue, First add the ubuntu12.04 with latest kernal in the file named /etc/vz/osrelease.conf on the hardware node.

ubuntu-12.04    2.6.32

Another option is that

cd /proc/sys/kernel/
 cat virt_osrelease
 2.6.18-238.5.1.el5.028stab085.5

 echo 2.6.32 > virt_osrelease

Then restart the ubuntu VPS which will start the  VPS.

 But there will be problem with network.

 on restarting the network you may get the error as ifdown: failed to open statefile /run/network/ifstate: No such file or directory

Just manually create  the folder named /run/network/ on th virtual machine and then restart the network which will fix the issue.

Regards

3 comments:

  1. hi, I have tried your method but i still canot acces the server via ssh after I create /run/network/ and restart network

    any idea ?

    ReplyDelete
    Replies
    1. Are you able to restart the network properly?. Please let me know if you are still facing the issue.

      Delete
    2. Hi, yes it appears network is restarted, but it dont show any message, no error, nothing when i do /etc/init.d/networking restart
      ifconfig command returned empty
      ping faled, then i run ifconfig commands from this topic: http://internetlifeforum.com/virtualisation/2306-openvz-ubuntu-14-04-template-setup-networking/
      then it started pinging and working, but after reboot networking dont works. i tried to add ifconfig commands into /etc/rc.local also creating executable script in /etc/init.d and set update-rc.d scriptname defaults but network dont start. but when i run my ifconfig script script, networking start to work.. im talking about script content:
      ifconfig venet0 VPSIPHERE netmask 255.255.255.224 broadcast BROADCASTIPTHERE(wasthelastipofmysubnet,ihave/27anditwas.31)
      route add default gw my_subnet_ip_ending_with_.1_as_a_last_octet venet0

      Delete

Ad