Installation guide

68
Managing EZ Templates
Creating Historical Mirrors for Backed Up
Containers
If you have one or several Containers that are based on OS EZ templates and that were backed up
long time ago, you may come across problems when trying to restore them on a destination server
other than the source server (i.e. the Node where the Containers were hosted during their backing
up). This may happen when the following conditions are simultaneously met:
The destination server does not have one or several software packages included in the OS EZ
template the Container being restored is based on.
The missing packages are not available in the public repositories set to handle the OS EZ
template; so, they cannot be downloaded and installed on the destination server. The absence
of certain software packages in the public repositories may come out of the fact that some
packages that were installed in the Container at the moment of its backing up have become
obsolete in the course of time and been replaced with newer versions.
To avoid the aforementioned problems in the future, you can create the so-called 'historical' mirrors
which will store an archive of all software packages present in the public repositories and
containing the packages installed in the Container during its backing up.
Let us assume that you backed up a number of Containers based on the Fedora 13 OS EZ
template. Now to be sure that you always have a repository containing all the necessary RPM
packages for your backed up Containers, you wish to create a historical mirror of an official Fedora
13 repository. In our example below, we presume the following:
The historical mirror will be located inside Container 101. You can use any OS template to base
the Container on.
Note: We recommend that you always place your local repositories inside separate Containers to not
compromise the Node security. In particular, it is of significant importance if you are going to provide
access to your repositories through the http and ftp protocols.
Container 101 is started and has the IP address of 123.145.145.123 assigned to it.
The mirror will be created on a web server, i.e. it can be accessed from other networks through
the http protocol.
The apache web server is installed and running inside Container 101; the default document
root for apache is /var/www/html, i.e. the apache web server stores its sites in the
/vz/root/101/var/www/html directory on the Node.
The apache user and group inside Container 101 are apache.
To create a historical mirror for Fedora 13, you should perform the following operations:
1 Change to the /vz/root/101/var/www/html directory and create the fed8mirror
subdirectory within it:
# cd /vz/root/101/var/www/html