Problems creating VM from Virtual Appliance

Bergcube

Member
Mar 8, 2009
31
0
6
58
Norway
When trying to create a new virtual machine from a downloaded Virtual Appliance I get this:

Code:
[Long command string omitted] failed with exit code 5:
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.
I am logged into the GUI as root, so this is a bit of a surprise. Any advice?


Kinds regards,
Bjørn Ingmar Berg
 
When trying to create a new virtual machine from a downloaded Virtual Appliance I get this:

Code:
[Long command string omitted] failed with exit code 5:
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.
I am logged into the GUI as root, so this is a bit of a surprise. Any advice?


Kinds regards,
Bjørn Ingmar Berg

Hi,
do you use an kernel with openvz-support (2.6.18, or 2.6.24)?

Udo
 
Hi,
do you use an kernel with openvz-support (2.6.18, or 2.6.24)?

Udo

Ahum. I guess I have made a fool of myself. When I read the howto on how to upgrade I saw there were three kernels. I simply went for the one with the highest number (32) thinking it was the newest. Replacing it should be as simple as a quick apt-get, so I'll try that and see what happens.

Thanks a lot!
 
Hi just for says I have the same problem solved with the same solution
And don't forget to clean you menu.lst ;)
It's a bug ?

Thanks

Totoro
 
i'm using PVE 1.6 with 2.6.32-25 kernel.

Code:
proxmox:~# pveversion -v
pve-manager: 1.6-5 (pve-manager/1.6/5261)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.6-7
pve-kernel-2.6.32-4-pve: 2.6.32-25
pve-kernel-2.6.35-1-pve: 2.6.35-7
qemu-server: 1.1-22
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-14
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-8
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.5-2
ksm-control-daemon: 1.0-4
but everytime i create the OpenVZ in the VM, i get this error message:
Code:
/usr/bin/pvectl vzcreate 104 --disk 8 --ostemplate local:vztmpl/debian-4.0-proxmox-mailgateway_2.6-2_i386.tar.gz --rootpasswd $1$X9LrHngw$62BsDHxNKDTQXbu58GkLu/ --hostname mgate.mbs.co.id --nameserver 172.16.4.16 --nameserver 172.16.4.52 --searchdomain mbs.co.id --onboot no --ipset 172.16.4.22 --swap 512 --mem 512 --cpus 1
unable to create VE 104: command 'vzctl create 104 --ostemplate debian-4.0-proxmox-mailgateway_2.6-2_i386 --config pve.auto' failed with exit code 5:
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.

unable to apply VM settings -
how to fix it?
 
Last edited by a moderator:
proxmox:~# pveversion -v
pve-manager: 1.6-5 (pve-manager/1.6/5261)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.6-7
pve-kernel-2.6.32-4-pve: 2.6.32-25
pve-kernel-2.6.35-1-pve: 2.6.35-7
qemu-server: 1.1-22
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-14
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-8
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.5-2
ksm-control-daemon: 1.0-4

but everytime i create the OpenVZ in the VM, i get this error message:
/usr/bin/pvectl vzcreate 104 --disk 8 --ostemplate local:vztmpl/debian-4.0-proxmox-mailgateway_2.6-2_i386.tar.gz --rootpasswd $1$X9LrHngw$62BsDHxNKDTQXbu58GkLu/ --hostname mgate.mbs.co.id --nameserver 172.16.4.16 --nameserver 172.16.4.52 --searchdomain mbs.co.id --onboot no --ipset 172.16.4.22 --swap 512 --mem 512 --cpus 1
unable to create VE 104: command 'vzctl create 104 --ostemplate debian-4.0-proxmox-mailgateway_2.6-2_i386 --config pve.auto' failed with exit code 5:
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.

unable to apply VM settings -

how to fix it?
Hi,
you run the 2.6.35 kernel! This kernel is kvm-only. If you wan't to use OpenVZ use 2.6.32 or 2.6.18.

Udo
 
Hi,
you run the 2.6.35 kernel! This kernel is kvm-only. If you wan't to use OpenVZ use 2.6.32 or 2.6.18.

Udo

thanks for your information... btw. how to downgrade to 2.6.32?
 
thanks for your information... btw. how to downgrade to 2.6.32?
Hi,
your pveversion shows that you have allready the 2.6.32:
Code:
proxmox:~# pveversion -v
pve-manager: 1.6-5 (pve-manager/1.6/5261)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.6-7
pve-kernel-2.6.32-4-pve: 2.6.32-25
pve-kernel-2.6.35-1-pve: 2.6.35-7
...
you need only to select the right kernel during boot - or (better) change the order in /boot/grub/menu.lst (i guess "default 1", or switch the config-lines).

Udo
 
you need only to select the right kernel during boot - or (better) change the order in /boot/grub/menu.lst (i guess "default 1", or switch the config-lines).

Udo

thanks again... OpenVZ is now running in my PVE 1.6.