Installation guide
40 
Managing EZ Templates 
Setting Up an RHN Proxy Server for RHEL OS EZ Templates 
If you plan to run Red Hat Enterprise Linux 4 (RHEL 4) or 5 (RHEL 5) in Containers, you can create 
a special caching proxy server—RHN (Red Hat Network) Proxy Server. Using the RHN proxy 
server, you can greatly reduce your Internet bandwidth consumption and more rapidly apply 
software updates to Containers. RHN Proxy Servers can be created using the vzrhnproxy utility 
shipped with Parallels Virtuozzo Containers. This utility can be installed on any computer (including 
Containers) running the RHEL 4 and RHEL 5 Linux distributions with the rpm -i command. 
Notes: 
1. You may need to install a number of additional packages to satisfy the vzrhnproxy dependencies. 
2. You can also try to deploy an RHN Proxy Server on systems running other RHEL-based distributions 
(e.g., CentOS 6), but vzrhnproxy has not been extensively tested with them. 
Let us assume that you wish to create an RHN Proxy Server on the server with the IP address of 
192.168.10.10 that will serve all Containers running the 32-bit version of RHEL 5 and residing 
on the Node with the hostname of mycomputer1 and the IP address of 192.168.0.125. To do 
this, perform the following operations: 
1  Log in to the server where you are planning to create the RHN Proxy Server (further referred to 
as Proxy Server) and make sure the vzrhnproxy utility is installed on this server. 
2  Specify a valid user name and password you use to log in to Red Hat Network (RHN) as the 
values of the REDHAT_LOGIN and REDHAT_PASSWORD parameters, respectively, in the 
/etc/vz/pkgproxy/rhn.conf file on the Proxy Server. These credentials will be used by 
vzrhnproxy in the next step to register your system profile with RHN. For example: 
# vi /etc/vz/pkgproxy/rhn.conf 
REDHAT_LOGIN="user1" 
REDHAT_PASSWORD="2WSX0OKM" 
... 
3  Execute the following command on the Proxy Server: 
# vzrhnproxy register i386 5Server mycomputer1 192.168.0.125 
registering for i386-5Server-mycomputer1 
... 
where i386 and 5Server denote the system architecture and the operating system you wish 
to register with RHN (in our case, we are registering the 32-bit version of the Red Hat Enterprise 
Linux 5 server). 
During the command execution, vzrhnproxy will do the following: 
•  Connect to Red Hat Network (available at http://rhn.redhat.com) with the credentials 
specified in the rhn.conf file in the previous step. 
•  Create a profile and register it with RHN for the system running the 32-bit version of RHEL 
5. 
•  Download the headers of the packages comprising the 32-bit RHEL 5 distribution to the 
Proxy Server. 










