We have shared many posts about Windows Server 2019 and in this post, I will share the different ways to install Hyper-V on Windows Server 2019. You can install Hyper-V in three ways, PowerShell, dism.exe, and Server Manager.
Install Hyper-V with PowerShell
PowerShell is the easiest way to install Hyper-V on Core and GUI
Start the PowerShell in an elevated prompt and run the below command and you have to restart after the successful installation.
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools
You can install Hyper-V with automatic restart also using below command
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
Install Hyper-V with DISM
Start the PowerShell in an elevated prompt and run the below command and you have to restart after the successful installation.
dism /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V /All
Install Hyper-V From Server Manager
You have to go through some steps to install Hyper-V from the Server Manager, also there is a number of options available on the Server Manager.
Open the Server Manager and Click on Add roles and features
Click Next on the introductory screen.
Choose Role-based or feature-based installation.
Choose the desired system and click Next.
Check the Hyper-V role and select the management tools and click next
On the Features page you can view the hyper-V management tools, also you can choose the different selection of management tools if required
Next you will get an introductory screen with Hyper-V information and things to note – pre-installation checklist, Click Next
Pick the physical Ethernet adapter to host a Hyper-V virtual switch. You can choose now or later do that
Choose the initial Live Migration security control, these settings are shown only apply to Shared Nothing Live Migration and not clustered Live Migrations. Choose the required and Click Next, if required you change this option later.
Provide storage location for virtual machines and virtual hard disks , default path will be as shown below and you can change it later.
Review the basic options that you have chosen and optionally you can export them. Also, you can select the option to enable an automatic reboot to enable Hyper-V.
Click on Install
You can follow anyone steps from above and install the Hyper-V on Windows Server 2019
Download Windows Server 2019 from Evaluation center
Conclusion
We successfully installed the Hyper-V on 2019 Server and shared the different method to install the Hyper-V on 2019 Server. We will share more posts about Hyper-V configuration soon.