Instructions from Microsoft Website:
Install Hyper-V by using Server Manager
- In Server Manager, on the Manage menu, click Add Roles and Features.
- 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.
- On the Select installation type page, select Role-based or feature-based installation and then click Next.
- On the Select destination server page, select a server from the server pool and then click Next.
- On the Select server roles page, select Hyper-V.
- To add the tools that you use to create and manage virtual machines, click Add Features. On the Features page, click Next.
- On the Create Virtual Switches page, Virtual Machine Migration page, and Default Stores page, select the appropriate options.
-
On the Confirm installation selections page, select Restart the destination server automatically if required, and then click Install.
-
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
- On the Windows desktop, click the Start button and type any part of the name Windows PowerShell.
- Right-click Windows PowerShell and select Run as Administrator.
-
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.PowerShellInstall-WindowsFeature -Name Hyper-V -ComputerName <computer_name> -IncludeManagementTools -Restart
If you're connected locally to the server, run the command without
-ComputerName <computer_name>
. - 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:
PowerShell
Get-WindowsFeature -ComputerName <computer_name>
If you're connected locally to the server, run the command without
-ComputerName <computer_name>
.