Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Install Hyper-V on Windows Server 2019

Learn how to install Hyper-V on Windows Server 2019 with practical instructions, useful tips, and troubleshooting guidance for common issues.

Table of Contents

Learn how to install Hyper-V on Windows Server 2019 with practical instructions, useful tips, and troubleshooting guidance for common issues.

Hyper-V is a Microsoft product used for hardware virtualization. In today's article, let's explore how to install Hyper-V on Windows Server 2019!

Installing Hyper-V on Windows Server 2019

System requirements:

  1. 64-bit computers and CPUs with Intel XD bit (Execute Disable bit) or AMD NX bit (No-Execute bit) functionality.
  2. Enable the Intel XD bit or AMD NX bit feature in the BIOS settings.

In the CUI settings, configure the following.

1. Run PowerShell with administrator privileges and install Hyper-V.

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # install Hyper-V with admin tools PS C:UsersAdministrator> Install-WindowsFeature Hyper-V -IncludeManagementTools Success Restart Needed Exit Code Feature Result ------- -------------- --------- -------------- True Yes SuccessRest. {Hyper-V, Windows PowerShell for Hyper-V . WARNING: You must restart this server to finish the installation process. # restart computer to apply changes PS C:UsersAdministrator> Restart-Computer -Force 

In the GUI settings, configure it as follows.

2. Run Server Manager and click Add roles and features .

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019

3. Click Next.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (2)

4. Select Role-based or feature-based installation .

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (3)

5. Select the host you want to add the services to.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (4)

6. Check the Hyper-V box.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (5)

7. Additional features are required to add Hyper-V. Click the Add Features button and proceed to Next .

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (6)

8. Click the Next button.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (7)

9. Click the Next button.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (8)

10. This section is for creating Virtual Switches. Choose a network adapter for it.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (9)

11. This is the Virtual Machines Migration section. In this example, keep the default options and continue by clicking Next.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (10)

12. This section specifies the configuration location of the virtual machine. In this example, keep the default option and continue by clicking Next .

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (11)

13. Click the Install button to begin the installation.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (12)

14. After the installation process is complete, click the Close button and restart your computer.

Installing Hyper-V on Windows Server 2019 screenshot for Install Hyper-V on Windows Server 2019 (13)

  • How to install iSCSI Target on Windows Server 2019

Create a Virtual Machine

In the CUI configuration, set it up as follows:

1. Run PowerShell with administrator privileges and configure:

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # confirm network adapter names PS C:UsersAdministrator> Get-NetAdapter Name InterfaceDescription ifIndex Status MacAddress LinkSpeed ---- -------------------- ------- ------ ---------- --------- Ethernet0 Intel(R) 82574L Gigabit Network Conn. 6 Up 00-0C-29-C7-54-1A 1 Gbps # create a virtul switch PS C:UsersAdministrator> New-VMSwitch -Name "Bridge01" -AllowManagementOS $True -NetAdapterName "Ethernet0" # confirm PS C:UsersAdministrator> Get-VMSwitch Name SwitchType NetAdapterInterfaceDescription ---- ---------- ------------------------------ Bridge01 External Intel(R) 82574L Gigabit Network Connection # create a directory for virtual machines PS C:UsersAdministrator> mkdir E:Virtual_Machine # set VM name and others PS C:UsersAdministrator> $ParentDir = 'E:Virtual_Machine' PS C:UsersAdministrator> $VMName = 'Win2k19' PS C:UsersAdministrator> $Switch = 'Bridge01' # create a virtual machine PS C:UsersAdministrator> New-VM -Name $VMName ` -MemoryStartupBytes 8GB ` -Generation 2 ` -NewVHDPath "$ParentDir$VMName$VMName.vhdx" ` -NewVHDSizeBytes 50GB ` -Path "$ParentDir$VMName" ` -SwitchName $Switch Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version ---- ----- ----------- ----------------- ------ ------ ------- Win2k19 Off 0 0 00:00:00 Operating normally 9.0 # change vCPU count PS C:UsersAdministrator> Set-VMProcessor $VMName -Count 4 # add SCSI controler PS C:UsersAdministrator> Add-VMScsiController -VMName $VMName # set install image PS C:UsersAdministrator> Add-VMDvdDrive -VMName $VMName ` -ControllerNumber 1 ` -ControllerLocation 0 ` -Path 'C:UsersAdministratorDocumentsWin2019_EN-US_190906-2324.rs5.iso' PS C:UsersAdministrator> $DVDDrive = Get-VMDvdDrive -VMName $VMName # set virtual DVD first boot device PS C:UsersAdministrator> Set-VMFirmware -VMName $VMName -FirstBootDevice $DVDDrive # start the virtual machine PS C:UsersAdministrator> Start-VM -Name $VMName # after this, refer to [13] to install OS

In the GUI configuration, set it up as follows.

2. Run Server Manager and open Tools > Hyper-V Manager .

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (14)

3. Select Hostname on the left and right-click on it to open the menu, then select New > Virtual Machine .

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (15)

4. Click the Next button.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (16)

5. Enter a name for the virtual machine. Any name will do.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (17)

6. Specify the virtual machine generation. In this example, select Generation 2 .

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (18)

7. Allocate memory for the virtual machine.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (19)

8. Select Virtual Switch to use the virtual machine's network connection.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (20)

9. Configure the virtual hard drive. Set the parameters to your liking.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (21)

10. Choose the GuestOS installation source.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (22)

11. Click the Finish button if everything is OK.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (23)

12. The virtual machine has just been created. To start it, right-click on it and select Start.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (24)

13. To connect to the virtual machine's control panel, right-click on it and select Connect .

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (25)

14. Install GuestOS following the standard procedure.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (26)

15. The installation process is complete and the Windows Server virtual machine is now running.

Create a Virtual Machine screenshot for Install Hyper-V on Windows Server 2019 (27)

Good luck!

FAQ

What is the best way to install hyper-v on windows server 2019?

Learn how to install Hyper-V on Windows Server 2019 with practical instructions, useful tips, and troubleshooting guidance for common issues.

What should you prepare before you install hyper-v on windows server 2019?

Key takeaway: Learn how to install Hyper-V on Windows Server 2019 with practical instructions, useful tips, and troubleshooting guidance for common issues.

What common mistakes should you avoid?

Hyper-V is a Microsoft product used for hardware virtualization.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.