1- Enable Hyper-V & Prerequest
·1 min
Table of Contents
Serves installation Hyper-V
Enable Hyper-V : #
- Windows 10/11 Pro Computer with good amount of memory at least 16G, i have 32G and more is preferred 😃
- Enable Hyper-v on Windows: Open PowerShell As Admin and run command and restart.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
- Download Windows Server 2022 ISO
- Download Windows 10 ISO or Windows 11 ISO
I prefer to change Hyper-V default folder to D:\HYPER-V
D:\HYPER-V
├───Virtual Hard Disks
└───Virtual Machines
Copy all ISO’s on one folder also
D:\IMAGES
SERVER_2022_EVAL_x64FRE_en-us.iso
Win10_ent.iso
Win11_22H2_English_x64v1.iso
In Hyper-V Settings change path for Virtual Hard Disks & Virtual Machines.
Create Hyper-V Nat Network & NAT Switch #
This configuration will but all VM’s on isolated subnet and allow them to access internet Set up a NAT network | Microsoft Docs
Create new VMSwitch and name it NAT
New-VMSwitch -SwitchName "NAT" -SwitchType Internal
List all network interface and note the interface ifIndex value of new create VMSwitch interface
Get-NetAdapter
My Ethernet adaptor ifIndex = 46 and will use subnet 172.30.0.0/24 for NAT network.
New-NetIPAddress -IPAddress 172.30.0.1 -PrefixLength 24 -InterfaceIndex 46
New-NetNat -Name NAT17230 -InternalIPInterfaceAddressPrefix 172.30.0.0/24
Use small DHCP server to auto configure IP on VM’s on NAT network : www.dhcpserver.de