Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to get OpenVZ working on my server but I am having problems. I am getting the error 'Running kernel is not OpenVZ kernel.' every time I install OpenVZ. My server is running CentOS 64bit.

My existing grub file is below:

timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
default=2
title CentOS (2.6.18-238.5.1.el5.028stab085.3)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.5.1.el5.028stab085.3 ro root=/dev/sda3 rhgb
initrd /initrd-2.6.18-238.5.1.el5.028stab085.3.img

title CentOS (2.6.18-194.32.1.el5.centos.plusxen)
root (hd0,0)
kernel /xen.gz-2.6.18-194.32.1.el5.centos.plus
module /vmlinuz-2.6.18-194.32.1.el5.centos.plusxen ro root=/dev/sda3 rhgb
module /initrd-2.6.18-194.32.1.el5.centos.plusxen.img

title Centos Kernel 2.6.18-194.32.1.el5.centos.plus
root (hd0,0)
kernel /vmlinuz-2.6.18-194.32.1.el5.centos.plus ro root=/dev/sda3 rhgb
initrd /initrd-2.6.18-194.32.1.el5.centos.plus.img  

Will the above file boot my server into the OpenVZ kernel? I did at one time install Xen I believe which may also be causing a problem. I do not understand how to read the file above so if someone could tell me if the file should boot the server into the OpenVZ kernel or not I would be very happy.

Thanks

share|improve this question
    
Installing Xen earlier is most likely not the issue. –  Aleksandr Levchuk Apr 7 '11 at 13:54

1 Answer 1

up vote 1 down vote accepted

The Grub file reads like this. There are 3 kernels in the list:

  • 2.6.18-238.5.1.el5.028stab085.3
  • 2.6.18-194.32.1.el5.centos.plusxen
  • 2.6.18-194.32.1.el5.centos.plus

The 3rd one will be loaded if manual selection during boot is not made. That's defined by default=2. To load the first one it would be default=0.

I can't tell it any of kernels are OpenVZ. On Debian I would see the word "openvz" or "ovz" somewhere in the kernel name.

I normally follow: http://wiki.openvz.org/Quick_installation

yum should configure your Grub automatically. Did you just run yum install ovzkernel...?

share|improve this answer
    
Thank you, yes following your guide I managed to boot using OpenVZ. –  Joel Kennedy Apr 8 '11 at 1:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.