How to Install Hyper-V on Windows Server 2019: 3 Methods

Microsoft strives to make its products effective, reliable, and practical, improving the overall user experience and operational efficiency. And Hyper-V was designed with such simplicity and usability in mind, allowing you to customize every aspect of the infrastructure. For this reason, there are at least three ways to install Hyper-V: by using PowerShell, Server Manager, or DISM. In this post, we will guide you through the three installation methods.

Before we start
After installing Microsoft Hyper-V, it is recommended that you implement a data protection strategy and start backing up VM data. Download the white paper about the best practices for disaster recovery in virtualized environments to learn more. 

Requirement to Install Hyper-V on Windows Server 2019

Before you can start installing Microsoft Hyper-V on Windows Server 2019, you need to ensure that specific hardware requirements are met. Otherwise, the installation process will fail.

The minimum system prerequisites for successful Hyper-V deployment include:

  • 4 GHz 64-bit CPU
  • Second Level Address Translation (SLAT)
  • VM Monitor Mode Extensions
  • Minimum 4 GB of RAM, which should be enough for running the host and VMs at the preliminary stage of Hyper-V deployment
  • Hardware-assisted virtualization with Intel VT or AMD-V enabled in UEFI/BIOS
  • Hardware-enforced Data Execution Prevention (DEP) with the XD bit (for Intel systems) or the NX bit (for AMD systems)

However, if you are still not sure that your system fully meets the listed requirements, you can open Windows PowerShell or cmd.exe and run the following command: systeminfo.exe. After that, you will be presented with a report showing all the Hyper-V requirements with which your system complies.

Checking the requirements to install Microsoft Hyper-V

How to Install Hyper-V on Windows Server 2019

In this section of this blog post, we’ll describe the different ways to install Hyper-V on Windows Server 2019: PowerShell, DISM, or Server Manager.

Note: The process of installing Hyper-V on Windows Server 2022 and Windows Server 2016 is the same as for Windows Server 2019.

Method 1. Hyper-V installation using Windows PowerShell

Hyper-V installation process using PowerShell commands can be completed in less than a minute. For this purpose, you need to open PowerShell in the Administrator mode and run the following command:

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

After The Hyper-V installation process is over, you will be given the option to restart the computer right away or do so later.

The advantage of installing Hyper-V in the command line is that you can install Hyper-V on Windows Server 2019 Core and Windows Server 2019 with the graphical user interface (GUI) using this method. Read about the difference between Hyper-V Server Core and GUI installation.

Method 2. Install Hyper-V with DISM

To install Hyper-V on Windows Server 2019, you can also use the Deployment Image Servicing and Management (DISM) tool. This command line tool is typically used for the configuration of Windows and Windows images, as well as enabling/disabling Windows Server features even while the OS is running.

To install Hyper-V on Windows Server 2019 using DISM, you should open PowerShell or CMD in an elevated prompt and run this command:

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

Once the operation is complete, you will be asked to restart the computer to activate the changes.

Method 3. Installing Hyper-V by using Server Manager

Installing Hyper-V on Windows Server 2019 using Server Manager requires using the graphical user interface (GUI), unlike the other two. For this purpose, you need to launch Server Manager and make the necessary changes there.

  1. Open Server Manager and click Add roles and features.

Opening Server Manager to install Hyper-V on Windows Server 2019

  1. Read the Before You Begin page and click Next.

Before you begin to install Microsoft Hyper V

  1. Choose which installation type is most suitable for you. Here, you can choose to install the role on a running physical server or a VM, or on an offline virtual hard disk using Remote Desktop Services. Select the first option if you need to run virtual machines.

How to install Hyper-V – selecting the installation type

  1. Select a destination server. Server Manager presents you with two options: Select a server from the server pool or Select a virtual hard disk. Choose the first option.

Selecting a server from the pool to install Microsoft Hyper V

  1. After that, you can see the full list of roles and features which can be installed using Server Manager. Check the Hyper-V box here.

You can also add Hyper-V Management Tools, and this is the recommended option. Hyper-V Manager is the tool to manage Hyper-V in the GUI.

How to install Hyper-V server role

On the Features page, you can select specific Hyper-V Management Tools, which include Hyper-V GUI Management Tools and Hyper-V Module for Windows PowerShell.

  1. After that, an introductory page to Hyper-V configuration will open. Here, you can read about the capabilities of Hyper-V functionality.

Configuring Hyper-V (How to Install Hyper-V on Windows Server 2019)

  • In the Virtual Switches section, you can select the network adapter for providing VMs with network connectivity.
  • In the Migration section, you can enable this server to send/receive live migrations of VMs, in addition to selecting the authentication protocol to be used for verifying live migrations: Credential Security Support Provider (CredSSP) or Kerberos.
  • In the Default Stores section, you can select default locations for virtual hard disk files and VM configuration files.
  1. This is the last screen of the Hyper-V installation process. Here, you can have a final look at all of the options you have selected so far. Additionally, you can check the box Restart the destination server automatically if required.

The final stage to install Hyper-V on Windows Server 2019

  1. Click Install to confirm your selections.

Once the Hyper-V installation process is complete, you can start building your virtual environment. Now you can create a VM and install OS on Hyper-V after creation.

Read also other articles about how to install Microsoft Hyper-V in different cases.

Configuring Hyper-V on Windows Server 2019

Once you have successfully installed Hyper-V on Windows Server 2019 using one of the above methods, you should go through the Hyper-V post-installation process. This includes:

  • Configuring Hyper-V networking: create and configure a virtual switch, a Switch Embedded Team, a virtual network adapter, etc.
  • Configuring your Hyper-V host: select a default VM configuration storage location, set up Live Migration process, etc.

Read one of our blog posts to learn how to go through the Hyper-V configuration process.

Windows Server Backup with NAKIVO Backup & Replication

Once you have configured Windows Server and Hyper-V, you should consider VM and physical machine backup to avoid irrevocable data loss and prolonged downtime. A dedicated data protection solution helps you quickly recover after incidents such as ransomware attacks, configuration errors, server failures, etc.

NAKIVO Backup & Replication is a comprehensive data protection solution for physical, virtual, and cloud workloads from a single pane of glass. The solution’s functionality includes backup, replication, and recovery with advanced administration and performance-enhancing features.

With Windows Server Backup from NAKIVO and Microsoft Hyper-V Backup you can easily back up physical servers and VMs while ensuring the application and database data consistency. The solution offers a range of backup targets to help you prevent a single point of failure, including immutable anti-ransomware repositories in the cloud (Azure Blob, Amazon S3, Wasabi, Backblaze B2).

Download NAKIVO Backup & Replication Free Edition and back up Windows Server and Microsoft Hyper-V workloads.