An Azure service that is used to provision Windows and Linux virtual machines.
Hi @HCML TEST,
Thank you for posting you query, based on your requirements (8 vCPUs, 64 GiB memory, and nested virtualization support), here is how you can approach this:
#1 Supported VM options for nested virtualization
Nested virtualization in Azure is supported on specific VM series where CPU virtualization extensions are exposed to the guest OS. This includes:
- Dv3, Dv4, Dv5 series
- Ev3, Ev4, Ev5 series
Since you are looking for 8 vCPUs and 64 GiB RAM, the following are appropriate options:
- E8s_v3, E8s_v4, E8s_v5 – these meet your memory requirement and support nested virtualization
- D8s_v4 or D8s_v5 – these also support nested virtualization, but they provide 32 GiB RAM, so they would not meet your 64 GiB requirement
From this, E-series SKUs are the correct upgrade path if 64 GiB memory is required.
Note: Before proceeding, we recommend confirming:
- The selected VM size is available in UK South region
- Your subscription has sufficient quota for the Ev family*
#2 Behavior after resizing the VM
Before resizing as a precaution, since the Dv3 family provides temporary storage, please move your data from the temporary disk to the OS disk or any attached disk. Also, take a snapshot of the OS disk to ensure your data is backed up in case of any issues.
To resize:
- Stop (deallocate) the VM
- Change the VM size
- Start the VM again
After resizing:
- The guest OS (Windows Server 2019) will typically detect the updated CPU and memory automatically
- In most cases, nested virtualization (Hyper-V) continues to function without additional configuration, provided the new VM size supports it
However, it is important to note:
- Azure does not guarantee completely seamless transitions across all scenarios
- We recommend validating inside the VM after resize:
- Hyper-V role remains enabled
- Nested VMs start successfully
References:
- https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/nested-virtualization
- https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dsv3-series?tabs=sizebasic
- https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/memory-optimized/ev4-series?tabs=sizebasic