Install Virtualization Packages

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

What Do You Need?

  • User credentials with 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 Yum Repositories 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 R7.

Steps

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

  1. Log in to the Oracle Linux 9 system.
  2. Ensure that the latest packages are installed on the system:
    sudo dnf update
  3. Install the latest available base virtualization packages and other utilities:
    • To install the Default KVM Stack:

      sudo dnf group install "Virtualization Host"
      sudo dnf install qemu-kvm virt-install virt-viewer
    • To install the Oracle KVM Stack, first remove any existing virtualization packages and then install the packages as usual:

      sudo dnf remove libvirt qemu-kvm edk2-ovmf
      sudo dnf group install "Virtualization Host"
      sudo dnf install qemu-kvm virt-install virt-viewer
    • To install the Default KVM Stack:

      sudo dnf group install "Virtualization Hypervisor" "Virtualization Tools"
      sudo dnf install qemu-kvm virt-install virt-viewer
    • To install the Oracle KVM Stack, first remove any existing virtualization packages and then install the packages as usual:

      sudo dnf remove libvirt qemu-kvm edk2-aarch64
      sudo dnf group install "Virtualization Hypervisor" "Virtualization Tools"
      sudo dnf install qemu-kvm virt-install virt-viewer
  4. (Recommended) Reboot the system to ensure that the virtualization 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 Libvirt Daemons 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
  7. After verifying that the system can act as a virtual host, you can proceed to KVM Instances: Create and Manage.