Virtualization is a widely used technology today. Indeed, it is possible to test operating systems and applications without mounting them in a productive environment. In this way, any error or failure does not harm the host system. Well, Windows Server has its own virtualization manager. This service is known as Hyper V. As a result, this role allows multiple machines to run on one. Therefore, it is possible to evaluate operating systems and applications without additional costs. So in this post we will see how to install Hyper-V on Windows Server 2019.
How to install Hyper-V Windows Server 2019 from Server Manager.
Hyper-V is developed as a virtualization technology which is based on hypervisor. Consequently, it uses the Windows hypervisor, which in turn requires a physical processor. It is essential that this processor has the virtualization technology. To activate and install it, from the Server Manager click on Add Roles and Features.
Press Next to continue.
On the next screen, select the Role-based or feature-bases installation:
Now it is time to select the server where the role will be installed:
Then select Hyper-V:
Then, a confirmation window is shown below with the features that will be added.
Press Next to continue:
The following window is about installation based on features. Consequently, press Next to continue.
The wizard then displays a brief overview of Hyper-V. Additionally, it is necessary to know the network device that will be used as a virtual switch.
It is then possible to select the network adapter as a network switch. Therefore, it is necessary to mark one to guarantee the connectivity of the virtual machine.
In the following screen it is possible to configure Hyper-V to support live migration of virtual machines. That is, without having to shut down the server.
Now it’s time to set the default Hyper-V routes. It is also possible to modify them according to the administrator’s taste.
Now the wizard shows a summary of the role that will be installed. Press Install to begin the task:
The installation process will begin immediately:
Finally, it is necessary to restart the server to save the changes.
After restarting the server, you will see the Hyper-V manager available from the start menu.
Clicking on it will display the administration console:
How to install Hyper-V in Windows Server 2019 from PowerShell
On the other hand, it is possible to install this role on the server using PowerShell. With this intention, open a PowerShell with administrator privileges and run the following command:
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools
Installing Hyper-V using DISM
Deployment Image Servicing and Management is a tool integrated into the server with which we manage the system images. It also allows, to install Hyper-V. To use this method, you need to open a PowerShell as an administrator and run the following command:
dism /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V /All
In any case, you have to restart the server to see the established changes. Ultimately we have seen how to install Hyper-V on Windows Server. In addition, we studied the graphic mode and through PowerShell. All right, that’s it for now. Bye!