Precreated templates

To have a template file automatically show up in the VM Create Template drop down you have to name your file like this:
os-osversion-name_nameversion_arch.tar.gz
ubuntu-8.04-RailsServer_2.2.3-1_amd64.tar.gz
 
I tried to create a template for cPanel and I have similar problems:

Code:
centos-5-cpanel_5.2-11.24_i386.tar.gz

Package: centos-5-cpanel
Version: 5.2-11.24
Type: openvz
OS: centos-5
Section: system
Maintainer: me
Location: http://##/centos-5-cpanel_5.2-11.24_i386.tar.gz
Infopage: http://pve.proxmox.com/wiki
md5sum: dc3a001747e0141fc06d74ee81ce207f
Description: cPanel 11.24 R + CentOS 5

logs
Code:
unable to parse appliance record: version = '5.2-11.24'
found incomplete appliance records
 
Last edited:
It appears that there should not be any "." in the build number after the base version. Try this:

Code:
Rename file as: centos-5-cpanel_5.2-1124_i386.tar.gz
 
Place in the apl-available file:
======================
Package: centos-5-cpanel
Version: 5.2-1124
Type: openvz
OS: centos-5
Section: system
Maintainer: me
Location: [URL]http://##/centos-5-cpanel_5.2-1124_i386.tar.gz[/URL]
Infopage: [URL]http://pve.proxmox.com/wiki[/URL]
md5sum: dc3a001747e0141fc06d74ee81ce207f
Description: cPanel 11.24 R + CentOS 5
 The second line of the description onwards must begin with a space
 
I've noticed, that PVE manager accepts only i386 architecture in the names of templates. Such behaviour is explained by the next lines in the code:

ProxMox PVE v.1.4, "/usr/share/perl5/PVE/APLInfo.pm", Line 193:
Code:
    $template =~ s/\.tar\.gz$//;
    $template =~ s/_i386$//;
So, any different text rather "_i386.tar.gz" in the file name leads to ignoring this file as "known application" by the PVE web interface.

I think that it is either a bug or a nonsense. I would be very glad to find this issue fixed in following versions of ProxMox.
 
Last edited:
I think that it is either a bug or a nonsense. I would be very glad to find this issue fixed in following versions of ProxMox.

It is neither a bug nor nonses - support for other architectures is simply not implemented - but it is on our todo list.
 
I've noticed, that PVE manager accepts only i386 architecture in the names of templates. Such behaviour is explained by the next lines in the code:

ProxMox PVE v.1.4, "/usr/share/perl5/PVE/APLInfo.pm", Line 193:
Code:
    $template =~ s/\.tar\.gz$//;
    $template =~ s/_i386$//;
So, any different text rather "_i386.tar.gz" in the file name leads to ignoring this file as "known application" by the PVE web interface.

I think that it is either a bug or a nonsense. I would be very glad to find this issue fixed in following versions of ProxMox.

if you upload a template e.g. via web interface, i386 and amd64 is supported.
 

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!