How to boot a faulty Azure VM in another Azure VM by using Nested Virtualization

In this blog post,  we will discuss the troubleshooting options to boot an Azure VM inside another Azure VM by using Hyper-V and Nested Virtualization.

Step1- Create a snapshot of the Azure VM currently not booting-up or have some booting issues

Select the VM which is not currently booting-up, Select Disks and then select the Operating System Disk and Create Snapshot

Step2- Create a managed disk from the snapshot 

To create a managed disk from a snapshot, Select: 

Disk > Add > Fill the information and select the source type as Snapshot and select the snapshot created in the previous step

Step3- Create a new VM in Azure to enable Hyper-V and nested virtualization 

All v3 series virtual machines support nested virtualization in Azure. In my environment, I created a Windows 2016 Dsv3 VM

Step4- Enable Hyper-V on newly created VM

Use the following Powershell command to enable Hyper-V 

Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart

Step5- Attach the managed disk created in step2 on the newly created VM as an additional disk and bring the disk offline by using the disk management 

Select the disk and make it offline

Step6- Create a New VM by using the disk attached 

Create a new VM in Hyper-V , Give a name to VM and don’t select the storage location 

Create a VM using Hyper-V


Create a VM as Generation 1
Assign Memory to the VM
Select the Network Connection as Not Connected


Select the disk as Attach a virtual disk later and Finish

Once the VM is created in Hyper-V, Select VM > Settings, IDE Controller 0 and then select the Physical disk and select the disk attached in 

Once the VM is created, You can use Hyper-V to start the VM, Press F8 while the VM is booting-up to 

Press F8 to boot the VM in safe mode for diagnostic