How to install Hyper-V on Windows Server 2019

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 with TipsMake.com!

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 用 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 .

Picture 1 of How to install Hyper-V on Windows Server 2019

3. Click Next.

Picture 2 of How to install Hyper-V on Windows Server 2019

 

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

Picture 3 of How to install Hyper-V on Windows Server 2019

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

Picture 4 of How to install Hyper-V on Windows Server 2019

 

6. Check the Hyper-V box .

Picture 5 of How to install Hyper-V on Windows Server 2019

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

Picture 6 of How to install Hyper-V on Windows Server 2019

 

8. Click the Next button .

Picture 7 of How to install Hyper-V on Windows Server 2019

9. Click the Next button .

Picture 8 of How to install Hyper-V on Windows Server 2019

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

Picture 9 of How to install Hyper-V on Windows Server 2019

 

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

Picture 10 of How to install Hyper-V on Windows Server 2019

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

Picture 11 of How to install Hyper-V on Windows Server 2019

13. Click the Install button to begin the installation.

Picture 12 of How to install Hyper-V on Windows Server 2019

 

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

Picture 13 of How to install Hyper-V on Windows Server 2019

  1. 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 .

Picture 14 of How to install Hyper-V on Windows Server 2019

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

Picture 15 of How to install Hyper-V on Windows Server 2019

4. Click the Next button .

Picture 16 of How to install Hyper-V on Windows Server 2019

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

Picture 17 of How to install Hyper-V on Windows Server 2019

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

Picture 18 of How to install Hyper-V on Windows Server 2019

7. Allocate memory for the virtual machine.

Picture 19 of How to install Hyper-V on Windows Server 2019

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

Picture 20 of How to install Hyper-V on Windows Server 2019

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

Picture 21 of How to install Hyper-V on Windows Server 2019

10. Choose the GuestOS installation source.

Picture 22 of How to install Hyper-V on Windows Server 2019

11. Click the Finish button if everything is OK.

Picture 23 of How to install Hyper-V on Windows Server 2019

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

Picture 24 of How to install Hyper-V on Windows Server 2019

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

Picture 25 of How to install Hyper-V on Windows Server 2019

14. Install GuestOS following the standard procedure.

Picture 26 of How to install Hyper-V on Windows Server 2019

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

Picture 27 of How to install Hyper-V on Windows Server 2019

Good luck!

« PREV POST
READ NEXT »