Information
Virtuozzo is standardized on general Linux components, and one of major advantages of this approach is the extremely easy templates installation.
As all other components of Virtuozzo, OS templates as well as application templates can be installed through yum.
For older versions of Virtuozzo hypervisor and Virtuozzo containers for Linux check this article:
1450 - Where can I download Virtuozzo containers for Linux OS and application templates and how do I install them?
Typical templates operations by example
Example: Install Ubuntu 12.04 64-bit OS template
[root@pcs6 ~]# yum search ubuntu-12.04-x86_64-ez
Loaded plugins: fastestmirror
Repository cl-updates is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* cl-base: repo.cloudlinux.com
=============================================================== N/S Matched: ubuntu-12.04-x86_64 ===============================================================
...
ubuntu-12.04-x86_64-ez.noarch : Ubuntu GNU/Linux 12.04 (for AMD64/Intel EM64T) OS EZ template
...
[root@pcs6 ~]# yum install ubuntu-12.04-x86_64-ez.noarch
Example: Find application templates for CentOS 6 64-bit
[root@pcs6 ~]# yum search centos-6-x86_64 | sort
========================= N/S Matched: centos-6-x86_64 =========================
centos-6-x86_64-ez.noarch : CentOS 6 (for AMD64/Intel EM64T) EZ OS Template
cyrus-imap-centos-6-x86_64-ez.noarch : Cyrus-imap for CentOS 6 (for AMD64/Intel
devel-centos-6-x86_64-ez.noarch : Development Tools for CentOS 6 (for
jre-centos-6-x86_64-ez.noarch : Java 1.6.0 OpenJDK Runtime Environment for
jsdk-centos-6-x86_64-ez.noarch : Java 1.6.0 OpenJDK for CentOS 6 (for
mailman-centos-6-x86_64-ez.noarch : Mailman for CentOS 6 (for AMD64/Intel EM64T)
mod_perl-centos-6-x86_64-ez.noarch : Mod_perl for CentOS 6 (for AMD64/Intel
mod_ssl-centos-6-x86_64-ez.noarch : Mod_ssl for CentOS 6 (for AMD64/Intel EM64T)
mysql-centos-6-x86_64-ez.noarch : MySQL for CentOS 6 (for AMD64/Intel EM64T) EZ
nginx-centos-6-x86_64-ez.noarch : high performance web server
php-centos-6-x86_64-ez.noarch : PHP for CentOS 6 (for AMD64/Intel EM64T) EZ
postgresql-centos-6-x86_64-ez.noarch : PostgreSQL for CentOS 6 (for AMD64/Intel
pp-centos-6-x86_64-ez.noarch : Parallels Hosting Panel Core components for
...
Example: Update Plesk 11 EZ template for CentOS 6 64-bit
[root@pcs6 ~]# yum update pp11-centos-6-x86_64-ez.noarch
NOTE: yum only manipulates EZ templates RPM packages, but it does not affect template caches. After installing or updating the OS template it is necessary to update cache:
[root@pcs6 ~]# vzpkg update cache OSTEMPLATENAME
Troubleshooting
If there is any issue with templates manipulations go through basic troubleshooting steps:
Verify there are correct yum repositories for EZ templates present and enabled:
[root@pcs6 ~]# yum repolist Loaded plugins: fastestmirror Repository cl-updates is listed more than once in the configuration Loading mirror speeds from cached hostfile * cl-base: repo.cloudlinux.com repo id repo name status centos-vault-os CentOSVault OS for outdated CentOS 6.1 - x86_64 6187+1 centos-vault-updates CentOSVault Updates for outdated CentOS 6.1 - x86_64 1247+6 cl-base CloudLinux Base 6474 ez-templates Parallels Cloud Server - EZ templates 1058 ez-templates-32 Parallels Cloud Server - EZ templates (32 bits) 1073 parallels-cloud-server Parallels Cloud Server Base 2315 parallels-cloud-server-updates Parallels Cloud Server Updates 54 repolist: 18408
If repositories
ez-templates
andez-templates-32
are showing 0 packages, make sure they are properly configured:[root@pcs6 ~]# grep -E 'mirror|baseurl|enabled' /etc/yum.repos.d/ez-templates.repo mirrorlist=http://updates.cloudserver.parallels.com/mirrors/templates-x86_64 enabled=1 mirrorlist=http://updates.cloudserver.parallels.com/mirrors/templates-i386 enabled=1
Clean and update yum metadata:
[root@pcs6 ~]# yum clean metadata && yum update metadata
Additional information
1450 - Where can I download Virtuozoo containers for Linux OS and application templates and how do I install them?