About This Page
This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.
Bias Analysis
Bias Types:
⚠️
powershell_heavy
⚠️
windows_first
⚠️
windows_tools
⚠️
missing_linux_example
Summary:
The documentation is heavily biased towards Windows environments. All setup instructions for enabling nested virtualization focus exclusively on Windows 11 and Windows Server, using PowerShell scripts and Windows GUI tools. Hyper-V is the only virtualization platform discussed, with no mention of Linux-based alternatives (such as KVM or VirtualBox), nor are there any instructions for enabling nested virtualization on Linux template VMs. Even troubleshooting and connectivity examples assume a Windows host, and Linux is only mentioned as a guest OS inside Hyper-V VMs.
Recommendations:
- Add explicit instructions for enabling nested virtualization on Linux-based template VMs, including supported distributions and required configuration steps (e.g., enabling KVM, configuring libvirt, etc.).
- Provide parity in examples by including Linux command-line instructions (e.g., using SSH, virsh, or other Linux-native tools) alongside PowerShell and Windows GUI steps.
- Mention and document support (or lack thereof) for Linux virtualization technologies (KVM, QEMU, VirtualBox) in Azure Lab Services, and clarify any limitations.
- Include troubleshooting steps and connectivity examples for Linux hosts and guests, not just Windows/Hyper-V scenarios.
- Clearly state at the beginning if only Windows-based nested virtualization is supported, and provide guidance or alternatives for Linux users if so.
Create pull request
Flagged Code Snippets
Set-ExecutionPolicy bypass -force
Invoke-WebRequest 'https://aka.ms/azlabs/scripts/hyperV-powershell' -Outfile SetupForNestedVirtualization.ps1
.\SetupForNestedVirtualization.ps1
Set-ExecutionPolicy default -force
Add-NetNatStaticMapping -NatName "LabServicesNat" -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 192.168.0.102 -InternalPort 22 -ExternalPort 23
Add-NetNatStaticMapping -NatName "LabServicesNat" -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 192.168.0.103 -InternalPort 3389 -ExternalPort 3390
Get-VMNetworkAdapter * | Set-VMNetworkAdapter -RouterGuard On -DhcpGuard On