8.2. Compute Service Requirements
8.2.1. Check for Hardware Virtualization Support
The OpenStack Compute Service requires hardware virtualization support and certain kernel modules. Follow this procedure to determine whether your system has hardware virtualization support and the correct kernel modules available.
All steps listed must be performed while logged into the system as the
root user.
Procedure 8.1. Verifying hardware virtualization support
- Use the
grepcommand to check for the presence of thesvmorvmxCPU extensions by inspecting the/proc/cpuinfofile generated by the kernel:#grep -E 'svm|vmx' /proc/cpuinfoIf any output is shown after running this command then the CPU is hardware virtualization capable and the functionality is enabled in the system BIOS. - Use the
lsmodcommand to list the loaded kernel modules and verify that thekvmmodules are loaded:#lsmod | grep kvmIf the output includeskvm_intelorkvm_amdthen thekvmhardware virtualization modules are loaded and your kernel meets the module requirements for the OpenStack Compute Service.
This completes the required checks to ensure hardware virtualization support is available and enabled, and that you have the correct kernel modules loaded.
If the checks indicated that either hardware virtualization support or the required kernel modules are not available or not enabled then you must take action to either find a system that does have the required hardware virtualization support and modules, or enable it on the system that failed the checks.