On Oracle Ubuntu 22 ARM VM.Standard.A1.Flex I get:
> Warning: KVM is not available. This may mean the KVM package is not installed, or the KVM kernel modules are not loaded. Your virtual machines may perform poorly.
How to solve this issue?
Aug 12, 1:07am
The warning you're encountering on your Oracle Ubuntu 22 ARM VM.Standard.A1.Flex instance indicates that KVM (Kernel-based Virtual Machine) is not available. This can happen for several reasons, such as:
KVM is not installed on the system.
KVM kernel modules are not loaded (e.g., kvm, kvm_amd, or kvm_arm).
Nested virtualization is disabled in the Oracle Cloud Infrastructure (OCI) environment.
Hardware virtualization support is missing (e.g., ARM-based instances may not support KVM in the same way as x86_64).
Steps to Resolve the Issue
1. Check if KVM is Supported on ARM in OCI
Oracle Cloud's ARM-based instances (A1.Flex) do not support nested virtualization or KVM acceleration by default.
Confirm whether KVM is supported for your instance type by checking Oracle's documentation or contacting Oracle support.
2. Verify KVM Kernel Modules
Run the following commands to check if KVM modules are loaded:
bash
lsmod | grep kvm
If no output appears, KVM modules are not loaded.
For ARM-based systems, the relevant module is kvm_arm. Try loading it manually:
bash
sudo modprobe kvm_arm
If this fails, KVM may not be supported on your hardware/instance.
3. Install KVM (if supported)
If KVM is supported but not installed, install the required packages: