OpenVZ Forum


Home » General » Support » Running kernel is not OpenVZ kernel.
Running kernel is not OpenVZ kernel. [message #25111] Fri, 14 December 2007 15:41 Go to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

I just got a new server up on centos 5 64bit and installed and i keep getting this everytime i start vz


Running kernel is not OpenVZ kernel.

here is some info from the server

[root@localhost grub]# service vz start
Running kernel is not OpenVZ kernel. [FAILED]
[root@localhost grub]# stat /dev/vzctl
stat: cannot stat `/dev/vzctl': No such file or directory
[root@localhost grub]# uname -a
Linux localhost.localdomain 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 00:45:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost grub]#

Basically i have installed kernel from .rpm and from source rpm and its still givin me the error.. heres menu.lst

#boot=/dev/mapper/isw_caiacbehai_Volume0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-53.el5.028stab051.1)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.el5.028stab051.1 ro root=LABEL=/
initrd /initrd-2.6.18-53.el5.028stab051.1.img
title CentOS (2.6.18-53.1.4.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.1.4.el5 ro root=LABEL=/
initrd /initrd-2.6.18-53.1.4.el5.img
title CentOS (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/
initrd /initrd-2.6.18-8.el5.img
[root@localhost grub]#


I have worked on this for the longest time and i dont know why its doing this, any ideas guys? thanks!
Re: Running kernel is not OpenVZ kernel. [message #25113 is a reply to message #25111] Fri, 14 December 2007 15:46 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

you have to actually reboot to a new (OpenVZ) kernel after you install it.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Running kernel is not OpenVZ kernel. [message #25117 is a reply to message #25113] Fri, 14 December 2007 18:05 Go to previous messageGo to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

ive rebooted 5-10 times... anthing else?
Re: Running kernel is not OpenVZ kernel. [message #25118 is a reply to message #25117] Fri, 14 December 2007 18:31 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
Hello do you have read Configuring the bootloader
http://wiki.openvz.org/Quick_installation
Rolling Eyes

[Updated on: Fri, 14 December 2007 18:32]

Report message to a moderator

Re: Running kernel is not OpenVZ kernel. [message #25119 is a reply to message #25118] Fri, 14 December 2007 18:52 Go to previous messageGo to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

yes i have. I already have openvz running on another server with the same exact kernel and menu.lst and its running no problem.... and yes i installed and went off the quick start guide? what am i missing instead of telling me to read the manual i have done the steps over and over 3 or 4 times... and it just wont work.
Re: Running kernel is not OpenVZ kernel. [message #25128 is a reply to message #25119] Fri, 14 December 2007 22:14 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Well, OK. Are you sure your bootloader on this box is indeed GRUB?

Can you remove 'hiddenmenu' line from the menu.lst and check if you see the menu when you reboot, that it conforms to what you have in menu.lst, and that you boot openvz kernel?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Running kernel is not OpenVZ kernel. [message #25129 is a reply to message #25128] Fri, 14 December 2007 22:30 Go to previous messageGo to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

i cant, its in a datacenter.. but i know for a fact that it wont boot openvz kernel for some damn reason, ive installed and reinstalled and even went back to earlier kernels.. can someone maybe provide me with a link with what kernel and rpms i shold get to get this thing working? its just really irritating me because my other boxes are working just fine but this one isnt.
Re: Running kernel is not OpenVZ kernel. [message #25130 is a reply to message #25129] Fri, 14 December 2007 22:39 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

the problem is not in kernel and rpms, the problem is (apparently) in the bootloader.

Can you try reinstall grub bootloader code, something like
grub-install /dev/sda


SUBSTITUTE /dev/sda with whatever your boot drive is.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Running kernel is not OpenVZ kernel. [message #25145 is a reply to message #25111] Sat, 15 December 2007 23:29 Go to previous messageGo to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

http://boxstr.com/files/341978_k95bl/Boot_error.png

thats the error when i boot the kernel...
Re: Running kernel is not OpenVZ kernel. [message #25147 is a reply to message #25145] Sat, 15 December 2007 23:41 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You probably need to run fsck on your boot and/or root partition.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Running kernel is not OpenVZ kernel. [message #25148 is a reply to message #25147] Sat, 15 December 2007 23:43 Go to previous messageGo to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

weird thing is that it only happens with that kernel, i can bootup with the others, should i still run it?
Re: Running kernel is not OpenVZ kernel. [message #25152 is a reply to message #25148] Sun, 16 December 2007 00:18 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Again. This is NOT a problem with that particular kernel, this is a problem with a bootloader caused by the fact your filesystem has errors. Just run fsck.

Quote:

should i still run it?


You said you run it fine on other boxes. Thousands people run it. But I'm definitely not forcing you to run it (or any other thing), just trying to help you with your problem.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Running kernel is not OpenVZ kernel. [message #25154 is a reply to message #25152] Sun, 16 December 2007 00:30 Go to previous messageGo to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

it was clean... /boot was.. any other ideas
Re: Running kernel is not OpenVZ kernel. [message #25156 is a reply to message #25154] Sun, 16 December 2007 00:38 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

No, "clean" just means that fsck thinks there's no need to check the FS. So you run fsck with -f flag (don't forget to unmount it first).

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Running kernel is not OpenVZ kernel. [message #25184 is a reply to message #25156] Mon, 17 December 2007 07:38 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Any update? Did fsck -f revealed anything?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Running kernel is not OpenVZ kernel. [message #25205 is a reply to message #25184] Mon, 17 December 2007 16:08 Go to previous message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

Figured out that the raid 1 wasnt working correctly with linux so it was writing inconsistant changes to the drives. After spending 16 hours i found that out. Thanks for all the pointers... Smile

Previous Topic: Truecrypt in OpenVZ
Next Topic: Some VPS don't restart after HN reboot
Goto Forum:
  


Current Time: Sat Jul 27 03:14:45 GMT 2024

Total time taken to generate the page: 0.03233 seconds