Windows 2016/2019: Installing the Hyper-V role

In this tutorial, we will have how to install Hyper-V on Windows Server.

Hyper-V is the Microsoft hypervisor, built into the Windows server since the 2008 64bit version.

Since Windows 8, it is also integrated in the client version to replace Virtual PC.

Installing Hyper-V in PowerShell

Start a PowerShell command-line prompt and enter the following command:

Install-WindowsFeature -Name Hyper-V -IncludeManagementTools

Wait during the installation:
Installation Hyper-V PS
Installation Hyper-V PS

When the installation is complete, restart the server.

Installing Hyper-V in graphical mode

From the server manager, click Add Roles and Features 1 .
Lancer l'assistant

When launching the wizard, click Next 1 .
Assistant ajout rôle installation hyper-v

Choose the Role Based Installation option or 1 feature and click Next 2 .
Assistant : type d'installation

Select the target server 1 and click the Next 2 button.
Choix du serveur Hyper-V

Check the Hyper-V role 1 .
Cocher Hyper-V

Validate adding the administration tools by clicking Add 1 features.
Outil administration

Press Next 1 .
Rôle sélectionné

Press Next 1 .

The wizard allows you to configure Hyper-V during the installation, click Next 1 .
Assistant de configuration hyper-v

Click Next 1 to configure virtual switches.
Assistant commutateur virtuel

Allow dynamic virtual machine migrations to and from this server if necessary, then click Next 1 .
Configuration migration dynamique

Live migration (Migration) allows two hyper-v (same version) in an Active Directory environment to move a virtual machine from one server to another (vm on). This facilitates maintenance operations.

In a nonclustered environment, dynamic migration does not allow VM failover.

Click Next 1 , it is possible to change the default location of the virtual machines.
Emplacement par défaut

Check the box Automatically restart the destination server, if necessary 1 , click on Yes 2 to confirm.
Rdemarrage auto

Click on Install 1 .

Wait during the installation, the server should restart …

Once restarted, log in. The installation is complete. Click Close 1 to exit the wizard.
Installation terminée

You can now launch the Hyper-V Management Console to set up the hypervisor and start adding Virtual Computers.
Console Hyper-V

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!

Related Posts

Hyper-V: add a virtual card to the host
Intro In this tutorial, I will explain how to add a virtual adapter to the Hyper-V host that will be connected to the virtual switch. This is equivalent to adding the same type of network adapter when configuring an external virtual switch with the A

Admin Center: Create a Virtual Machine on a Hyper-V Host
Introduction In this tutorial, we will have how to create a virtual machine with the Admin Center interface on a Hyper-V host. Prerequisites: Admin Center installed Hyper-V server Server added in the Admin Center Create a virtual machine 1. On the Ad

Hyper-V: Virtual Switch with Port Aggregate – Switch Embedded Teaming (SET)
Introduction In this tutorial, we're going to have how to create a Switch Embedded Teaming virtual switch. Since Windows 2016, it is possible to directly create a virtual switch with a network card teaming. On Windows Server 2012 and Windows Server 2

Leave a Comment