Advertisement

How to Enable and Use Hyper-V in Windows 10

Windows 10, Windows 8.1 and Windows 8 come with Client Hyper-V so you can run a supported guest operating system inside a Virtual Machine. Hyper-V is Microsoft's native hypervisor for Windows. It was originally developed for Windows Server 2008 and then ported to Windows client OS. It has improved over time and is present in the latest Windows 10 release as well. Here is how to enable and use this feature.

Advertisеment

What is Hyper-V

Hyper-V is Microsoft's very own virtualization solution that allows creating virtual machines on x86-64 systems running Windows. Hyper-V was first released alongside Windows Server 2008, and has been available without additional charge since Windows Server 2012 and Windows 8. Windows 8 was the first Windows client operating system to include hardware virtualization support natively. With Windows 8.1, Hyper-V has got a number of enhancements such as Enhanced Session Mode, enabling high fidelity graphics for connections to VMs using the RDP protocol, and USB redirection which is enabled from the host to VMs. Windows 10 brings further enhancements to the native hypervisor offering, including:

  1. Hot add and remove for memory and network adapters.
  2. Windows PowerShell Direct – the ability to run commands inside a virtual machine from the host operating system.
  3. Linux secure boot - Ubuntu 14.04 and later, and SUSE Linux Enterprise Server 12 OS offerings running on generation 2 virtual machines are now able to boot with the secure boot option enabled.
  4. Hyper-V Manager Down-level management - Hyper-V manager can manage computers running Hyper-V on Windows Server 2012, Windows Server 2012 R2 and Windows 8.1.

Here is how to enable Hyper-V in Windows 10.

Note: Only Windows 10 Pro, Enterprise, and Education editions include the Hyper-V virtualization technology.

Enable Hyper-V in Windows 10

Before proceeding, please read How to check if your PC can run Windows 10 Hyper-V. Also, you must be signed in with an administrative account to continue.

To enable Hyper-V in Windows 10, do the following.

  1. Press the Win + R keys to open Run and type optionalfeatures.exe into the Run box.
  2. In the Optional Features applet, scroll to and enable the group Hyper-V.Windows 10 Enable HyperV
  3. Click on the OK button.
  4. Restart Windows 10 to apply the change.
  5. The Hyper-V feature is now enabled.

Now, let's see how to create a new virtual machine.

How to use Hyper-V

  1. Open the Hyper-V Manager from the Start menu. Tip: See How to navigate apps by alphabet in Windows 10 Start menu.  It can be found under Windows Administrative Tools > Hyper - V manager.Windows 10 Open HyperV Manager
  2. The app will automatically connect to your host. It will be displayed on the left as Hyper-V Manager > your computer's name. Windows 10 HyperV Manager
  3. Click on your host name on the left.
  4. Click on the New > Virtual Machine on the right.Windows 10 Create New VM 1
  5. Click Next to close the welcome screen. Windows 10 Create New VM 2
  6. On the next page, specify your virtual machine name. Change the location for its files if required.Windows 10 Create New VM 3
  7. On the next page, you can choose between two generations of virtual machine. Generation 1 supports 32-bit operating systems, Generation 2 comes with modern features like UEFI and secure boot, but it doesn't support 32-bit OSes. If you are going to install a 32-bit guest OS in your VM, then choose Generation 1.Windows 10 Create New VM 4
  8. In the next step, assign RAM to your VM, select Use Dynamic Memory for this virtual machine, and then click Next.Windows 10 Create New VM 5
    Alternatively, you can set the desired value for RAM for your VM and uncheck the dynamic memory option. In this case, your VM will reserve this value from the host's memory every time you start it.
  9. Select an existing virtual switch to allow the vm to connect to network. Starting in Windows 10 version 1709, Windows 10 automatically creates a virtual switch named "Default switch" that you can use. In previous Windows 10 versions, you may need to create a new switch.Windows 10 Create New VM 6
  10. Specify your virtual drive parameters. A dynamically allocated disk is a good choice to save space on your real hard drive. However, using a pre-allocated (fixed size) disk image will speed up your guest OS a little.Windows 10 Create New VM 7
  11. In the next step, you can specify an ISO file to setup the guest OS from. Windows 10 Create New VM 8
  12. Review your VM settings and click on the Finish button if everything is as expected.Windows 10 Create New VM 9
  13. This will create a new VM for you. Select it in the list and click Connect...  on the right.Windows 10 Create New VM 10
  14. In the next dialog, click on the Start button to start your VM. Install the OS on your VM exactly as you would do it on your real hardware.Windows 10 Create New VM 11
    Windows 10 Create New VM 12

You are done.

Note: If you are running a Windows 10 version released prior to Windows 10 version 1709, you must create a new virtual switch to get your VM connected to the Internet and/or LAN. Here is how it can be done. It will function as a bridge between the virtual network adapter in your VM and the physical network adapter connected to your host PC.

Create a new virtual switch

  1. In Hyper-V Manager, select your host on the left.
  2. On the right, click on the link Virtual Switch Manager.Windows 10 Hyper V Create New Virtual Switch
  3. In the next dialog, select New virtual network switch.
  4. On the right, select External, then click on the Create Virtual Switch button.
  5. Windows 10 Hyper V Create New Virtual Switch 2
  6. Fill in the name for your new Virtual Switch and select your host network adapter you want to assign to it.Windows 10 Hyper V Create New Virtual Switch 3
  7. Click OK and the confirm the operation to create your new virtual switch.

Note: If the Hyper-V Manager app shows an error message Hypervisor not running, try the following.

  1. Open an elevated command prompt.
  2. Type or copy-paste the following command:
    BCDEDIT /Set {current} hypervisorlaunchtype auto
  3. Restart Windows 10.

After that, Hyper-V should start properly.

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!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer 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 Enable and Use Hyper-V in Windows 10”

  1. Thanks Sergey! I enabled it a while ago to try Ubuntu but for some reason my Windows used to hang exactly once a day and after reboot no issues until I shutdown. So removed it again

  2. I am a faithful follower of your articles. Frequently, there is no indication of the versions in Windows 10. For example: Article Hyper-V in Windows 10 (not supported in Windows Home)
    Thank you

  3. Hi sir, I’m unable to run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All command in windows PowerShell how do I fixed this issue? Please let me know do i need to update Windows 10 Pro again?

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.