Installation guide
28 
Managing EZ Templates 
Managing Default Repositories 
When you install an OS EZ template on the Node, it is preconfigured to use one or several package 
repositories storing Linux OS vendor's file sources. The path to the repositories for most OS EZ 
templates and their application EZ templates is automatically set during the EZ template installation 
in the mirrorlist or repositories files located in the 
/vz/template/<os_name>/<os_version>/<arch>/config/os/default directory. 
Thus, you do not have to perform any additional operations to start using an installed OS EZ 
template (i.e. cache it and create Containers on its basis). The only requirement your system must 
meet is to have an active Internet connection to access the servers where the preconfigured 
repositories are located. 
Let us assume that you want to use the 32-bit version of Fedora 16 to base your Containers on. To 
do this, you install the fedora-core-16-x86-tmpl-4.7.0-3.noarch.rpm EZ template on 
the Node: 
# vzpkg install template fedora-core-16-x86-tmpl-4.7.0-3.noarch.rpm 
Preparing... ############################## [100%] 
 1:fedora-core-16-x86-tmpl ############################## [100%] 
After the OS EZ template has been successfully installed, you can explore the default repositories 
for Fedora 16 in the /vz/template/fedora/16/x86/config/os/default/mirrorlist 
file. For example: 
# cat /vz/template/fedora/16/x86/config/os/default/mirrorlist 
$SW_SERVER/download/mirrors/fedora-core-16 
$SW_SERVER/download/mirrors/updates-released-fc16 
http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-16&arch=i386 
http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f16&arch=i386 
This file lists the repositories set to handle the Fedora 16 OS EZ template: 
•  Repositories on the Parallels web server are defined in the first two lines. $SW_SERVER denotes 
the string whose value is specified in the /vz/template/conf/vztt/url.map file. In our 
case, this string is the URL of the Parallels web server. The repositories on the Parallels web 
server keep a number of software packages needed for the correct operation of the fedora-
core-16-x86 template. Along with $SW_SERVER, the url.map file contains the list of URLs 
for all Linux distributions supported by Parallels Virtuozzo Containers and having official 
repositories. 
•  Repositories on the Fedora web server are defined in the third and fourth lines. These 
repositories store all RPM packages for the Fedora 16 distribution. 
The priority according to which software packages are downloaded from the specified servers is 
determined by the repositories order in the mirrorlist file. So in the example above, RPM 
packages from the Parallels web server are downloaded first and, after that, all the packages from 
the Fedora server. 










