Article ID: 118648, created on Nov 14, 2013, last review on Mar 23, 2015

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor
  • Virtual Automation


The following error appears on creating cache for a RHEL-base OS template:

Update OS template cache for redhat-el5-x86 template 
Error: URL $RH_SERVER/download/mirrors/redhat-el5 contents undefined variable 
You can define this variable in /etc/vztt/ 


Error invoking external utility: vzctl create failed: Cached package set 'redhat-el6-x86_64' is not found, run create cache utility...
Creating OS template cache for redhat-el6-x86 template
Error: URL $RH_SERVER/download/mirrors/redhat-el6 contents undefined variable
    You can define this variable in /etc/vztt/
    See Parallels Cloud Server Templates Management Guide for more details.


Commercial Linux distributions (e.g. Red Hat Enterprise Linux or SUSE Linux Enterprise Server) do not have official publicly available repositories. So, they are disabled by default in the repositories URL map:

[root@vz ~]# egrep 'RH_SERVER|SLES' /etc/vztt/
#$RH_SERVER     http://
#$SLES_SERVER   http://


Acquire the commercial license to the required Linux distribution and define the repositories in the URL map.

In addition to configuring the repository of the OS itself, it is needed to create a small extra repo with special Virtuozzo RPMs. You can download them from this location:

Follow the exact OS path that is required. E.g. for redhat-el5-x86_64 template, the following location will be needed:

After that, please add this new repository to /vz/template/redhat/5e/x86_64/config/os/default/repositories and try creating the cache again.

Additional information

For RHEL, there's a possibility to setup a proxy server with vzrhnproxy utility, see the instructions in this article: Setting Up an RHN Proxy Server for RHEL OS EZ Templates

Search Words

rhel5.7 template for pvc 4.6


RHEL6 container

[Errno 14] PYCURL ERROR 22

You can define this variable in /etc/vztt/


download pvc template for rhel5.7

contents undefined variable

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 0dd5b9380c7d4884d77587f3eb0fa8ef 319940068c5fa20655215d590b7be29b c62e8726973f80975db0531f1ed5c6a2

Email subscription for changes to this article
Save as PDF