How to Install Windows Server 2019 on a Hyper-V VM

Photo of author

By Victor Ashiedu

Published

Follow the 4 steps discussed in this guide to install and activate Windows Server 2019 on a Hyper-V VM.

Step 1: Create a New Hyper-V VM

To create a new Hyper-V VM, follow the steps below:

  • Login to your Hyper-V host
  • Then type Hyper-V manager in the search bar and click it from the search results
install windows server 2019 on Hyper-V - Create New Hyper-V VM
  • When Hyper-V Manager opens, right-click the Server name. Then point to New and select Virtual Machine.
install windows server 2019 on Hyper-V - Create New Hyper-V VM
  • At the Specify Name and Location screen enter a name for your Virtual Machine. Then click Next.
  • Then at the Specify Generation screen, select a Generation for your VM and click Next. For this demo I will use Generation 2. After making your selection click Next.
The information you need to decide the Hyper-V Generation is available in the page. Specifically, Generation 1 supports both 32 and 64-bits Operating Systems. On the other hand, Generation 2 support only 64-bits Operating Systems and also offers UEFI support.
install windows server 2019 on Hyper-V
  • Then assign your VM memory. This will depend on available Memory on your Hyper-V host. When you have assigned a memory, click Next.
Microsoft recommends a minimum of 512 for Server 2019 installation. But for a test server, you should assign at least 1024 MB (1 GB). However, if you are installing a production server you should have more Memory. The memory you assign will depend on the roles the server will be running.
install windows server 2019 on Hyper-V
  • Then at the Configure Networking screen, select a Virtual Switch then click Next.
If you have not created a Virtual Switch already, select Default Switch or Not Connected. You can create a Virtual Switch later and connect the VM to the switch.
install windows server 2019 on Hyper-V
  • Create a new Virtual Hard Drive or connect and existing one. If you want to create a new VHD, select the default option, then specify a Size (minimum of 32 GB for Server 2019). To attach an existing VHD select Use an exiting virtual hard disk option. when you finish click Next.
install windows server 2019 on Hyper-V
  • On the Installation Options screen, select Install an operating system from a bootable image file. Then use Browse to locate and select the ISO file. When you finish click Next.
  • On the final screen, review your selections. Then click Finish.

Step 2: Configure Hyper-V VM’s Boot Sequence

Before you install Windows Server 2019 on Hyper-V you need to modify the boot sequence of the VM to boot from the ISO image..

Here are the steps:

  • From Hyper-V Manager, right-click the VM you created in the last section. Then select Settings.
  • When the VMs Settings opens, click Firmware. Then confirm that DVD Drive is on top. If it is not, click on DVD Drive and use Move Up to move it to the top of the list. When you finish, click OK.

Step 3: Install Windows Server 2019 on the VM

Here is the final step to install Windows Server 2019 on Hyper-V:

  • Right-click the VM and select Connect.
Install Windows Server 2019 on Hyper-V
  • Before you start the VM, be ready to click a key to boot from the ISO. Then click Start…
Install Windows Server 2019 on Hyper-V
  • Immediately you see this prompt, click on it. Then click any key on your keyboard to boot from the ISO image.
Install Windows Server 2019 on Hyper-V
  • On this screen, click Enter.
Install Windows Server 2019 on Hyper-V
  • When the first screen of Windows Server 2019 installation loads, click Next.
You can modify the Time and currency format and Keyboard or input method.
Install Windows Server 2019 on Hyper-V
  • Then click Install now.
  • When prompted to Select the operating system you want to install, select the edition of the server you have a license for. To continue, click Next.
To install Server with GUI (desktop), ensure to select the edition with Desktop Experience. If you select one without Desktop Experience you will install Server Core.
  • Then, on the Applicable notices and license terms, check I accept the license terms. Then click Next.
  • At the Which type of installation do you want screen click Custom: Install Windows only (advanced).
  • If you have more than one hard drive attached to the VM, select the hard drive to install the Server Operation System. Then click Next.
  • The installation will begin..Wait…
  • When the last stage of installations are completed, the VM will restart.
  • When the server restarts, it will stay at the Getting ready screen for a while.
  • At the Customize settings screen, type a password for the administrator account. Then re-type the password and click Finish.
  • When the logon screen loads, press Ctrl + Alt + Del and login to the server.

Step 4: Activate Windows Server 2019 Evaluation to Full Version

The final step of this guide is to demo how to activate Windows Server 2019 with a valid product key.

You require a valid Server 2019 product key to complete the steps in this section.

Here are the steps:

DISM /online /get-targeteditions 

The result of the command should indicate the edition(s) of Windows Server 2019 you can activate.

  • To activate Server 2019 with a valid product key, type the command below. Then press enter
Dism /online /Set-Edition:<edition name> /AcceptEula /ProductKey:<Valid Product Key for the edition you want to activate>

Replace:

<edition name> with a valid edition from “DISM /online /get-targeteditions” command
<Valid Product Key for the edition you want to activate> with your product key.

Here is a sample command I used for this demo:

Dism /online /Set-Edition:ServerStandard /AcceptEula /ProductKey:<*****>

When you press enter, DISM will take some time to upgrade your installation from evaluation to full copy.

  • When the activation is completed, you will be prompted to restart your Server. Type Y. Your server will restart immediately.
  • When your server restarts, it should be a full Windows Server 2019 edition. To confirm type, Winver into Run command and click OK.

Conclusion

This guide offered a complete step-by-step to install Windows Server 2019 on Hyper-V. I hope you found it helpful!

If you found this article helpful, kindly spare 2 minutes to share your experience by responding to the “Was this page helpful?” question below.

For more Windows Server guides visit our Windows Server How To page.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

2 thoughts on “How to Install Windows Server 2019 on a Hyper-V VM”

  1. Beginning with the “Activate Windows Server 2019 Evaluation to Full Version” section the activation key has been blurred in the command prompt window but is still clearly visible in the window title bar. May want to correct that oversight if the key is genuine and not for an evaluation version.

    Reply

Leave a comment