Enable KVMTo perform these steps, you must be logged in as the
root user.To determine whether the svm or
vmx CPU extensions are present,
run this command:#grep -E 'svm|vmx' /proc/cpuinfoThis command generates output if the CPU is
hardware-virtualization capable. Even if output is
shown, you might still need to enable virtualization
in the system BIOS for full support.If no output appears, consult your system
documentation to ensure that your CPU and motherboard
support hardware virtualization. Verify that any
relevant hardware virtualization options are enabled
in the system BIOS.The BIOS for each manufacturer is different. If you
must enable virtualization in the BIOS, look for an
option containing the words
virtualization,
VT, VMX, or
SVM.To list the loaded kernel modules and verify that
the kvm modules are loaded, run
this command:#lsmod | grep kvmIf the output includes
kvm_intel or
kvm_amd, the
kvm hardware
virtualization modules are loaded and your kernel
meets the module requirements for OpenStack
Compute.If the output does not show that the
kvm module is loaded, run this
command to load it:#modprobe -a kvmRun the command for your CPU. For Intel, run this
command:#modprobe -a kvm-intelFor AMD, run this command:#modprobe -a kvm-amdBecause a KVM installation can change user group
membership, you might need to log in again for changes
to take effect.If the kernel modules do not load automatically, use
the procedures listed in these subsections.If the checks indicate that required hardware virtualization
support or kernel modules are disabled or unavailable, you
must either enable this support on the system or find a system
with this support.Some systems require that you enable VT support in the
system BIOS. If you believe your processor supports
hardware acceleration but the previous command did not
produce output, reboot your machine, enter the system
BIOS, and enable the VT option.If KVM acceleration is not supported, configure Compute to
use a different hypervisor, such as QEMU or Xen.These procedures help you load the kernel modules for
Intel-based and AMD-based processors if they do not load
automatically during KVM installation.Intel-based processorsIf your compute host is Intel-based, run these commands
as root to load the kernel modules:#modprobe kvm#modprobe kvm-intelAdd these lines to the /etc/modules
file so that these modules load on reboot:kvm
kvm-intelAMD-based processorsIf your compute host is AMD-based, run these commands as
root to load the kernel modules:#modprobe kvm#modprobe kvm-amdAdd these lines to /etc/modules
file so that these modules load on reboot:kvm
kvm-amd