How to Install Windows 11 in Virtual Machine on Hyper-V

This post will show you how to install Windows 11 in Hyper-V Virtual Machine. We will use Hyper-V, and not VMWare or VirtualBox because Hyper-V is a native feature of Windows. It is available for free. It also delivers decent guest OS performance compared with its competitors.

Advertisement

Hyper-V creates a virtualized computer that runs a guest OS on top of a physical host. Such a virtualized environment works much similar to a physical computer. However, it exists in an isolated environment. Hyper-V includes a hypervisor, a special software that controls access to  physical hardware resources by the virtual environment.

Virtualization has a number of advantages. For example, it allows to quickly restore a system to its previous state with snapshots. It also enables quick deployment of computer systems. Once a virtualized instance configured, you can migrate the system between physical hosts.

Hyper-V is available on 64-bit versions of Windows 11, in Pro, Enterprise, and Education editions. It is not available on the Home edition.

This post will show you how to create a Hyper-V virtual machine with and install Windows 11 in it.

Install Windows 11 In Hyper V Virtual Machine

I assume that you already have a bootable ISO image of Windows 11. If not, download it right now.

Install Windows 11 in Hyper-V Virtual Machine

To install Windows 11 in a virtual machine with Hyper-V, you need to perform the following steps.

  1. Enable the Hyper-V feature in Windows.
  2. Create and configure a new virtual machine in the Hyper-V Manager tool.
  3. Install Windows in the Hyper-V Virtual machine.

Let's get everything done.

1) Enable the Hyper-V feature

  1. Press the Win + R shortcut keys to open the Run dialog.
  2. Type optionalfeatures in the Run dialog to open the Windows Features dialog.Optionalfeatures Command In The Run Dialog
  3. Check the entry Hyper-V and all its subitems.Enable Hyperv Feature
  4. Restart Windows when prompted.

You now have Hyper-V enabled. Let's create a new virtual machine to install Windows 11 on it.

2) Create a new Hyper-V virtual machine

  1. Open Hyper-V Manager from the start menu or with the virtmgmt.msc command in Run (Win + R).Open Hyper V Manager
  2. Right-click the host computer in the left column, and select New > Virtual machine from the menu.
  3. Click Next in the welcome wizard.New Virtual Machine Wizard
  4. Name your new VM, like "Windows 11".Name Your Vm
  5. Optional: If you want to store the virtual machine under a custom location, check the Store the virtual machine in a different location option, and select the drive and/or folder. Click Next.
  6. Select Generation 2, and click the Next button.Set Machine Generation
  7. Specify the memory size in MB for your VM. Windows 11 requires at least 4096 MB.Specify Vm Memory Size And Type
    • If you remove the check mark from Dynamic Memory, all the specified memory size will allocated from the host computer once you start the VM.
    • If you turn on Dynamic Memory, the specified memory size is only allocated on demand.
  8. On the next page, select Default Switch to connect the virtual machine to network.Default Switch For Network
  9. On the next page, you will be able to customize the virtual drive for the virtual machine. Specify its size, minimum 64GB for Windows 11, and click Next.Vm Disk Size
  10. Select Install an operating system from a bootable image file , and select your Windows 11 ISO image.Install Windows 11 In Hyper-V Virtual Machine From Iso
  11. Click on finish.

Congrats, you have created and configured your Windows 11 virtual machine. You are now ready to install the Windows 11 OS.

Do the following.

3) Install Windows 11 on a virtual machine in Hyper-V

  1. In Hyper-V Manager (virtmgmt.msc), right-click the virtual machine, e.g. "Windows 11", and select Settings from the menu.Change Virtual Machine Settings
  2. Select Security in the left pane.Enable Secure Boot In Hyperv
  3. On the right, make sure you have the following options enabled: Enable Secure Boot, Enable Trusted Platform Module. If not, enable them (check), and click on Apply.Enable Tpm In Hyperv
  4. Switch to the Processor section on the left.
  5. Set the Number of virtual processors value to at least 2.Number Of Processor Cores For Vm
  6. Now, I recommend you to switch to Checkpoints Settings and enable checkpoints if they are disabled. That's a really great feature that allows to quickly restore a broken VM without reinstalling the guest OS.Checkpoints
  7. Finally, right click your VM, and select Start from the context menu.Start item to Install Windows in Virtual Machine
  8. Once you see the message Press any key to boot from CD or DVD..., it means you have initiated Windows 11 setup. Press any key to proceed.
    • If you miss the time to press any key, select Actions > Reset from the Hyper-V menu. Or press Ctrl + R.
  9. Once you see the Windows Setup dialog, continue at the "Do a clean install of Windows 11" chapter in this post on Winaero.Windows 11 Setup Program

By carefully following the above steps, you will get Windows 11 installed in Hyper-V. It will be your best friend for testing new apps, settings, and even unstable builds of the OS.

That's it!

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer from Russia who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

6 thoughts on “How to Install Windows 11 in Virtual Machine on Hyper-V”

  1. Does HyperV allow the guest to have sound now?
    I know I switched to VMware just for that reason. And sadly VMware and HyperV can’t co-exist.

  2. Generation 2 won’t work for me. I get Start PXE over iP4 error. Yes, my machine is UEFI firmware

  3. I get “This PC doesn’t meet minimum system requirements to install this version of Windows. For more info, visit https://aka.ms/windowsSysReq”.

    My computer does meet. And the Virtual Machine I created has TPM enabled, secure Boot enabled, 6 processors, 6024GB of RAM, and 127GB of hard drive.
    What did I miss? As far as I know, I followed the instructions. Tried it 3 times.
    Thanks for any help you can provide.

  4. Okay, I went through and checked everything again and I guess I didn’t click on apply when I changed the settings of the RAM and TPM. So now it’s installing. Sorry. Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *