Enabling the processor virtualization feature on the KVM Host.
This is generally done at the BIOS of the Physical Server KVM host and once the same is enabled at the BIOS and the system is rebooted, the OS comes to know that. Please note that the enabling of the processor virtualization feature menus in the BIOS will vary as per the vendor.
Once the same is enabled and the server is rebooted, this cam be checked as follows.
Check the processor family on the server first
cat /proc/cpuinfo | grep -i vendor_id
for me this shows GenuineIntel as my KVM host has the Intel CPUs.
If there has been AMD CPUs, it would have shown Authentic AMD
vendor_id : AuthenticAMD
Depending on the above information, now you can check the CPUs for the enabled flags as you have already set the processor Virtualization in the BIOS of the KVM Host.
cat /proc/cpuinfo | grep -i -e svm -e vmx
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb invpcid_single tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts
As I have intel processors and the CPU Virtualization has been enabled in the BIOS, I have the processor flags showing 'vmx'. This signifies that the processor Virtualization has been successfully picked up by the OS of the KVM host.
Please note that if the KVM host had been having the CPUs from AMD, the enabled processor virtualization flag would have been 'svm' instead of 'vmx' above.
The enablement of the processor virtualization can also be seen using the virsh capabilities if you have the libvirt RPMs installed
virsh capabilities | grep vmx
<feature name='vmx'/>
Ensuring the needed processor Virtualization has been enabled for the KVM Host
Once the processor virtualizaton is enabled at the BIOS level and you reboot the KVM Host, the same can be verified using
cat /proc/cpuinfo | grep -i -e svm -e vmx
As noted earlier, the 'svm' flag is for the processor virtualization enablement on the AMD processors and 'vmx' is for the processor virtualization feature enablement on the Intel processor.
No comments:
Post a Comment