Sub topic 9
CPU and BIOS/UEFI Virtualization Support
This chapter assumes you know the basic PC parts (CPU, RAM, storage) and have used Windows or Linux. It also assumes you know what a hypervisor is from the previous chapter. Here you will learn what a PC needs before a hypervisor can run virtual machines (VMs) well, and how to check for it.
Why hardware support matters
A hypervisor must keep each guest OS away from the host's real hardware. Early hypervisors did this entirely in software, which was slow. Modern CPUs add instructions that let the hypervisor run guests directly on the processor while still controlling them. This is called hardware-assisted virtualization.
Two names matter for the exam:
| Vendor | Technology name | CPU flag on Linux |
|---|---|---|
| Intel | VT-x (Intel Virtualization Technology) | vmx |
| AMD | AMD-V | svm |
Most CPUs sold in the last decade support one of these. A related feature, second-level address translation (SLAT), speeds up memory handling for guests. Intel calls it EPT and AMD calls it RVI or NPT. Windows Hyper-V requires SLAT.
The firmware switch
A CPU that supports virtualization may still have it turned off. The setting lives in the BIOS/UEFI firmware, the low-level software that runs when the PC starts. Typical labels are:
- Intel Virtualization Technology, Intel VT-x, or Virtualization Extensions
- SVM Mode or AMD-V
The usual fix for a hypervisor error such as "VT-x is not available" is this:
- Restart the PC and enter firmware setup (often with Del, F2, or F10 during startup).
- Find the virtualization option, usually under Advanced, CPU Configuration, or Security.
- Set it to Enabled.
- Save and exit.
Checking support from the operating system
On Linux, the first command shows the virtualization technology. The second counts logical CPUs whose flags include vmx or svm. A nonzero count means the CPU supports it.
lscpu | grep -i virtualization
grep -E -c '(vmx|svm)' /proc/cpuinfoOn Windows, systeminfo reports a Hyper-V Requirements section. It shows whether virtualization is enabled in firmware.
systeminfo | findstr /i "Hyper-V"Note that if a hypervisor is already running, Windows may print a message saying a hypervisor has been detected instead of listing the requirements. That does not mean support is missing.
Turning on Hyper-V
Hyper-V is built into Windows Pro, Enterprise, and Education editions. It is not available in Home edition. From an elevated PowerShell prompt (one run as administrator), enable the feature, then restart:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -AllCommon errors
- Feature enabled in the OS but VM will not start. The firmware setting is usually still disabled.
- Setting is Enabled but 64-bit guests fail. A 64-bit guest needs a 64-bit host CPU and virtualization support.
- Two hypervisors conflict. Some Type 2 products cannot use the hardware features while Hyper-V holds them. Newer versions can share them, but older ones cannot.
- Option missing in firmware. The CPU or motherboard may not support it.
Exam tips
- Virtualization support has two layers: the CPU must have it, and firmware must enable it.
- Intel is VT-x and AMD is AMD-V.
- "Hypervisor reports no hardware virtualization on a supported CPU" points to the BIOS/UEFI setting.
Exercise
A technician installs a Type 2 hypervisor on a new PC with a CPU that supports VT-x. Every 64-bit guest fails to start with a message that hardware virtualization is unavailable. What is the most likely cause, and what should the technician do?
Show answer
The virtualization option is disabled in BIOS/UEFI. The technician should restart, enter firmware setup, enable Intel Virtualization Technology (VT-x), save, and restart again.
Exercise
On a Linux host, grep -E -c '(vmx|svm)' /proc/cpuinfo prints 0. What does that tell you?
Show answer
No logical CPU lists the vmx or svm flag, so the CPU does not support hardware virtualization, or the setting is turned off and hides it from the OS. Check the CPU specifications and the firmware setup.