Boot window trên hyper v window serer

Skip to main content

This browser is no longer supported.

Nội dung chính

  • Install Hyper-V on Windows 10
  • In this article
  • Check Requirements
  • Enable Hyper-V using PowerShell
  • Enable Hyper-V with CMD and DISM
  • Enable the Hyper-V role through Settings
  • Make virtual machines
  • Install the Hyper-V role on Windows Server
  • In this article
  • Install Hyper-V by using Server Manager
  • Install Hyper-V by using the Install-WindowsFeature cmdlet
  • Additional References

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Install Hyper-V on Windows 10

  • Article
  • 04/26/2022
  • 2 minutes to read

In this article

Enable Hyper-V to create virtual machines on Windows 10.
Hyper-V can be enabled in many ways including using the Windows 10 control panel, PowerShell or using the Deployment Imaging Servicing and Management tool (DISM). This documents walks through each option.

Note: Hyper-V is built into Windows as an optional feature -- there is no Hyper-V download.

Check Requirements

  • Windows 10 Enterprise, Pro, or Education
  • 64-bit Processor with Second Level Address Translation (SLAT).
  • CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs).
  • Minimum of 4 GB memory.

The Hyper-V role cannot be installed on Windows 10 Home.

Upgrade from Windows 10 Home edition to Windows 10 Pro by opening up Settings > Update and Security > Activation.

For more information and troubleshooting, see Windows 10 Hyper-V System Requirements.

Enable Hyper-V using PowerShell

  1. Open a PowerShell console as Administrator.

  2. Run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

If the command couldn't be found, make sure you're running PowerShell as Administrator.

When the installation has completed, reboot.

Enable Hyper-V with CMD and DISM

The Deployment Image Servicing and Management tool (DISM) helps configure Windows and Windows images. Among its many applications, DISM can enable Windows features while the operating system is running.

To enable the Hyper-V role using DISM:

  1. Open up a PowerShell or CMD session as Administrator.

  2. Type the following command:

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

Boot window trên hyper v window serer

For more information about DISM, see the DISM Technical Reference.

Enable the Hyper-V role through Settings

  1. Right click on the Windows button and select ‘Apps and Features’.

  2. Select Programs and Features on the right under related settings.

  3. Select Turn Windows Features on or off.

  4. Select Hyper-V and click OK.

When the installation has completed you are prompted to restart your computer.

Make virtual machines

Create your first virtual machine

Feedback

Submit and view feedback for

Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Install the Hyper-V role on Windows Server

  • Article
  • 03/30/2022
  • 2 minutes to read

In this article

Applies to: Windows Server 2022, Windows Server 2016, Windows Server 2019

To create and run virtual machines, install the Hyper-V role on Windows Server by using Server Manager or the Install-WindowsFeature cmdlet in Windows PowerShell. For Windows 10, see Install Hyper-V on Windows 10.

To learn more about Hyper-V, see the Hyper-V Technology Overview. To try out Windows Server 2019, you can download and install an evaluation copy. See the Evaluation Center.

Before you install Windows Server or add the Hyper-V role, make sure that:

  • Your computer hardware is compatible. For details, see System Requirements for Windows Server and System requirements for Hyper-V on Windows Server.
  • You don't plan to use third-party virtualization apps that rely on the same processor features that Hyper-V requires. Examples include VMWare Workstation and VirtualBox. You can install Hyper-V without uninstalling these other apps. But, if you try to use them to manage virtual machines when the Hyper-V hypervisor is running, the virtual machines might not start or might run unreliably. For details and instructions for turning off the Hyper-V hypervisor if you need to use one of these apps, see Virtualization applications do not work together with Hyper-V, Device Guard, and Credential Guard.

If you want to install only the management tools, such as Hyper-V Manager, see Remotely manage Hyper-V hosts with Hyper-V Manager.

Install Hyper-V by using Server Manager

  1. In Server Manager, on the Manage menu, click Add Roles and Features.

  2. On the Before you begin page, verify that your destination server and network environment are prepared for the role and feature you want to install. Click Next.

  3. On the Select installation type page, select Role-based or feature-based installation and then click Next.

  4. On the Select destination server page, select a server from the server pool and then click Next.

  5. On the Select server roles page, select Hyper-V.

  6. To add the tools that you use to create and manage virtual machines, click Add Features. On the Features page, click Next.

  7. On the Create Virtual Switches page, Virtual Machine Migration page, and Default Stores page, select the appropriate options.

  8. On the Confirm installation selections page, select Restart the destination server automatically if required, and then click Install.

  9. When installation is finished, verify that Hyper-V installed correctly. Open the All Servers page in Server Manager and select a server on which you installed Hyper-V. Check the Roles and Features tile on the page for the selected server.

Install Hyper-V by using the Install-WindowsFeature cmdlet

  1. On the Windows desktop, click the Start button and type any part of the name Windows PowerShell.

  2. Right-click Windows PowerShell and select Run as Administrator.

  3. To install Hyper-V on a server you're connected to remotely, run the following command and replace <computer_name> with the name of server.

    Install-WindowsFeature -Name Hyper-V -ComputerName <computer_name> -IncludeManagementTools -Restart
    

    If you're connected locally to the server, run the command without -ComputerName <computer_name>.

  4. After the server restarts, you can see that the Hyper-V role is installed and see what other roles and features are installed by running the following command:

    Get-WindowsFeature -ComputerName <computer_name>
    

    If you're connected locally to the server, run the command without -ComputerName <computer_name>.

Note

If you install this role on a server that runs the Server Core installation option of Windows Server 2016 and use the parameter -IncludeManagementTools, only the Hyper-V Module for Windows PowerShell is installed. You can use the GUI management tool, Hyper-V Manager, on another computer to remotely manage a Hyper-V host that runs on a Server Core installation. For instructions on connecting remotely, see Remotely manage Hyper-V hosts with Hyper-V Manager.

Additional References

  • Install-WindowsFeature

Feedback

Submit and view feedback for