OpenVZ Forum



Members   Search      Help    Register    Login    Home
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 12:50 Go to next message
Rick C is currently offline Rick C
Messages: 6
Registered: August 2007
Location: Manchester, UK
Junior Member

From: *surfdsl.murphx.net
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 12: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 12:59 Go to previous messageGo to next message
locutius is currently offline locutius
Messages: 125
Registered: August 2007
Senior Member
From: *bb.sky.com
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 13: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

From: *surfdsl.murphx.net
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 13:13 Go to previous messageGo to next message
locutius is currently offline locutius
Messages: 125
Registered: August 2007
Senior Member
From: *bb.sky.com
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 13: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

From: *surfdsl.murphx.net
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 13: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 13:24 Go to previous messageGo to next message
locutius is currently offline locutius
Messages: 125
Registered: August 2007
Senior Member
From: *bb.sky.com
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 15: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

From: *surfdsl.murphx.net
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 16:12 Go to previous messageGo to next message
locutius is currently offline locutius
Messages: 125
Registered: August 2007
Senior Member
From: *bb.sky.com
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 16: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

From: *surfdsl.murphx.net
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 17: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

From: *surfdsl.murphx.net
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 15:12 Go to previous messageGo to next message
formatyk is currently offline formatyk
Messages: 2
Registered: June 2012
Location: a
Junior Member
From: *wolv.cable.virginmedia.com
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] Fri, 22 June 2012 23:28 Go to previous messageGo to next message
Ales is currently offline Ales
Messages: 225
Registered: May 2009
Senior Member
From: *dynamic.sbb.rs
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 00:00 Go to previous message
formatyk is currently offline formatyk
Messages: 2
Registered: June 2012
Location: a
Junior Member
From: *wolv.cable.virginmedia.com
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: Wed May 22 20:54:42 EDT 2013
Powered by FUDforum Powered by Parallels Virtuozzo Containers