5.2. Installing Virtualization Packages on an Existing Red Hat Enterprise Linux System
subscription-manager registercommand and follow the prompts.
To use virtualization on Red Hat Enterprise Linux you require at least the
qemu-img packages. These packages provide the user-level KVM emulator and disk image manager on the host Red Hat Enterprise Linux system.
qemu-imgpackages, run the following command:
# yum install qemu-kvm qemu-img
Recommended virtualization packages
- Provides the
virt-installcommand for creating virtual machines.
- The libvirt package provides the server and host side libraries for interacting with hypervisors and host systems. The libvirt package provides the
libvirtddaemon that handles the library calls, manages virtual machines and controls the hypervisor.
- The libvirt-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the libvirt API.
virt-manager, also known as Virtual Machine Manager, provides a graphical tool for administering virtual machines. It uses libvirt-client library as the management API.
- The libvirt-client package provides the client-side APIs and libraries for accessing libvirt servers. The libvirt-client package includes the
virshcommand line tool to manage and control virtual machines and hypervisors from the command line or a special virtualization shell.
# yum install virt-manager libvirt libvirt-python python-virtinst libvirt-client
The virtualization packages can also be installed from package groups. The following table describes the virtualization package groups and what they provide.
qemu-imgpackage is installed as a dependency of the
Virtualizationpackage group if it is not already installed on the system. It can also be installed manually with the
yum install qemu-imgcommand as described previously.
Table 5.1. Virtualization package groups
|Package Group||Description||Mandatory Packages||Optional Packages|
|Virtualization||Provides an environment for hosting virtual machines||qemu-kvm||qemu-guest-agent, qemu-kvm-tools|
|Virtualization Client||Clients for installing and managing virtualization instances||python-virtinst, virt-manager, virt-viewer||virt-top|
|Virtualization Platform||Provides an interface for accessing and controlling virtual machines and containers||libvirt, libvirt-client, virt-who, virt-what||fence-virtd-libvirt, fence-virtd-multicast, fence-virtd-serial, libvirt-cim, libvirt-java, libvirt-qmf, libvirt-snmp, perl-Sys-Virt|
|Virtualization Tools||Tools for offline virtual image management||libguestfs||libguestfs-java, libguestfs-tools, virt-v2v|
yum groupinstall <groupname>command. For instance, to install the Virtualization Tools package group, run the
yum groupinstall "Virtualization Tools"command.