Installation guide
63 
Managing EZ Templates 
Updating OS EZ Template Caches 
With the release of new updates for the corresponding Linux distribution, the created OS EZ 
template cache can become obsolete. So, Parallels Virtuozzo Containers provides the vzpkg 
update cache command allowing you to quickly update any of the OS EZ template caches 
available on the Hardware Node. 
Note: If you are going to update the cache of a commercial OS EZ template (e.g. Red Hat Enterprise 
Server 5 or SLES 10), you should first update software packages in the remote repository used to handle 
this OS EZ template and then proceed with updating the EZ template cache. Detailed information on how 
to manage repositories for commercial Linux distributions is provided in the Setting Up Repositories 
and Proxy Servers for EZ Templates section (p. 27). 
When executed, vzpkg update cache checks the cache directory in the template area (by 
default, the template area is located in /vz/template) on the Hardware Node and updates all 
existing tarballs in this directory. However, you can explicitly indicate the tarball for what OS EZ 
template should be updated by specifying the OS EZ template name. For example, to update the 
tarball for the fedora-core-13-x86 OS EZ template, you can execute the following command: 
# vzpkg update cache fedora-core-13-x86 
Loading "rpm2vzrpm" plugin 
Setting up Update Process 
Setting up repositories 
base0 100% |=========================| 951 B 00:00 
base1 100% |=========================| 951 B 00:00 
base2 100% |=========================| 951 B 00:00 
base3 100% |=========================| 951 B 00:00 
... 
Upon the vzpkg update cache execution, the old tarball is renamed by receiving the -old 
suffix (for example, fedora-core-13-x86.tar.gz-old): 
# ls /vz/template/cache 
fedora-core-13-x86.tar.gz fedora-core-13-x86.tar.gz-old 
You can also pass the -f option to vzpkg update cache to remove an existing tar archive and 
create a new one instead of it. 
If the vzpkg update cache command does not find a tarball for one or several OS EZ templates 
installed on the Node, it creates tar archives of the corresponding OS EZ templates and puts them 
to the /vz/template/cache directory. 
To update an OS EZ template cache in Parallels Management Console, do the following: 
1  Select the Templates item under the corresponding Hardware Node name in the Management 
Console left tree. 
2  In the Parallels Management Console right pane, click the OS Templates tab to display the list 
of OS templates installed on the Node. 
3  Right-click the template to cache in the right pane, and choose Cache OS Template. 










