# Hyper-V
Installation
Powershell: Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart

Networking
Switch types:

External - Connects VMs to the physical network (real LAN/internet).

Internal - VMs can communicate with each other and with the Hyper-V host.

Private - VMs can only communicate with each other.

Switch setup
Powershell: New-VMSwitch -SwitchName “SwitchName” -SwitchType Internal

NAT Gateway: Create the internal switch used to house the virtual machines New-VMSwitch -SwitchName “SwitchName” -SwitchType Internal

Configure the NAT Gateway IP address using Powershell New-NetIPAddress -IPAddress <NAT Gateway IP> -PrefixLength <NAT Subnet Prefix Length> -InterfaceIndex <ifIndex>

Create the NAT gateway New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -InterfaceIndex 24

Configure the NAT network New-NetNat -Name <NATOutsideName> -InternalIPInterfaceAddressPrefix <NAT subnet prefix>

Storage
Witness disk
Notes
Sources
https://www.bdrshield.com/blog/hyper-v-mastery-a-step-by-step-guide-for-beginners/

https://blog.leaha.co.uk/2025/07/23/ultimate-hyper-v-deployment-guide/
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9