Microsoft Azure Nested Virtualization | VM in Nested VM in Azure VM

Microsoft Azure Nested Virtualization | VM in Nested VM in Azure VM

With the new Dv3 and Ev3 VM sizes Microsoft has released the Nested Virtualization, meaning you can simply have a Hyper-V VM inside an Azure VM. I have created a set of posts to explore the Nested Virtualization functionality. Of course nested virtualization is only supported in Windows Server 2016.

Microsoft Azure Nested Virtualization

After my main Microsoft Azure Nested Virtualization | Hyper-V VM inside Azure VM post, we saw two usage scenarios. One is running Hyper-V Replica and the other is running Web Server in nested VM on Azure. Now lets have some fun and try to run a VM nested inside a VM nested inside an Azure VM. As a fellow said, VM inception!

We will use again the nested VM that we created at the Microsoft Azure Nested Virtualization | Hyper-V VM inside Azure VM post. First we need to run two commands, one command to enable the virtualization and one to enable the MAC address spoofing. More details you can find at the Nested Virtualization Microsoft article

Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName <VMName> | Set-VMNetworkAdapter -MacAddressSpoofing On

VM in Nested VM in Azure VM

 

After running the above commands we can go to the Server Manger and add the Hyper-V role.

VM in Nested VM in Azure VM

 

I just click next accepting all the defaults. One exception, I checked the NIC to use it for Virtual Switch.

VM in Nested VM in Azure VM

 

Finally we have a Hyper-V VM that is nested inside a Hyper-V VM that is nested inside an Azure VM

VM in Nested VM in Azure VM

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.