Created a VM on Azure, I can't turn on Hyper-v

Steve Shi 20 Reputation points
2023-07-10T05:59:00.6566667+00:00

After creating a VM on Azure, I can't turn on Hyper-v.

Like the below screenshot, how can I create a VM with enabled hyper-v service?

User's image

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,004 questions
Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
361 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,735 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 98,176 Reputation points
    2023-07-10T06:11:22.2066667+00:00

    Hi Steve,

    When creating the VM, please make sure the size you select supports Nested Virtualization and you select Standard security, as shown in screenshot below:

    azure security type standard

    For VM sizes less than v5 you need to select Standard because Nested Virtualization isn't supported with Trusted Launch.

    Please click Accept Answer if the above was helpful. If the above doesn't resolve the issue please add a comment with more details such as the VM size you selected.

    Thanks.

    -TP

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. vipullag-MSFT 26,391 Reputation points
    2023-07-10T06:04:03.7733333+00:00

    Hello Steve Shi

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Based on the details shared, looks like you are trying to enable Hyper-V on a virtual machine in Azure, but you are getting an error message that says "Hyper-V cannot be installed: Virtualization support is disabled in the firmware." This error message usually means that the virtual machine does not have nested virtualization enabled.

    Nested virtualization allows you to run a virtual machine within another virtual machine. In Azure, nested virtualization is only available on certain VM sizes and series.

    To resolve this issue, try the following:

    -Choose a VM size that supports nested virtualization.

    -If you already have a VM deployed, and it supports nested virtualization, you can enable it.

    Ref:
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization#configure-nested-virtualization

    https://azure.microsoft.com/en-us/blog/nested-virtualization-in-azure/

    https://learn.microsoft.com/en-us/azure/virtual-machines/acu

    Hope this helps.


Your answer

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