Previous page

Next page

Locate page in Contents

Print this page

Updating OS EZ Template Caches

Virtuozzo has two types of OS EZ template caches: with and without preinstalled application templates. Each cache type can be updated with a corresponding command.

Note: 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 update the cache. For more information on how to manage repositories for commercial Linux distributions, see Setting Up Repositories and Proxy Servers for EZ Templates.

Updating OS EZ Template Caches without Preinstalled Applications

If you need to update an OS EZ template cache without preinstalled application templates, use the vzpkg update cache command.

When executed, vzpkg update cache checks the template cache directory on the server (the default is /vz/template/cache) and updates all existing tarballs there. To update a particular cache, specify the corresponding OS EZ template name. For example, to update the cache of the centos-6-x86 OS EZ template, run the following command:

# vzpkg update cache centos-6-x86

When executed, vzpkg update cache also appends the -old suffix to old tarball names (e.g., centos-6-x86.plain.ploop.tar.lzrw-old):

# ls /vz/template/cache

centos-6-x86.plain.ploop.tar.lzrw centos-6-x86.plain.ploop.tar.lzrw-old

You can also pass the -f option to vzpkg update cache to remove the existing cache and create a new one instead.

If the vzpkg update cache command cannot find caches for one or more OS EZ templates installed on the server, it creates those in the /vz/template/cache directory.

Updating OS EZ Template Caches with Preinstalled Applications

If you need to update an OS EZ template cache with preinstalled application templates, use the vzpkg update appcache command with the --update-cache option. For example, to update a centos-6-x86 OS EZ template cache with preinstalled mysql, devel, and php, run the following:

# vzpkg update appcache --ostemplate centos-6-x86 --apptemplate mysql,php,devel --update-cache