This guide walks you through the steps to create a virtual machine using Hyper-V on Windows. Hyper-V is a native hypervisor built into Windows that allows you to run virtual machines (VMs) on your system.
- Windows 10/11 Pro, Enterprise, or Education edition
- A processor that supports virtualization (Intel VT-x or AMD-V)
- At least 4GB of RAM (more recommended for running multiple VMs)
- Sufficient disk space for your VMs
Option A: Using Windows Features
-
Open Control Panel
- Press the Windows key, type "Control Panel", and open it
-
Navigate to Programs
-
Click Turn Windows features on or off
-
Check the following options:
- Hyper-V
- Hyper-V Management Tools
- Hyper-V Platform
-
Click OK and restart your computer when prompted
Option B: Using PowerShell (Administrator)
Run this command in PowerShell with administrator privileges:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All-
Press the Windows key, type "Hyper-V Manager", and open it
-
In the right-hand pane, click New → Virtual Machine
- Enter a descriptive name for your VM
- Choose a storage location (recommended: create a dedicated folder like "C:\Hyper-V\VMs")
- Generation 1: Legacy BIOS-based (compatible with older OSes)
- Generation 2: UEFI-based with modern features (recommended for Windows 10/11, Server 2019+)
- Supports Secure Boot and other security features
- Recommended minimum:
- 2GB (2048 MB) for basic VMs
- 4GB (4096 MB) for Windows 11
- Dynamic Memory: Enable to allow Hyper-V to adjust memory usage automatically
- Can be configured after VM creation with min/max values
- Select a virtual switch
- If none exists, click Virtual Switch Manager to create one:
- External: Connects to physical network (internet access)
- Internal: Communication between host and VMs
- Private: Communication between VMs only
- Specify size (minimum recommendations):
- 64GB for Windows 10/11
- 32GB for most Linux distributions
- The disk is dynamic by default (only uses actual space needed, up to maximum)
Note: The Virtual Disk is dynamic, meaning it won't use the full allocated space immediately. It will grow as needed up to the specified maximum. Make sure your VMs don't exceed the capacity of your drive!
- Choose one:
- Install from ISO file (most common)
- Install from physical media
- Install from network
- Install OS later
Note: You can download legal evaluation copies of Windows directly from Microsoft:
- Windows Server 2022 (180-day evaluation)
- Windows Server 2025 (180-day evaluation)
- Windows 10 Enterprise (90-day evaluation)
- Windows 11 Enterprise (90-day evaluation)
- Review your VM configuration
- Click Finish to create the VM
-
Connect to the VM
- Right-click the VM in Hyper-V Manager and select Connect
- A new window will open showing the VM console
-
Start the VM
- Click the Start button in the VM connection window
-
Install the Operating System
- Follow the installation prompts for your chosen OS
- The experience will be similar to installing on physical hardware
-
Install Hyper-V Integration Services
- Improves performance and enables features like clipboard sharing
- Usually installed automatically on Windows, may need manual installation on Linux
-
Configure Additional Hardware
- Add more virtual hard disks if needed
- Adjust CPU cores (Settings → Processor)
- Configure advanced memory settings
-
Create Checkpoints (Snapshots)
- Allows you to save VM state and roll back if needed
- Right-click VM → Checkpoint
- VM won't start: Ensure virtualization is enabled in BIOS/UEFI
- Network issues: Check virtual switch configuration
- Performance problems: Adjust memory and processor allocation
For more information, visit the Microsoft Hyper-V documentation.













