Skip to content

Commit e0309fa

Browse files
Merge pull request #267810 from EMaher/ENewman/nested-virt-no-dhcp-2
Moving DHCP guard advice to different bullet.
2 parents 3ea0fe1 + 54d4399 commit e0309fa

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

articles/lab-services/how-to-enable-nested-virtualization-template-vm-using-script.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,21 +163,19 @@ If you're using the Medium (Nested Virtualization) VM size for the lab, consider
163163
164164
- Verify that you followed the previous steps for enabling nested virtualization. Consider using the PowerShell script option.
165165
166-
- Check if the host VM (lab VM) has the DHCP role installed if you are using Windows Server.
166+
- Check if the host VM (lab VM) has the DHCP role installed if you are using Windows Server.
167167
168168
Running a lab VM as a DHCP server is an *unsupported* scenario. See [Can I deploy a DHCP server in a virtual network?](/azure/virtual-network/virtual-networks-faq) for details. Changing the settings of the lab VM can cause issues with other lab VMs.
169169
170-
If you have the DHCP role installed, try enabling Hyper-V [DHCP guard](/archive/blogs/virtual_pc_guy/hyper-v-networkingdhcp-guard) and [Router guard](/archive/blogs/virtual_pc_guy/hyper-v-networkingrouter-guard).
171-
172-
```powershell
173-
Get-VMNetworkAdapter * | Set-VMNetworkAdapter -RouterGuard On -DhcpGuard On
174-
```
175-
176-
177170
- Check the network adapter settings for the Hyper-V VM.
178171
179172
- Set the IP address of the DNS server and DHCP server to [*168.63.129.16*](/azure/virtual-network/what-is-ip-address-168-63-129-16).
180173
- If the guest VM IPv4 address is set manually, verify it is in the range of the NAT network connected to the Hyper-V switch.
174+
- Try enabling Hyper-V [DHCP guard](/archive/blogs/virtual_pc_guy/hyper-v-networkingdhcp-guard) and [Router guard](/archive/blogs/virtual_pc_guy/hyper-v-networkingrouter-guard).
175+
176+
```powershell
177+
Get-VMNetworkAdapter * | Set-VMNetworkAdapter -RouterGuard On -DhcpGuard On
178+
```
181179
182180
> [!NOTE]
183181
> The `ping` command from a Hyper-V VM to the host VM doesn't work. To test internet connectivity, launch a web browser and verify that the web page loads correctly.

0 commit comments

Comments
 (0)