If you are trying to create a new virtual machine using VirtualBox on Windows 10 or any other Windows versions, you may get an error as below:
Not in a hypervisor partition (HVP=0)(VERR_NEM_NOT_AVAILABLE).
VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).
Before we see the fix for this VirtualBox issue, let’s go through the reason first.
The error “VT-x is disabled in the BIOS for all CPU modes” appears if virtualization is not enabled in your Windows computer. Many Windows computers have the virtualization disabled by default at the BIOS level and it needs to be enabled to set up a new virtual machine.
I am explaining this for a DELL laptop with windows 10 but the solution would be the same for other computers with slight variations in the way they allow enabling virtualization.
If you are using a Lenovo computer, read this – Enable virtualization on Lenovo Computers
NOTE: Make a note of the entire solution and then proceed as it requires system restart as a step and cannot be followed along with reading.
“Not in a hypervisor partition” Solution:
In windows machine go to Settings -> Update & Security -> Recovery. There is a Restart Now option as highlighted under Advanced startup. Read the below steps before clicking on the advanced setup.
Once the Restart Now is clicked the below options need to be followed in sequence:
Troubleshoot -> Advanced option – > UEFI Firmware Settings -> Restart
- Once the restart is clicked the system enters BIOS mode.
- In the BIOS look for option Virtualization which is under Advanced or System Configuration for most of the computers.
- The system shows that Virtualization is disabled.
- Change it to enabled.
Once done you can exit with save (F10 is the shortcut for most of the computers).
You may face the full-screen issue once your VM opens in VirtualBox. Here is the fix.
Make VirtualBox Full Screen
This will fix the issue “Not in a hypervisor partition in VirtualBox” / “VERR_VMX_MSR_ALL_VMX_DISABLED”.
Happy learning 🙂