OpenVZ Forum


Home » General » Support » openvz start faild
openvz start faild [message #37764] Sun, 18 October 2009 15:55 Go to next message
Zien is currently offline  Zien
Messages: 4
Registered: October 2009
Junior Member
hello

when i want to start openvz it shows me this error :

/etc/init.d/vz start
Running kernel is not OpenVZ kernel. [FAILED]


vzctl enter 110
Unable to open /dev/vzctl: No such file or directory
Please check that vzdev kernel module is loaded and you have sufficient permissions to access the file.

that's all my problem

uname -r
2.6.18-128.el5


cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/sda1
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=3
timeout=2
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.2.1.el5.028stab064.7ent)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-128.2.1.el5.028stab064.7ent ro root=LABEL=/
        initrd /boot/initrd-2.6.18-128.2.1.el5.028stab064.7ent.img
title OpenVZ (2.6.18-128.2.1.el5.028stab064.7)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-128.2.1.el5.028stab064.7 ro root=/dev/sda1
        initrd /boot/initrd-2.6.18-128.2.1.el5.028stab064.7.img
title CentOS (2.6.18-164.el5)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-164.el5 ro root=LABEL=/dev/sda1
        initrd /boot/initrd-2.6.18-164.el5.img
title CentOS (2.6.18-128.el5)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-128.el5 ro root=/dev/sda1
        initrd /boot/initrd-2.6.18-128.el5.img


thank you
Re: openvz start faild [message #37766 is a reply to message #37764] Mon, 19 October 2009 05:44 Go to previous messageGo to next message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
Change default=3 to default=1 if the second kernel listed is an OpenVZ kernel. Remember default counts from 0.
Re: openvz start faild [message #37771 is a reply to message #37764] Mon, 19 October 2009 12:11 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Indeed you have booted into non-OpenVZ kernel.

Please set 'default=0' or 'default=1' in grub.conf and reboot.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: tap device support
Next Topic: ip6tables error
Goto Forum:
  


Current Time: Wed Aug 14 03:13:46 GMT 2024

Total time taken to generate the page: 0.02884 seconds