How to Install Windows Server on Hyper V

🛠️Part of the Windows Administration Complete Guide, every Windows administration post on this site, grouped by the job you are doing.

To install Windows Server on Hyper-V, create a Generation 2 VM in Hyper-V Manager, attach the Windows Server ISO, start the VM and press a key when it asks to boot from the DVD, then run through Windows Setup. I wrote this walkthrough on Windows Server 2016. The Hyper-V side is the same today, and what changes for 2022 and 2025 is in the last section.

If you need to install the Hyper-V role on Windows first, refer to this guide: Microsoft Docs: Install Hyper V on Windows

What This Guide Covers:
1. Creating a new Hyper-V Virtual Machine
2. Installing Windows Server (2016)
3. What Changes on Windows Server 2022 and 2025

Once you complete this setup, you can proceed with additional configurations, such as installing Active Directory (AD) on your new server.

1. Creating a new Hyper-V Virtual Machine


Create the Virtual Machine

1. Right-click your Hyper-V Manager host machine, and select New > Virtual Machine…

Hyper-V New Virtual Machine
New Virtual Machine HyperV

2. Enter the name of the new VM and the location on disk.

Hyper-V VM Name and Location

3. Select Generation 2. Microsoft recommends it for current Windows guests: it uses UEFI firmware with Secure Boot on by default. As the wizard warns, you cannot change the generation once the VM is created. Microsoft’s Should I create a generation 1 or 2 virtual machine page has the full comparison.

Hyper-V Virtual Machine Generation

4. Enter the memory allocation amount. I gave this VM 3000 MB with Dynamic Memory on. Microsoft’s hardware requirements list 2 GB as the minimum for Server with Desktop Experience, and warn that setup can fail on a VM given only the bare minimum, so be generous during the install and trim it afterwards if you need to.

Hyper-V Virtual Machine Memory Allocation

5. Select a network connection (I’ll set this up later). Left as Not Connected, the VM has no network at all. To connect it, create a virtual switch from Virtual Switch Manager in the Hyper-V Manager Actions pane (an External switch puts the VM on your physical network), then pick it here or in the VM settings later. Microsoft’s Create a virtual switch page covers the switch types.

Hyper-V Virtual Machine Network

6. Enter the dynamic virtual hard disk limit, and for this tutorial, I’m leaving the vHD location as default (driven from the previous selection). Microsoft treats 32 GB as the absolute minimum; I used 50 GB.

Hyper-V Virtual Machine Hard Disk

7. Select Install an operating system from a bootable image file and browse to the Windows Server ISO. For a lab, the evaluation ISO from the Microsoft Evaluation Center works for 180 days, and it is what I used here.

Hyper-V Virtual Machine ISO

8. Review configuration and hit finish.

Hyper-V New Virtual Machine Summary

9. Power up the new VM! Before you do, VM Settings > Security is where you can check Secure Boot and add a virtual TPM if you plan to use BitLocker in the guest.

Hyper-V Virtual Machines
Hyper-V Virtual Machine List

2. Installing Windows Server (2016)


Install Windows Server

1. Connect to the new VM. If you see this Virtual Machine Boot Summary, with “The boot loader failed – Time out” against the SCSI DVD, the ISO is attached but nobody pressed a key in time. Press a key to retry the boot sequence and watch for the next prompt. If the SCSI DVD line is missing, go back to step 7 and attach the ISO.

Hyper-V VM without OS

2. Hit any key when you see Press any key to boot from CD or DVD.

Hyper-V boot from CD

3. After 30 seconds or so of loading, select your location.

Windows Server 2016 Installation Language

4. Click to start the Windows Server installation.

Windows Server 2016 Installation

5. GUI this time around, and Datacenter Edition for the test environment. The options marked (Desktop Experience) give you the full desktop shown in the rest of this guide; the others install Server Core, with no desktop.

Windows Server 2016 Datacenter Installation

6. Accept the licence terms.

Windows Server 2016 License Agreement

7. Choose Custom: Install Windows only (advanced). Upgrade is only for a machine already running Windows.

Windows Server 2016 Installation Type

8. Install on the 50GB vHD.

Windows Server 2016 Installation Location

9. Hit next, and away it goes…

Windows Server 2016 Install

10. The installation will finish up and restart once it’s done. Before the Windows Server login screen is shown, the built-in administrator password needs to be set.

Windows Server 2016 Admin Password

11. Login with the above password. In the Hyper-V connection window, Ctrl+Alt+End sends Ctrl+Alt+Delete to the VM.

Windows Server 2016 Administrator Login

12. Hurray, it’s Windows 2016 everybody!

Windows Server 2016 Server Manager

Now that your Windows Server VM on Hyper V is up and running, you can proceed with additional configurations, such as:

  • Installing Active Directory (AD) for domain services. That post is a direct follow-up of this one, on the same Hyper-V lab.
  • Configuring network settings and firewall rules. If you have Windows Firewall enabled, my blog tag as linked might be useful.
  • Setting up roles and features based on your use case. For SQL Server that often means Failover Clustering, and the SQL Server side of cluster and Availability Group migrations is on sqldba.blog in my migration runbook.

3. What Changes on Windows Server 2022 and 2025

The New Virtual Machine Wizard and the steps above are the same when the guest is Windows Server 2022 or 2025. The differences worth knowing:

  • Windows Server 2016 is near the end of its support. Mainstream support ended in January 2022 and extended support ends in January 2027 (Windows Server 2016 lifecycle). For a new lab, start with 2025.
  • Generation 2 is the safe default. 2016, 2022 and 2025 guests all run on either generation, but Microsoft lists Generation 2 as required for the Windows Server 2028 preview.
  • Memory: Windows Server 2025 lists 2 GB as the minimum for Desktop Experience and recommends 4 GB. On 2025 the VM also needs a CPU with SSE4.2 and POPCNT support, which only matters on very old hosts.
  • Disk: 32 GB is still the absolute minimum on every version.
  • Editions: you still pick Standard or Datacenter, with or without Desktop Experience. The evaluation media on the Microsoft Evaluation Center lasts 180 days and is also offered as a ready-made VHD.
  • No Internet Explorer on 2025. Microsoft removed it from Windows Server 2025, so the IE Enhanced Security Configuration prompt that greets you on a new 2016 to 2022 server is not part of a 2025 build; Edge is the browser.

Related

If SQL Server is part of your day job, my current work lives over at sqldba.blog: production DBA scripts, an error library and the SSMS guide.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *