OpenVZ Forum


Home » General » Support » unable to open /dev/vzctl on Fedora 16 (unable to open /dev/vzctl on Fedora 16)
unable to open /dev/vzctl on Fedora 16 [message #45550] Sat, 17 March 2012 05:19 Go to next message
rakiklaus is currently offline  rakiklaus
Messages: 5
Registered: March 2012
Junior Member
I have installed Fedora 16 and followed the instructions on the Wiki. I installed the templates in /vz/template/cache ,

see below:

[root@openvz rc.d]# cd /vz/template/cache
[root@openvz cache]# ls
centos-6-x86.tar.gz scientific-6-x86.tar.gz
debian-6.0-x86.tar.gz suse-11.4-x86.tar.gz
[root@openvz cache]# uname -a
Linux openvz 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686 i386 GNU/Linux
[root@openvz cache]# uname -r
3.1.0-7.fc16.i686
[root@openvz cache]# !111
vzctl create 101 --ostemplate centos-6-x86
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.
[root@openvz cache]# ls -al cen*
-rwxrwxr-x 1 victor victor 200985021 Mar 15 00:52 centos-6-x86.tar.gz
[root@openvz cache]#


I have searched everywhere and was not successfull.

If I do a fdisk -l there is no /dev/vzctrl

Disk /dev/sda: 160.0 GB, 160041885696 bytes
207 heads, 18 sectors/track, 83892 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x92e4538c

Device Boot Start End Blocks Id System
/dev/sda1 * 18 33556479 16778231 7 HPFS/NTFS/exFAT
/dev/sda2 167751972 255642596 43945312+ 83 Linux
/dev/sda3 255643646 257642495 999425 5 Extended
/dev/sda4 33556480 126687231 46565376 83 Linux
/dev/sda5 255643648 257642495 999424 82 Linux swap / Solaris

Partition table entries are not in disk order
[root@openvz cache]#

I have Fedora 16 installed on /dev/sda5 and do get the
openvz barefoot symbol when I log in.

vzlist -a gives:

vzlist -a
Unable to open /proc/vz/veinfo: No such file or directory
Unable to open /proc/user_beancounters: No such file or directory
[root@openvz cache]#

There is no /proc/vz directory:

cd /proc/vz
bash: cd: /proc/vz: No such file or directory
[root@openvz cache]# ls -al proc/v*
ls: cannot access proc/v*: No such file or directory
[root@openvz cache]#

I have been stuck for two days on this.

Please help and thank you!

Rakiklaus




Re: unable to open /dev/vzctl on Fedora 16 [message #45552 is a reply to message #45550] Sat, 17 March 2012 06:53 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

>[root@openvz cache]# uname -r
>3.1.0-7.fc16.i686


Please install and boot an OpenVZ kernel.

Bye,
Thorsten
Re: unable to open /dev/vzctl on Fedora 16 [message #45555 is a reply to message #45550] Sat, 17 March 2012 10:36 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Thorsten's advice is correct but I don't think you'll be able to use openvz with Fedora 16 at the moment.

Latest RHEL 6 openvz kernels and Fedora 16 systemd aren't mixing up well, so your Fedora 16 won't boot with an openvz kernel.
Re: unable to open /dev/vzctl on Fedora 16 [message #45557 is a reply to message #45555] Sun, 18 March 2012 02:45 Go to previous message
rakiklaus is currently offline  rakiklaus
Messages: 5
Registered: March 2012
Junior Member
Thorsten and Ales,

Thank you for your suggestions. I will instead try debian and the open vzkernel and see how that goes.

Rakiklaus
Previous Topic: Migrate Kernel Requirements
Next Topic: Debian Lenny created container immediately stops
Goto Forum:
  


Current Time: Sat Oct 19 20:48:40 GMT 2024

Total time taken to generate the page: 0.04961 seconds