Virtual machines within virtual machines

Nick B 361 Reputation points
2023-01-10T16:43:56.523+00:00

Is there a way to start VirtualBox or Hyper-V within Azure virtual machine? It worked once on specific VM size then which VM size is it?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,253 questions
{count} votes

Accepted answer
  1. TP 101.9K Reputation points
    2023-01-10T17:28:40.757+00:00

    Hi,

    The feature you are looking for is Nested Virtualization. You can check if the Virtual Machine series (several of them do) supports it by looking at the details page for each. For example, below is screenshot from Dv3/Dsv3 series:

    https://learn.microsoft.com/en-us/azure/virtual-machines/dv3-dsv3-series

    278031-azure-nested-virtualization-example.jpg

    Below is article from back when Azure introduced Nested Virtualization:

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

    Please Accept Answer if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Prrudram-MSFT 27,581 Reputation points
    2023-01-10T17:36:58.967+00:00

    Hi @Nick B ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    I believe you can use Nested Virtualization approach on azure VM using the Dv3 and Ev3 VM sizes. Nested virtualization is a feature that allows you to run Hyper-V inside of a Hyper-V virtual machine (In your case it will be an azure VM). Here is the detailed blog post on this feature support announcement made by Azure Product Management https://azure.microsoft.com/en-us/blog/nested-virtualization-in-azure/

    Other References: https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization I used this approach to debug issues with faulty VMs as mentioned here https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-vm-by-use-nested-virtualization

    Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.

    0 comments No comments

  2. Nick B 361 Reputation points
    2023-01-10T19:03:58.633+00:00

    Thank you so much everyone. I could not find the detailed information showing that about virtual machine so I was wondering why some time ago one of virtual machine series worked with virtualization. It is really important to me for virtualization in VM to work, but at same time it had stopped working on the same VM size for some reason.

    0 comments No comments

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.