Install Virtualization Packages

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

Ensure that the following are true before proceeding:

  • You have administrator privileges.
  • If installing the Oracle KVM stack:
    • The ol9_kvm_utils yum repository must be enabled. See Enable Yum Repositories for instructions.
    • The host must be running the latest UEK R7 or UEK R8.

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

  1. Sign in to the Oracle Linux 9 system.
  2. Ensure that the latest packages are installed on the system:
    sudo dnf update
  3. Install the 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. Reboot the system to ensure that the virtualization packages and utilities were updated.
  5. Ensure that the libvirt daemons are running.

    Before you can create and manage KVM instances, the libvirtd daemons must be started and enabled. See Manage the Libvirt Daemons for instructions.

  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.