Hyper-V is Microsoft’s native hardware virtualization technology that empowers businesses and individual users to build flexible, scalable virtual environments by running multiple virtual machines (VMs) on a single physical host. Mastering how to create VM in Hyper V is a fundamental skill for anyone looking to leverage virtualization for testing, development, or production workloads.
This guide compiles Microsoft’s official best practices and a complete walkthrough of the two most reliable methods to create VMs—using Hyper-V Manager’s intuitive graphical interface and PowerShell’s efficient command-line tools. We’ll also cover all prerequisites, setup steps, and post-creation actions to ensure your VM creation process is smooth and error-free. Whether you’re a beginner or an IT professional, this guide will answer all your questions about how to create VM in Hyper V and help you build VMs tailored to your needs.

How to Create VM in Hyper V Manager Using Hyper V Manager
How to create VM in Hyper V Manager is the most popular method for most users, thanks to its visual, wizard-driven workflow that eliminates the need for command-line input. Before diving into VM creation, you first need to enable the Hyper-V role on your Windows system and meet the basic prerequisites (membership in the local Administrators or Hyper-V Administrators group, sufficient RAM and disk space, and an optional virtual switch for network connectivity). Below is a detailed breakdown of every step, from installing the Hyper-V role to launching your first VM.
Install the Hyper-V Role on Windows
Hyper-V is a built-in feature on Windows 10/11 Pro/Enterprise and all modern Windows Server versions (2016, 2019, 2022, 2025) but is disabled by default. Follow these official steps to install the Hyper-V role:
Step 1. Select the Start button, type Settings, and open the Settings app.
Step 2. Navigate to Apps > Programs and Features under Related Settings.
Step 3. Click Turn Windows features on or off from the left-hand menu.
Step 4. In the Windows Features dialog box, check the box for Hyper-V (this includes the Hyper-V Manager, Hyper-V Virtual Machine Connection, and all required components).
Step 5. Click OK and wait for the installation to complete.
Step 6. Restart your computer to apply the changes—this is a mandatory step for the Hyper-V role to work properly.
How to Create a new VM in Hyper-V
Once the Hyper-V role is installed, you can start the process to how to create a new VM in Hyper V using the New Virtual Machine Wizard. This wizard guides you through all critical configurations, and Microsoft recommends creating Generation 2 VMs by default (for 64-bit Windows and modern Linux/FreeBSD systems) unless you have a specific need for Generation 1 (for legacy 32-bit systems or BIOS-based architecture). Here’s the step-by-step process:
Step 1. Open Hyper-V Manager by searching for it in the Start menu.
Step 2. In the left pane, select your Hyper-V host server, then click New> Virtual Machine from the Actions pane to launch the wizard.
Step 3. Click Next on the *Before You Begin* page (you can check *Do not show this page again* to skip it in future).
Step 4. Specify Name and Location – Enter a unique name for your VM (for easy identification) and choose a storage location for VM configuration files. Check the box to store the VM in a different location if you want to use a custom folder, then click Next.
Step 5. Specify Generation – Select Generation 2 (Microsoft’s recommended option) or Generation 1, then click Next—*note: VM generation cannot be changed after creation*.
Step 6. Assign Memory – Enter the startup memory (minimum 32 MB, maximum 5,902 MB per Microsoft’s official limit) and check the box to enable Dynamic Memory for flexible resource allocation, then click Next.
Step 7. Configure Networking – Select a pre-created virtual switch from the drop-down menu for network connectivity (skip this if you plan to configure networking later), then click Next.
Step 8. Connect Virtual Hard Disk – Choose to create a new VHDX (enter a name, location, and size), use an existing VHD/VHDX, or attach a hard disk later, then click Next.
Step 9. Installation Options – Select how to install the guest OS (install later, from an ISO file, floppy disk, or network-based installation server like WDS), then click Next.
Step 10. Summary – Verify all your configuration choices. If everything is correct, click Finish to create the VM—your new VM will now appear in the Hyper-V Manager list.
Connect to the Virtual Machine
After creating your VM, the final step is to start it and establish a connection to set up the guest operating system. This simple process is done directly within Hyper-V Manager:
Step 1. In Hyper-V Manager, locate your new VM in the virtual machines list.
Step 2. Right-click the VM name and select Connect—this launches the Virtual Machine Connection (VMConnect) tool.
Step 3. In the VMConnect window, click Action > Start to power on the VM.
Step 4. Follow the on-screen prompts to install and configure the guest operating system, and your VM will be ready for use.
How to Create VM in Hyper V Using PowerShell
For IT administrators and users building large-scale virtual environments, how to create VM in Hyper V using PowerShell is the optimal choice. PowerShell enables automation, batch VM creation, and precise configuration control—far more efficient than the graphical interface for repetitive tasks. All commands follow Microsoft’s official syntax, and you only need to run a few cmdlets to create and launch a VM. This method also lets you easily customize VM settings like CPU count, memory ranges, and storage paths, and it’s the go-to for how to create new VM in Hyper V at scale.
Prerequisites for PowerShell VM Creation
1. Run Windows PowerShell as an administrator (right-click PowerShell in the Start menu and select Run as administrator).
2. Ensure you know the name of your virtual switch (required for network connectivity)—you can retrieve it with a simple cmdlet (see Step 1 below).
3. Have sufficient disk space and RAM on the host, and confirm your user account has Hyper-V administrative permissions.
Step-by-Step PowerShell VM Creation
1. Get the virtual switch name – Run the following cmdlet to list all virtual switches on your Hyper-V host—this ensures you use the correct switch name for your VM:
Get-VMSwitch * | Format-Table Name
2.Existing virtual hard disk – Use the
New-VM cmdlet to create a fully configured VM with a new VHDX file. This example creates a Generation 2 VM named *ProdVM* with 4GB startup memory, a 20GB virtual hard disk, and connection to an external virtual switch:
New-VM -Name ProdVM -MemoryStartupBytes 4GB -NewVHDPath C:\VMs\ProdVM.vhdx -NewVHDSizeBytes 20GB -Path C:\VMData -Generation 2 -Switch ExternalSwitch
3. Create a VM with an existing virtual hard disk – If you have a preconfigured VHD/VHDX file, replace the
-NewVHDPath and -NewVHDSizeBytes parameters with -VHDPath to use the existing disk:
New-VM -Name TestVM -MemoryStartupBytes 2GB -VHDPath C:\VMs\ExistingVM.vhdx -Path C:\VMData -Generation 2 -Switch InternalSwitch
4. Start the VM via PowerShell: After creation, power on the VM with the
Start-VM cmdlet:
Start-VM -Name ProdVM
5. Connect to the VM via PowerShell: Launch the VMConnect tool to access the VM with this cmdlet (replace
localhost with your host server name if using a remote Hyper-V host):
VMConnect.exe localhost “ProdVM”
Customize Your VM with Additional PowerShell Cmdlets
You can fine-tune your VM’s resources (CPU, dynamic memory) using the
Set-VM cmdlet. For example, assign 2 virtual processors and set dynamic memory ranges (256MB minimum, 8GB maximum) for *ProdVM*:
Set-VM -Name ProdVM -ProcessorCount 2 -DynamicMemory -MemoryMinimumBytes 256MB -MemoryMaximumBytes 8GB
To view all Hyper-V-related cmdlets for further customization, run:
Get-Command -Module hyper-v | Out-GridView
Key Best Practices for Creating VM in Hyper V
Now that you’ve learned how to create VM in Hyper V with both Hyper-V Manager and PowerShell, following these best practices will ensure your virtual environment is stable, performant, and scalable:
1. Choose Generation 2 VMs by default: They support UEFI, Secure Boot, and modern virtualization features—only use Generation 1 for legacy workloads.
2. Enable Dynamic Memory: This optimizes host resource usage by allocating RAM to VMs only when needed, ideal for multiple VMs running on a single host.
3. Use VHDX instead of VHD: VHDX files support larger storage sizes (up to 64TB), better error handling, and dynamic expansion.
4. Name VMs and virtual switches clearly: Use descriptive names (e.g., *Win11-Test-VM*, *Office-LAN-ExternalSwitch*) for easy management in large environments.
5. Allocate sufficient storage: Ensure the host has enough free disk space for VM configuration files, virtual hard disks, and checkpoints (if enabled).
Conclusion
Learning how to create VM in Hyper V unlocks the full potential of Microsoft’s virtualization technology, whether you’re building a single test VM or a multi-VM production environment. The Hyper-V Manager method is ideal for beginners and one-off VM creation, thanks to its intuitive wizard-driven process, while PowerShell is the go-to tool for IT administrators needing automation and batch VM deployment at scale. By following the Microsoft official steps outlined in this guide, you can avoid common pitfalls and create VMs optimized for your specific testing, development, or production workloads.
Beyond creating and configuring your Hyper-V VMs, protecting your virtual environment is a critical next step to prevent data loss from unexpected failures or threats. Hyper-V’s built-in tools lack comprehensive backup and recovery capabilities, so we recommend info2Soft i2Backup—a tailored solution designed to simplify Hyper-V data protection with reliable, user-friendly features that keep your VMs and critical data secure and recoverable.
- Instant VM Recovery: Instantly recover from server failures by remotely mounting VM backup to the target platform to achieve ultra-low recovery time objectives (RTOs).
- File-level recovery: Restore specific files, folders, database entries, from a backup without restoring the entire dataset or virtual machine for better efficiency.
- Restore to Anywhere:Besides restore to the original location, restore backups to new virtual machines, physical servers, or database hosts with full cross-platform support.
- Point-in-time Recovery:Utilize continuous backup logs and multiple restore points. Whether it’s any corruption or accidental deletion, recover exactly what you need.