Activating Hyper-V on a Microsoft Azure Virtual Machine

Activating Hyper-V on a Microsoft Azure Virtual Machine

Sometime ago, I was trying to load up K8S on my Virtual machine which happens to be a Windows (Windows Server 2016 Datacenter) with size B2ms and in the process of loading the prerequisites, which included kubectl (command-line utility), Minikube executable, and a Hypervisor( virtual box or HyperV- windows & KVM for Linux). From the Hypervisors comparison, I decided to go with Virtual box since it was compatible with the 3 flavors of OS(Mac OS, Windows, Linux,).

So, I tried to Enable Virtualization (Hyper-V) in Windows Server 2016 but I got a red flag with the error message below

blog1.PNG

the processor does not have virtualization capabilities

Resolution:

After some research, I found out that Microsoft Azure VM's have certain types of requirements in relation to VM size to enable virtualization. You need to select a VM size large enough to accommodate the demands of a guest virtual machine. If your machine is not a size v3, it would keep flagging the same error "the processor does not have virtualization capabilities"

To check the size of your Virtual Machine, visit the Microsoft Azure Portal and

  • Select the Virtual Machine from the list of resources
  • on the left Menu search for size(Find a machine with _v3 size) 33.PNG
  • Select Resize (Please Note that this would trigger a restart on your VM)

Refer to the Microsoft documentation for more details

Don't hesitate to shoot me an email on

Cheers!