OpenVZ Forum


Home » General » Support » openvz not working - Unable to open /dev/vzctl
openvz not working - Unable to open /dev/vzctl [message #16051] Mon, 20 August 2007 16:50 Go to next message
Rick C is currently offline  Rick C
Messages: 6
Registered: August 2007
Location: Manchester, UK
Junior Member

Hi there,
I am running openvz with hypervm and it was working fine, but now none of my vm`s are not working i can not access them, when i go to thier ip address`s i just get the servers root apache page.
I tried to start the vms via hypervm control panel but i get this error?

Failed to get Status from localhost. Server said: no_kernel_support_for_openvz_check_if_right_kernel
()

i have checked /etc/grub.conf and its set to default=0

also if i try to connect to the server via command access in hyper vm i get this error!

Unable to open /dev/vzctl: No such file or directory
Please check that vzdev kernel module is loaded and you have sufficient permissions to ac
cess the file.
I recon its a problem with openvz

any ideas please? It was fully working, i had 2 vps servers running one with cpanel and had sites resloved to it and another with centos base install on it? all working perfect.
kind regards,
Rick

[Updated on: Mon, 20 August 2007 16:50]

Report message to a moderator

Re: openvz not working - Unable to open /dev/vzctl [message #16053 is a reply to message #16051] Mon, 20 August 2007 16:59 Go to previous messageGo to next message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
uname -a

will tell you what kernel you have loaded
Re: openvz not working - Unable to open /dev/vzctl [message #16054 is a reply to message #16053] Mon, 20 August 2007 17:02 Go to previous messageGo to next message
Rick C is currently offline  Rick C
Messages: 6
Registered: August 2007
Location: Manchester, UK
Junior Member

2.6.18-8.1.8.el5 #1 SMP Tue Jul 10 06:50:22 EDT 2 007 i686 i686 i386 GNU/Linux

what do you make of it? is it the right one?
thanks for your reply
Re: openvz not working - Unable to open /dev/vzctl [message #16056 is a reply to message #16054] Mon, 20 August 2007 17:13 Go to previous messageGo to next message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
that is not an OpenVZ kernel. a VZ kernel will look like something like this (the latest):

2.6.18-8.1.8.el5.028stab039.1PAE

you are looking for the .028stab039.1PAE signifying the VZ kernel. edit your grub file and comment out all the other kernals with a #

but before you do that consider first what might have happened to cause your situation
Re: openvz not working - Unable to open /dev/vzctl [message #16057 is a reply to message #16056] Mon, 20 August 2007 17:19 Go to previous messageGo to next message
Rick C is currently offline  Rick C
Messages: 6
Registered: August 2007
Location: Manchester, UK
Junior Member

grub.conf looks like this


#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-8.1.8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.8.el5 ro root=LABEL=/
initrd /initrd-2.6.18-8.1.8.el5.img
title CentOS (2.6.18-8.1.8.el5.028stab039.1)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.8.el5.028stab039.1 ro root=LABEL=/
initrd /initrd-2.6.18-8.1.8.el5.028stab039.1.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

so needs to be

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
#title CentOS (2.6.18-8.1.8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.8.el5 ro root=LABEL=/
initrd /initrd-2.6.18-8.1.8.el5.img
title CentOS (2.6.18-8.1.8.el5.028stab039.1)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.8.el5.028stab039.1 ro root=LABEL=/
initrd /initrd-2.6.18-8.1.8.el5.028stab039.1.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

is that right? sorry am new to Vz

[Updated on: Mon, 20 August 2007 17:23]

Report message to a moderator

Re: openvz not working - Unable to open /dev/vzctl [message #16058 is a reply to message #16057] Mon, 20 August 2007 17:24 Go to previous messageGo to next message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
edit your grub to look like this:

#boot=/dev/sda
default=1
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
#title CentOS (2.6.18-8.1.8.el5)
#root (hd0,0)
#kernel /vmlinuz-2.6.18-8.1.8.el5 ro root=LABEL=/
#initrd /initrd-2.6.18-8.1.8.el5.img
title OpenVZ CentOS (2.6.18-8.1.8.el5.028stab039.1)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.8.el5.028stab039.1 ro root=LABEL=/
initrd /initrd-2.6.18-8.1.8.el5.028stab039.1.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

notice i also changed the title of the kernel adding "OpenVZ"

remember to leave 1 x blank line at the end of the file

Re: openvz not working - Unable to open /dev/vzctl [message #16072 is a reply to message #16051] Mon, 20 August 2007 19:59 Go to previous messageGo to next message
Rick C is currently offline  Rick C
Messages: 6
Registered: August 2007
Location: Manchester, UK
Junior Member

excellent thanks that worked, need to figure out now why i cant get to the vps servers!
Re: openvz not working - Unable to open /dev/vzctl [message #16074 is a reply to message #16072] Mon, 20 August 2007 20:12 Go to previous messageGo to next message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
vzlist -a

are they started?
Re: openvz not working - Unable to open /dev/vzctl [message #16075 is a reply to message #16051] Mon, 20 August 2007 20:24 Go to previous messageGo to next message
Rick C is currently offline  Rick C
Messages: 6
Registered: August 2007
Location: Manchester, UK
Junior Member

yes says they are running, but cant get to cpanel on one that was running and when you ssh to them you get the root server by the ip?
thanks for the help Smile
Re: openvz not working - Unable to open /dev/vzctl [message #16085 is a reply to message #16051] Mon, 20 August 2007 21:55 Go to previous messageGo to next message
Rick C is currently offline  Rick C
Messages: 6
Registered: August 2007
Location: Manchester, UK
Junior Member

deleted vms and recreated all ok, thanks for your help Smile
Re: openvz not working - Unable to open /dev/vzctl [message #46897 is a reply to message #16051] Fri, 22 June 2012 19:12 Go to previous messageGo to next message
formatyk is currently offline  formatyk
Messages: 2
Registered: June 2012
Location: a
Junior Member
This is my grub configuration
does not work
Please help
default=1
timeout=5


title OpenVZ CentOS (2.6.18-308.el5.028stab099.3)
kernel /boot/vmlinuz-2.6.18-308.el5.028stab099.3 root=/dev/sda1 ro sysfs.deprecated=1 selinux=0
root (hd0,0)
initrd /boot/initrd-2.6.18-308.el5.028stab099.3.img
#title OpenVZ (2.6.18-274.18.1.el5.028stab098.1)
#kernel /boot/vmlinuz-2.6.18-274.18.1.el5.028stab098.1 root=/dev/sda1 ro sysfs.deprecated=1 selinux=0
#root (hd0,0)
#initrd /boot/initrd-2.6.18-274.18.1.el5.028stab098.1.img
#title OpenVZ (2.6.18-274.7.1.el5.028stab095.1)
#kernel /boot/vmlinuz-2.6.18-274.7.1.el5.028stab095.1 root=/dev/sda1 ro sysfs.deprecated=1 selinux=0
#root (hd0,0)
#initrd /boot/initrd-2.6.18-274.7.1.el5.028stab095.1.img
#title OpenVZ (2.6.18-274.3.1.el5.028stab094.3)
#kernel /boot/vmlinuz-2.6.18-274.3.1.el5.028stab094.3 root=/dev/sda1 ro sysfs.deprecated=1 selinux=0
#root (hd0,0)
#initrd /boot/initrd-2.6.18-274.3.1.el5.028stab094.3.img
#title CentOS (2.6.32-042stab039.2)
#kernel /boot/vmlinuz-2.6.32-042stab039.2 root=/dev/sda1 ro sysfs.deprecated=1
#root (hd0,0)
#initrd /boot/initrd-2.6.32-042stab039.2.img
#title linux centos5_64
#kernel /boot/bzImage-2.6.38.2-xxxx-grs-ipv6-64 root=/dev/sda1 ro
#root (hd0,0)

Re: openvz not working - Unable to open /dev/vzctl [message #46898 is a reply to message #16051] Sat, 23 June 2012 03:28 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Should be default=0 not default=1.
Re: openvz not working - Unable to open /dev/vzctl [message #46899 is a reply to message #46898] Sat, 23 June 2012 04:00 Go to previous message
formatyk is currently offline  formatyk
Messages: 2
Registered: June 2012
Location: a
Junior Member
not working .

default=0
timeout=1


title OpenVZ (2.6.18-308.el5.028stab099.3)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-308.el5.028stab099.3 root=/dev/sda1
initrd /boot/initrd-2.6.18-308.el5.028stab099.3.img
#title OpenVZ (2.6.18-274.18.1.el5.028stab098.1)
#kernel /boot/vmlinuz-2.6.18-274.18.1.el5.028stab098.1 root=/dev/sda1 ro sysfs.deprecated=1 selinux=0
#root (hd0,0)
#initrd /boot/initrd-2.6.18-274.18.1.el5.028stab098.1.img
#title OpenVZ (2.6.18-274.7.1.el5.028stab095.1)
#kernel /boot/vmlinuz-2.6.18-274.7.1.el5.028stab095.1 root=/dev/sda1 ro sysfs.deprecated=1 selinux=0
#root (hd0,0)
#initrd /boot/initrd-2.6.18-274.7.1.el5.028stab095.1.img
#title OpenVZ (2.6.18-274.3.1.el5.028stab094.3)
#kernel /boot/vmlinuz-2.6.18-274.3.1.el5.028stab094.3 root=/dev/sda1 ro sysfs.deprecated=1 selinux=0
#root (hd0,0)
#initrd /boot/initrd-2.6.18-274.3.1.el5.028stab094.3.img
#title CentOS (2.6.32-042stab039.2)
#kernel /boot/vmlinuz-2.6.32-042stab039.2 root=/dev/sda1 ro sysfs.deprecated=1
#root (hd0,0)
#initrd /boot/initrd-2.6.32-042stab039.2.img
#title linux centos5_64
#kernel /boot/bzImage-2.6.38.2-xxxx-grs-ipv6-64 root=/dev/sda1 ro
#root (hd0,0)
Previous Topic: tcpsndbuf barrier vs limit
Next Topic: route ipv6 while gateway is on a different subnet.
Goto Forum:
  


Current Time: Sat Jun 28 18:29:24 GMT 2025

Total time taken to generate the page: 0.02013 seconds