4.2. Installing Red Hat Virtualization on an existing Red Hat Enterprise Linux system

4.2. Installing Red Hat Virtualization on an existing Red Hat Enterprise Linux system

The section describes the steps necessary to install Red Hat Virtualization on a working copy of Red Hat Enterprise Linux.

Adding packages to your list of Red Hat Network entitlements

This section will describe the procedure for enabling Red Hat Network (RHN) entitlements to install the Red Hat Virtualization packages on your systems. You need to have these entitlements enabled and the packages installed to set up host systems.

  1. Log in to RHN using your RHN username and password.

    RHN registration

    You machines must be registered with Red Hat Network and you require a valid Red Hat Network account in order to install Red Hat Virtualization on Red Hat Enterprise Linux.

    To register an unregistered installation of Red Hat Enterprise Linux, run the rhn_register command and follow the prompts.

    if you do not have a valid Red Hat subscription, visit the Red Hat online store.

  2. Select the systems you want to install Red Hat Virtualization on.

  3. In the System Properties section the present systems entitlements are listed next to the Entitlements header. Use the (Edit These Properties) link to change your entitlements.

  4. Select the Virtualization checkbox.

Your system is now entitled to receive the Red Hat Virtualization packages. The next section covers installing these packages.

Installing Red Hat Virtualization with yum

To commence using virtualization on Red Hat Enterprise Linux you will need the xen and kernel-xen packages. The xen package contains the Xen hypervisor and Xen tools. The kernel-xen package contains a modified linux kernel which runs as a virtual machine guest on the Xen hypervisor.

To install the xen and kernel-xen packages, run:

# yum install xen kernel-xen

Fully virtualized guests on the Itanium® architecture require the guest firmware image package(xen-ia64-guest-firmware) from the supplementary installation DVD. This package can also be can be installed from RHN with the yum command:

# yum install xen-ia64-guest-firmware
Other recommended virtualization packages:

Provides the virt-install command for creating virtual machines.


The libvirt-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the libvirt library to use the Xen virtualization framework.


libvirt is an API library which uses the Xen virtualization framework, and the virsh command line tool to manage and control virtual machines.


Virtual Machine Manager provides a graphical tool for administering virtual machines. It uses libvirt library as the management API.

To install the other recommended virtualization packages, use the command below:

# yum install virt-manager libvirt libvirt-python libvirt-python python-virtinst

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.