Installation guide
43 
Managing EZ Templates 
Preparing OS EZ Templates for Creating 
Containers 
OS EZ templates are used to create Containers on their basis. However, before you can use an OS 
EZ template for creating a Container, you need to do the following: 
1  Install the OS EZ template on the Node. 
2  Cache the installed OS EZ template. 
To install a new OS EZ template on the Node, you can use the vzpkg install template 
command. For example, to install the CentOS 5 OS EZ template, you can run this command: 
# vzpkg install template centos-5-x86-ez-4.7.0-3.noarch.rpm 
Preparing... ################################# [100%] 
 1:centos-5-x86 ################################# [100%] 
# vzpkg list 
centos-5-x86 
As you see, the centos-5-x86 EZ template is now installed on the Node. The corresponding 
path is /vz/template/centos/5. However, before you can start using the centos-5-x86 EZ 
template as a basis for creating Containers, you need to cache it. This can be done wiht the vzpkg 
create cache command: 
Note: To cache an OS EZ template, you may need first to set up a package repository for the template. 
For example, you have to build a special repository for all commercial versions of the Linux distributions 
(e.g., Red Hat Linux Enterprise 4 or 5). Detailed information on managing package repositories is 
provided in the Setting Up Repositories and Proxy Servers for EZ Templates section (p. 27). 
# vzpkg create cache centos-5-x86 
... 
Complete! 
Packing cache file centos-5-x86.tar.gz ... 
Cache file centos-5-x86.tar.gz [14M] created. 
The created tar archive is put to the /vz/template/cache directory on the Node: 
# ls /vz/template/cache 
centos-5-x86.tar.gz 
Now you can use the centos-5-x86 EZ template for creating Containers. Detailed information on 
how to create Containers on the basis of OS EZ templates is provided in the Parallels Virtuozzo 
Containers 4.7 User's Guide. 










