question

BenWosjke-0694 avatar image
0 Votes"
BenWosjke-0694 asked BenWosjke-0694 edited

Azure VM nested virtualisation - Accessing Azure VNET from VM's

Hi all,
Looking into nested virtualisation in Azure - which has the potential to address some issues for our migration.

All the example articles talk about setting up a DHCP server on the Host and using NAT on the vSwitch.

I haven't found an article that specifically states it - but is it not possible to connect directly to the Azure VM's NIC? (like you would in an on-prem scenario) and utilise DHCP/DNS etc settings from the VNet ?

azure-virtual-machines
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You are able to change the DHCP/DNS settings directly through the NIC resource, however Azure Lab Services has a UI wizard and a simple script available:

0 Votes 0 ·

Hi - you seem to have missed the point of a the question.

As stated in the 1st (or 2nd) link you have provided... when creating a nested Hyper-V server - you then need to add DHCP, RRAS and create a NAT switch to the VM Host in order to provide network connectivity to the outside world - i.e. you cannot assign a VM to the base azure network connection to any of the nested VM's.

Is that correct? is there no way to connect directly to the "base" NIC for the VM's? and if yes, is that something that is being looked at - or is it "the way it is" and wont be changing anytime soon ?

0 Votes 0 ·

@BenWosjke-0694,

Your client VMs on your template or lab machine for Azure Lab Services will be able to access the internet, but they will not be addressable from outside the host VM. (I'm assuming you followed instructions at how-to-enable-nested-virtualization-template-vm .

Are you looking for a feature like 38458822-assign-multiple-vms-to-a-student-with-their-own-vn where students get their own set of VMs on a class network?

Have you tried Azure DevTest Labs? This service has the ability to create environments from templates that you pre-approve. You have more control over the assets than you would in a service like Azure Lab Services where the resources are hosted in a Microsoft subscription on your behalf.

1 Vote 1 ·
Show more comments

0 Answers