ProxMox is selecting the wrong directory for templates...

christian.a

New Member
Dec 14, 2011
10
0
1
I have made a new install on debian 7.5 and after downloading the openvz templates through the "Content" -> "Template" -> select one and click "Download" I try to create a "CT" I get the following error:

Code:
[COLOR=#000000][FONT=tahoma]vztmpl-dl ERROR: template /var/lib/vz/template/cache/centos-6-standard_6.3-1_i386.tar.gz not found![/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Cached OS template /var/lib/vz/template/cache//var/lib/vz/template/cache/centos-6-standard_6.3-1_i386.tar.gz.tar[.gz|.bz2|.xz] not found[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Destroying container private area: /var/lib/vz/private/100[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Creation of container private area failed[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK ERROR: command 'vzctl --skiplock create 100 --ostemplate /var/lib/vz/template/cache/centos-6-standard_6.3-1_i386.tar.gz --private /var/lib/vz/private/100' failed: exit code 91[/FONT][/COLOR]

This shows to me, that the directory is not correctly resolved.... (it adds the real directory to the standard directory - tried with different custom directories for templates and isos...)

Is this a known bug?

regards
 
Last edited:
post your:

> pveversion -v
> cat /etc/pve/storage.cfg
 
Thanks for you quick reply!

Here you are:
> pveversion -v
proxmox-ve-2.6.32: 3.1-114 (running kernel: 2.6.32-26-pve)
pve-manager: 3.1-21 (running version: 3.1-21/93bf03d4)
pve-kernel-2.6.32-26-pve: 2.6.32-114
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: 1.0-23
libpve-common-perl: 3.0-8
libpve-access-control: 3.0-7
libpve-storage-perl: 3.0-17
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-4
vzctl: 4.7.2-1
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1


> cat /etc/pve/storage.cfg

dir: iso
path /var/vz/iso
shared
content iso
maxfiles 5


dir: local
path /var/lib/vz
content images,vztmpl,rootdir
maxfiles 0


dir: templates
path /var/vz/templates
shared
content images,vztmpl
maxfiles 5


dir: backup
path /home/vz/backup
shared
content backup
maxfiles 5
 
does it work if you store the template in local storage? ( and not in: dir: templates)?
 
hi, thanks for your reply!

The saving is done by the downloader. First I tried with the local storage. And it did work as above (so it did not work...) than I tried the dir: template ...

Best Regards
 
cat /etc/apt/sources.list
#


# deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official amd64 CD Binary-1 20140426-13:37]/ wheezy main


# deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official amd64 CD Binary-1 20140426-13:37]/ wheezy main


deb http://cdn.debian.net/debian/ wheezy main
deb-src http://cdn.debian.net/debian/ wheezy main


deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main


# wheezy-updates, previously known as 'volatile'
deb http://cdn.debian.net/debian/ wheezy-updates main
deb-src http://cdn.debian.net/debian/ wheezy-updates main


# deb http://downloads.linux.hp.com/SDR/downloads/MCP/debian wheezy/current non-free
deb http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/ squeeze/current non-free


deb http://download.virtualbox.org/virtualbox/debian squeeze contrib


# PVE repository provided by proxmox.com, only for installation (this repo will stay on 3.1)
# deb http://download.proxmox.com/debian wheezy pve
deb [arch=amd64] http://download.proxmox.com/debian wheezy pve


# security updates
deb http://security.debian.org/ wheezy/updates contrib


deb http://cdn.debian.net/debian/ wheezy contrib non-free

With "Installer" I mean the "Porxmox on an existing debian" thing.

Doing an apt-get install:
apt-get -f install proxmox-ve-2.6.32 ntp ssh lvm2 postfix ksm-control-daemon vzprocps open-iscsi bootlogd



I do not think this is a vzctl problem:

Error message:

vztmpl-dl ERROR: template /var/vz/templates/template/cache/centos-6-standard_6.3-1_i386.tar.gz not found!
Cached OS template /var/lib/vz/template/cache//var/vz/templates/template/cache/centos-6-standard_6.3-1_i386.tar.gz.tar[.gz|.bz2|.xz] not found
Destroying container private area: /var/lib/vz/private/102
Creation of container private area failed
TASK ERROR: command 'vzctl --skiplock create 102 --ostemplate /var/vz/templates/template/cache/centos-6-standard_6.3-1_i386.tar.gz --private /var/lib/vz/private/102' failed: exit code 91


You can see the "
Cached OS template /var/lib/vz/template/cache//var/vz/templates/template/cache/centos-6-standard_6.3-1_i386.tar.gz.tar[.gz|.bz2|.xz] not found" is searching in some strange directory construction. Looks like proxmox is triening toi give the wong dir to the vzctl...
 

With "Installer" I mean the "Porxmox on an existing debian" thing.

Doing an apt-get install:



I do not think this is a vzctl problem:

Error message:



You can see the "
Cached OS template /var/lib/vz/template/cache//var/vz/templates/template/cache/centos-6-standard_6.3-1_i386.tar.gz.tar[.gz|.bz2|.xz] not found" is searching in some strange directory construction. Looks like proxmox is triening toi give the wong dir to the vzctl...

again, you use not the vzctl package from Proxmox VE, therefore its wrong. follow the recommendations.

btw, your sources.list needs some love, compare with:
http://pve.proxmox.com/wiki/Downloads#Update_a_running_Proxmox_Virtual_Environment_3.x_to_latest_3.2
 
Finally I downloaded the InstallerCD and all worked fine. Just had to install the needed HP driver for my Proliant.

Regards
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!