Nested Virtualization on Azure

Only Hyper-V is supported at the time of this post.

 

More details: https://www.vembu.com/blog/running-hyper-v-in-azure-nested-virtualization/

Windows 10 vagrant image: https://app.vagrantup.com/gusztavvargadr/boxes/windows-10

To create a NAT adapter for Hyper-V:

New-VMSwitch -Name "InternalNATSwitch" -SwitchType Internal
get-netadapter
New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -InterfaceIndex 14
New-NetNat -Name "InternalNat" -InternalIPInterfaceAddressPrefix 192.168.0.0/24

But, you need to assign IP manually on the VM.

IPv.4 address: 192.168.0.2 
IPv.4 subnet prefix length: 24
I P'.4 gateway: 192.168.0.1 
IPv.4 DNS servers: 1.1.1.1 9.9.9.9

Leave a comment

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started