Jump to content













Photo
- - - - -

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

  Posted by Pantelis Apostolidis , in Windows Server, Azure 29 August 2017 · 434 views

Azure AzureRM NestedVM Nested Virtualization Windows Server Hyper-V

Microsoft Azure Nested Virtualization | VM in Nested VM in Azure VM
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

 

Posted Image

 

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

 

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

 

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