Turnkey OpenVZ Template fails on Proxmox

apmuthu

Renowned Member
Feb 26, 2009
871
12
83
Chennai - India & Singapore
github.com
While going thru' the code for Proxmox v2.0 in the GIT, OpenVX templates from the turnkeylinux site is also added to the list of default tenplates.

Downloaded the following template from:
http://downloads.sourceforge.net/pr...urnkey-mediawiki-11.3-lucid-x86-openvz.tar.gz
and renamed it:
ubuntu-11.04-mediawiki_11.3_i386.tar.gz
and moved it to the cache folder.

On creating the Virtual Machine, and attempting to start it, we get a list of errors as below:

starting init logger
stty: standard input: Invalid argument
stty: standard input: Invalid argument
* Starting Initialization hooks
* Regenerating SSH cryptographic keys
stty: standard input: Invalid argument
Generating a 1024 bit RSA private key
..................................++++++
........++++++
writing new private key to '.tmpkey.pem'
-----
writing RSA key
Err http://archive.ubuntu.com lucid-security Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.turnkeylinux.org lucid-security Release.gpg
Temporary failure resolving 'archive.turnkeylinux.org'
Err http://archive.turnkeylinux.org lucid Release.gpg
Temporary failure resolving 'archive.turnkeylinux.org'
Err http://archive.ubuntu.com lucid Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com lucid-updates Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/lucid-security/Release.gpg Temporary failure resolving 'archive.turnkeylinux.org'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/Release.gpg Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/lucid/Release.gpg Temporary failure resolving 'archive.turnkeylinux.org'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/Release.gpg Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/Release.gpg Temporary failure resolving 'archive.ubuntu.com'
W: Some index files failed to download, they have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
acpid libapache2-mod-php5 libbz2-1.0 libt1-5 linux-libc-dev php5 php5-cli
php5-common php5-gd php5-mysql
10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7382kB of archives.
After this operation, 4096B of additional disk space will be used.
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main libbz2-1.0 1.0.5-4ubuntu0.2
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main acpid 1.0.10-5ubuntu2.5
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main php5-cli 5.3.2-1ubuntu4.11
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main php5-mysql 5.3.2-1ubuntu4.11
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main libt1-5 5.1.2-3ubuntu0.10.04.1
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main php5-gd 5.3.2-1ubuntu4.11
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main libapache2-mod-php5 5.3.2-1ubuntu4.11
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main php5-common 5.3.2-1ubuntu4.11
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main linux-libc-dev 2.6.32-37.81
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ lucid-security/main php5 5.3.2-1ubuntu4.11
Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/bzip2/libbz2-1.0_1.0.5-4ubuntu0.2_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/acpid/acpid_1.0.10-5ubuntu2.5_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.3.2-1ubuntu4.11_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-mysql_5.3.2-1ubuntu4.11_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/t1lib/libt1-5_5.1.2-3ubuntu0.10.04.1_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-gd_5.3.2-1ubuntu4.11_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.3.2-1ubuntu4.11_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.2-1ubuntu4.11_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.32-37.81_i386.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php5/php5_5.3.2-1ubuntu4.11_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
...done.
* Starting Postfix Mail Transport Agent postfix
...done.
* Starting NTP server ntpd
...done.
* Starting Shell In A Box Daemon shellinabox
...done.
* Starting web server apache2
...done.
* Starting webmin
...done.

Any way we can get the VM to resolve outside correctly?
 
if you set the right network for the container it should just work. btw, the downloader is already integrated in 2.0, no need to download manually.
 
Thankyou Tom.
I tried it on PVE v1.9 after looking at the code in v2.0 that had the turnkeylinux url for appliances.
Will PVE 2.0 actually accomodate TurnkeyLinux naming of templates or convert them correctly for use in PVE?
In v1.9 that gave me the errors in the first post here, I used Venet and a fixed IP on vmbr0 as I would for all dab generated templates.
Are there any specifics for using Turnkey Linux templates in v1.x of PVE?