Install Hyper-V In Windows Server 2021

Windows Server 2021 is focused on virtualization and cloud technologies. It has many available roles and features. Windows Server 2021 is the fifth release of the Windows Server family of operating systems developed with Windows 8. 

How do you install Hyper-V in Windows Server 2021?

Before installing Hyper-V or completing your Hyper-V recovery process, ensure that you have the following:

  • A user account with administrator permissions for the computer
  • Enough memory to run all the virtual machines that you plan to run simultaneously
  • An installed guest operating system for the virtual machine

To install the Hyper-V role on Windows Server 2021, there are two possible methods that you can use: Server Manager or PowerShell.

1. Using Server Manager:

  • The first thing to do is open Server Manager. If Hyper-V is installed on VMware Workstation 9, install Windows Server 2021 as a virtual machine with at least 6 GB virtual memory and 90 GB hard drive space. Make sure to choose Hyper-V as the guest operating system version.
  • After installing Server 2021, go ahead and install the VMware tools and then restart the server.
  • When the server starts, Server Manager opens by default.
  • Click Add roles and features in Server Manager.
  • Then select role-based or feature-based installation.
  • Choose and select the server and click Next
  • Choose the Hyper-V role and click Next
  • Then click Add features for additional features needed for the Hyper-V role.
  • After this, click Next. Do not choose any features in the Features option and click Next.
  • You can then select network adapter for virtual switches. Click Next.
  • In virtual live migration windows, you can configure live migration.
  • When you get to the next screen, configure the location to store Hyper-V virtual hard disk files.
  • After the configuration, click Next.
  • You will be able to see the installation information and confirm it by clicking Install. You will then see the installation starting.
  • When the installation is complete, restart the server.
  • Go ahead and open the Hyper-V Manager from the start menu to configure it.
  • Your Hyper-V role in Server 2021 should have been successfully installed.
  • After the installation, configure Hyper-V Manager to install virtual machines.

2. Using Windows PowerShell

  • The first thing to do is open Windows PowerShell session with elevated user rights. To open it, click Startand type PowerShell. Right-click PowerShell and click Run as Administrator.
  • Run the command, Install-WindowsFeature -Name Hyper-V -ComputerName <computer_name> -IncludeManagementTools -Restart. If you want to install Hyper-V directly from a console session, do not include -ComputerName <computer_name> in the command.
  • After the installation, run the -GetWindowsFeature to verify that everything has been installed correctly. If Hyper-V was installed remotely, include the ComputerName parameter (Get-WindowsFeature – ComputerName <computer_name> ) so you can view a list of roles and features installed on the server.

In Windows PowerShell, management tools and snap-ins for a role are not included by default. To include management tools as part of a role installation, add the -IncludeManagementTools parameter to your command. Management tools and snap-ins cannot be installed on servers that run the Server Core installation option of Windows Server.

If you try to install the management tools for the Hyper-V role on a server that runs the Server Core installation option of Windows Server 2021, change the installation option to another that allows the management tools to run.

Interesting Related Article: “Windows device driver updates guide