Share via

Virtual machine Nested virtualization

Pim_s 0 Reputation points
2025-09-01T20:10:05.1833333+00:00

Hello

i would like to configure a nested VM (windows Server DC 2025 with nested linux machine), but i can't install HyperV service. When trying to do the installation i received the error "Hyper-V cannot be installed because virtualization support is not enabled in the bios".

the VM type is : Standard E2s v3

security type : standard

OS : Windows (Windows Server 2025 Datacenter Azure Edition)

location : West Europe (Zone 1)

thank you in advance

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


2 answers

Sort by: Most helpful
  1. Philip Harrison 0 Reputation points
    2025-09-10T11:40:18.2066667+00:00

    FWIW I had the same error message trying to get nested virtualisation working on Azure with a Windows 2025 Server of various supposedly supported VM sizes, in the end the issue turned out to be the hypervisor not being set to auto-start in the boot config. I'm not sure if that's something that happens automatically since Windows 2025 Server or when you're nesting HyperV in Azure because very few setup guides refer to it, but this troubleshooting article does - https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/troubleshoot-vm-by-use-nested-virtualization

    The TLDR is to run the following command and see if hypervisorlaunchtype appears on the output -

    bcdedit /enum
    

    If hypervisorlaunchtype is not listed then you can add it with the following command followed by a reboot -

    bcdedit /set hypervisorlaunchtype auto
    

    Was this answer helpful?

    0 comments No comments

  2. Ankit Yadav 14,450 Reputation points Microsoft External Staff Moderator
    2025-09-01T21:28:42.67+00:00

    Hello Pim_s,

    Can you try stop and start on your VM once and then RDP into the Azure VM, open PowerShell as administrator and run command below to install the HyperV and DHCP server roles.

    Install-WindowsFeature -Name DHCP,Hyper-V  –IncludeManagementTools
    

    For more details around installing Hyper-V, please refer : https://techcommunity.microsoft.com/blog/itopstalkblog/how-to-setup-nested-virtualization-for-azure-vmvhd/1115338

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.