Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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 /
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
root (hd0,0)
kernel / ro root=/dev/sda3 rhgb
initrd /  

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.


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

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:

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


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.