mkbaines asked this 6 years ago

Hyper-V cannot be installed: The processor does not have the required virtualization capabilities

I have a Windows Server 2016 virtual machine running on VirtualBox and I am trying to add the Hyper-V role on that VM using the Add roles and features wizard. I get the following error message after i click install.

Hyper-V cannot be installed: The processor does not have the required virtualization capabilities

On the VM setting unders System->Acceleration i have the following settings:

Paravirtualization Interface: Hyper-V

Hardware Virtualization: Enable VT-x/AMD-v (checked)

 Enable Nested Paging (checked)

 

Is there any other settings i need to change?


Best Answer by Ryan 6 years ago

Open Powershell in your virtual machine and run the following two commands and then restart your VM.

Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All -NoRestart

Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature


Guest 5 years ago
22 likes

Why the hell does this work but not doing it the standard way XD

Got dam computers why you weird.

Guest 4 years ago
5 likes

Hello there, it worked but there are no Components running in service for creating  VM in Hyper-V, that it not help well. That is frustrating :(

Guest 4 years ago
3 likes
Thanks Ryan it worked great. Just curious, why does the setup wizard give the error and powershell allows it to work? 
Guest 4 years ago
2 likes

It keeps saying that its spelled wrong but I've typed it exactly as you have it.

Guest 4 years ago
1 like
Hey how would this work if am using virtual box instead of vm  
Guest 2 years ago

The script worked, but the role still fails because You can't run Hyper-V within a virtualBox VM.  See below:

https://forums.virtualbox.org/viewtopic.php?t=101609

- My physical box is a Windows 10 64 bit host with an Intel(R) Core(TM) i7-6700 CPU.
- Inside the host I installed VirtualBox 6.1.18-142142
- Inside VirtualBox I installed a Windows Server 2019 guest VM
- When I try to enable the Hyper-v role in the guest Windows Server 2019 VM I get the eror "Hyper-v cannot be installed: The processor does not support second level address translation (SLAT)"
- On the same physical box I installed VMware Workstation 15 Player
- Inside VMware Workstation Player I installed a Windows Server 2019 guest VM
- Inside the guest Windows Server 2019 VM I can enable the Hyper-v role and I can create and run guest VMs
That means, in my opinion, that my HW supports nested virtualization while my VirtualBox does not.

So the answer is simple.  Use VMware.
Guest 3 years ago
Super cool thanks again totally worked but I was getting error in server manager
Guest 3 years ago

Thanks Ryan Genius ;) it's been 3weeks looking for solution :)


Guest 3 years ago
Even though it was installed, the services will not be running, thus, VMs will still not run.
Guest 3 years ago

Hyper-V cannot be installed: The processor does not have the required virtualization capabilities same errror im getting using vrtual box


- Thanks Ryan  | Guest| 3 years ago

- Unbelievable ! Ryan, you sir are a gentleman and a scholar. | Guest| 4 years ago

- Nice!!!!! That worked successfully! | Guest| 4 years ago

- Wow! that worked without any complains :) thanks | Guest| 4 years ago

- Hi - worked for me - thank you! | Guest| 4 years ago

- THANK YOU SIRE!!! | Guest| 4 years ago

- It worked man . YOU are a SAVIOUR :) | Guest| 4 years ago

- It worked for me. | Guest| 4 years ago

- Thanks for that, Sorted it for me | Guest| 4 years ago

- Thanks - Ehab | Guest| 5 years ago