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:
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).