Install Virtualization Packages

WARNING:

Oracle Linux 7 is now in Extended Support. See Oracle Linux Extended Support and Oracle Open Source Support Policies for more information.

Migrate applications and data to Oracle Linux 8 or Oracle Linux 9 as soon as possible.

The following information describes how to install the virtualization packages on an Oracle Linux 7 system.

What Do You Need?

  • Administrator privileges.
  • To install the Oracle KVM Stack, the following requirements must be met:
    • Yum repository must be enabled or the ULN channel must be subscribed. See Enable the Yum Repository or Subscribe to ULN Channels for instructions.

      Note:

      To install the Default KVM Stack, you don't need to enable any repositories or subscribe to any other ULN channels.
    • The host system must be running the latest UEK R4, UEK R5, or UEK R6.

Steps

Follow these steps to install the virtualization packages on an Oracle Linux 7 system.

  1. Log in to the Oracle Linux 7 system.
  2. Ensure that the latest packages are installed on the system:
    sudo yum update
  3. Install the latest available base virtualization packages and other utilities:
    sudo yum groupinstall "Virtualization Host" sudo yum install qemu-kvm virt-install virt-viewer
  4. (Recommended) Restart the system to ensure that the packages and utilities were updated.

    Note:

    After performing a system update, reboot the system to ensure that the system restarts with the latest packages.
  5. Start, enable, or check the service of the libvirtd service. See Manage the libvirtd Service for instructions.

    Note:

    Before you can create and manage KVM instances, the libvirtd service must be started and enabled.
  6. Verify that the system can act as act as a virtual host. See Validate Host System for instructions.
  7. After verifying that the system can act as a virtual host, proceed to KVM Instances: Create and Manage.