Switch KVM Stacks
You can switch from one KVM stack to another KVM stack, if required.
The KVM stacks define the versions of user space packages that you can use to manage virtual machines on Oracle Linux. To take advantage of newer functionality available in more recent user space packages, you must install UEK.
The Default KVM stack is compatible with both RHCK and UEK. The Default KVM stack is available from the standard Oracle Linux package repositories. If you require RHCK, you can only use the Default KVM stack.
The Oracle KVM stack, which includes more KVM features than the default stack, requires UEK
to be running on the host system and that the ol8_kvm_appstream yum repository is
enabled on the system.
Switching the KVM stack on an Oracle Linux system involves removing one version of the KVM stack and then replacing it with another version of the KVM stack.
Caution:
Guest instances that were created by using one KVM stack might not be compatible and might not start after switching to another KVM stack.For instructions on how to switch KVM stacks on Oracle Linux 8 systems with UEK, see these topics:
- Switch Default Stack to Oracle KVM Stack
- Switch Oracle KVM Stack to Default Stack
- Upgrade the Oracle KVM Stack
Note:
For details about the KVM stacks and their sources, see Virtualization Package Sources.Switch Default Stack to Oracle KVM Stack
The following information describes how Oracle Linux 8 users can switch from the Default KVM stack to the Oracle KVM stack.
Ensure that the following are true before proceeding:
- The Oracle Linux 8 system has the Default KVM stack packages installed.
- The host system must be running the latest UEK R6 or UEK R7 .
- You have administrator privileges.
Caution:
Guest instances that were created using the default KVM stack might not be compatible and might not start after switching to the Oracle KVM stack.- Remove any packages from the existing default
virtmodule stream:sudo dnf module remove virt -y --allNote:
Oracle Linux 8 virtualization stacks are managed by switching between application streams for thevirtmodule. For more information about using DNF modules and application streams, see Oracle Linux: Managing Software on Oracle Linux - Reset the
virtmodule state so that it's neither enabled nor disabled:sudo dnf module reset virt -y - Enable the
ol8_kvm_appstreamyum repository.For more information, see Enable Yum Repositories. - Enable the appropriate module and stream. For example, to use the latest packages:
sudo dnf module enable virt:kvm_utils3 -y - Perform any necessary package upgrade or downgrade operations to handle dependencies
for the enabled module and stream:
sudo dnf --allowerasing distro-sync - Install the base packages from the appropriate module and stream. For example, to use
the latest packages:
sudo dnf module install virt:kvm_utils3 -y
Switch Oracle KVM Stack to Default Stack
The following information describes how Oracle Linux 8 users can switch from the Oracle KVM stack to the Default KVM stack.
Ensure that the following are true before proceeding:
- The Oracle Linux 8 system has the Oracle KVM stack module and stream installed.
- The host system is running the latest UEK R6 or UEK R7 .
- You have administrator privileges.
Caution:
Guest instances that were created using the Oracle KVM stack might not be compatible and might not start after switching to the Default KVM stack.- Remove any of the packages from the existing Oracle KVM stack module stream, for
example:
sudo dnf module remove virt:kvm_utils3 -y --allNote:
Oracle Linux 8 virtualization stacks are managed by switching between application streams for thevirtmodule. For more information about using DNF modules and application streams, see Oracle Linux: Managing Software on Oracle Linux. - Reset the
virtmodule state so that it's neither enabled nor disabled:sudo dnf module reset virt -y - Enable the
virtmodule and stream:sudo dnf module enable virt -y - Perform any necessary package upgrade or downgrade operations to handle dependencies
for the enabled module and stream:
sudo dnf --allowerasing distro-sync - Install the base packages from the
virtstream:sudo dnf module install virt -y - Disable the
ol8_kvm_appstreamyum repository:
If you don't intend to use the Oracle KVM stack, disabling the associated repository prevents installation of packages from that repository in the future and ensures compatibility between installed KVM components.sudo dnf config-manager --disable ol8_kvm_appstream
Upgrade the Oracle KVM Stack
The following information describes how Oracle Linux 8 users can upgrade Oracle KVM stack packages to the latest version of the Oracle KVM stack by switching module streams.
Ensure that the following are true before proceeding:
- You have an Oracle Linux 8 system with an earlier Oracle KVM stack stream installed.
- The host system is running the latest UEK R6 or UEK R7.
- You have administrator privileges.
Caution:
Guest instances that were created using an earlier Oracle KVM stack stream might not be compatible and might not start after switching to the later version of the Oracle KVM stack.Follow these steps to switch from an earlier Oracle KVM stack stream to the latest version of the Oracle KVM stack.