Enable Yum Repositories

If the system isn't subscribed to ULN and you want to use the Oracle KVM Stack, the appropriate yum repository must be enabled before installing the virtualization packages. For more details, see:

Note:

The Default KVM Stack is available in the core system repositories and can be installed without enabling any other repositories. If the Oracle KVM Stack is already installed and you intend to switch KVM stacks, see Switch KVM Stacks for more details.

Oracle Linux 9: Enable Yum Repositories

The Default KVM Stack is available in the standard yum repositories on an Oracle Linux 9 system. To use the Oracle KVM Stack, the ol9_kvm_utils yum repository must be enabled before installing the virtualization packages.
What Do You Need?

Steps

  1. Install or update the release package:
    sudo dnf install -y oraclelinux-release-el9
  2. Enable the Oracle Linux 9 yum repositories, by running the dnf config-manager command:
    sudo dnf config-manager --enable ol9_kvm_utils
  3. Proceed to the topic for installing the virtualization packages (Install Virtualization Packages).

Oracle Linux 8: Enable Yum Repositories

The Default KVM Stack is available as an application stream module in the standard yum repositories on an Oracle Linux 8 system. To use either of the Oracle KVM Stacks, the ol8_kvm_appstream yum repository must be enabled before installing the chosen virtualization application stream module.
What Do You Need?

Steps

Follow these steps to enable the ol8_kvm_appstream repository.

  1. Install or update the release package:
    sudo dnf install -y oraclelinux-release-el8
  2. Enable the Oracle Linux 8 yum repository, by running the dnf config-manager command:
    sudo dnf config-manager --enable ol8_kvm_appstream
  3. After enabling the Oracle Linux 8 KVM appstream repository, proceed to the topic for installing the virtualization packages (Install Virtualization Packages).

Oracle Linux 7: Enable the Yum Repository

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 Default KVM Stack is available in the standard yum repositories on an Oracle Linux 7 system. To use the Oracle KVM Stack, the ol7_kvm_utils yum repository must be enabled before installing the virtualization packages.

What Do You Need?

Steps

Follow these steps to enable an Oracle Linux repository.

  1. Install or update the release package:
    sudo yum install -y oraclelinux-release-el7
  2. Enable the ol7_kvm_utils yum repository by performing one of the following:
    • Edit the repository configuration file at /etc/yum.repos.d/virt-ol7.repo and set the enabled option to 1:
      [ol7_kvm_utils]
      name=Oracle Linux $releasever KVM Utilities ($basearch)
      baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/kvm/utils/$basearch/
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
      gpgcheck=1
      enabled=1
    • Use the yum-config-manager command if the yum-utils package is installed.
      For example:
      sudo yum-config-manager --enable ol7_kvm_utils
  3. (Optional) To prevent yum from installing unwanted package versions from a particular repository, set an exclude option using the yum-config-manager command.
    For example, to prevent yum from installing unwanted virtualization packages that are included in the ol7_developer_EPEL repository, you would type:
    sudo yum-config-manager --setopt="ol7_developer_EPEL.exclude=libvirt* qemu*" --save
  4. Proceed to the topic for installing the virtualization packages (Install Virtualization Packages).