Blame

eb1d17 Peter 2026-04-07 18:18:27
1
# Hyper-V
d3f42b Peter 2026-04-07 18:52:46
2
Installation
3
Powershell: Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
4
5
Networking
6
Switch types:
7
8
External - Connects VMs to the physical network (real LAN/internet).
9
10
Internal - VMs can communicate with each other and with the Hyper-V host.
11
12
Private - VMs can only communicate with each other.
13
14
Switch setup
15
Powershell: New-VMSwitch -SwitchName “SwitchName” -SwitchType Internal
16
17
NAT Gateway: Create the internal switch used to house the virtual machines New-VMSwitch -SwitchName “SwitchName” -SwitchType Internal
18
19
Configure the NAT Gateway IP address using Powershell New-NetIPAddress -IPAddress <NAT Gateway IP> -PrefixLength <NAT Subnet Prefix Length> -InterfaceIndex <ifIndex>
20
21
Create the NAT gateway New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -InterfaceIndex 24
22
23
Configure the NAT network New-NetNat -Name <NATOutsideName> -InternalIPInterfaceAddressPrefix <NAT subnet prefix>
24
25
Storage
26
Witness disk
27
Notes
28
Sources
29
https://www.bdrshield.com/blog/hyper-v-mastery-a-step-by-step-guide-for-beginners/
30
31
https://blog.leaha.co.uk/2025/07/23/ultimate-hyper-v-deployment-guide/