Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 11 / How to Install Windows 11 on a Hyper-V Virtual Machine?

March 16, 2022 Hyper-VWindows 11

How to Install Windows 11 on a Hyper-V Virtual Machine?

Microsoft released a set of hardware requirements to install Windows 11 on a device. In particular, your computer must have a built-in TPM module (chip), a pretty modern CPU, UEFI Secure Boot support. Even if your computer doesn’t support these features at the hardware level, you can use a virtual TPM module and run Windows 11 on a virtual machine. Let’s take a look at how to install Windows 11 on a Hyper-V virtual machine.

Contents:
  • Create a Windows 11 Virtual Machine on Hyper-V
  • Installing Windows 11 on a Hyper-VM

Create a Windows 11 Virtual Machine on Hyper-V

The Hyper-V role must be installed on your computer. You can install Hyper-V both on a desktop Windows 10 edition, on a host running Windows Server, or free Microsoft Hyper-V Server.

You can create a Windows 11 virtual machine from the Hyper-V Manager graphical console or with PowerShell.

  1. Open Hyper-V Manager and click Create -> New Virtual Machine;
  2. Set the VM name;
  3. Select Generation 2 virtual machine (Generation 2 virtual hardware supports UEFI, Secure Boot, and a virtual TPM);
    create windows 11 hyper v generation 2 VM
  4. Specify the RAM size for the VM (at least 4 GB, otherwise an error appears that the device doesn’t meet minimum system requirements to install Windows 11);
  5. Connect the VM to a Hyper-V virtual switch having Internet access (optional);
    configure VM networking
  6. Specify the size of a VHDX disk for a Windows 11 VM (it is recommended to use at least a 64 GB disk, but 30GB is enough or a minimum VM);
    add virtual disk to windows 11 vm
  7. In the next step, check the option to install the OS later.

So the virtual machine is ready. Now you need to configure the VM options for installing guest Windows 11.

  1. Open the VM settings;
  2. Click the Processor tab and increase the number of vCPUs to at least 2;
  3. Go to the Security tab, check the Secure Boot and select Microsoft Windows as a template;
  4. Check the Enable Trusted Platform Module option;
    enable secure boot and trusted platform module to windows 11 vm

You can create a Windows 11 virtual machine on Hyper-V using PowerShell:

$VMName = "win11_test"
$VM = @{
Name = $VMName
MemoryStartupBytes = 4Gb
Generation = 2
NewVHDPath = "C:\HV\$VMName\$VMName.vhdx"
NewVHDSizeBytes = 30Gb
Path = "C:\HV\$VMName"
SwitchName = "ExtVMSwitch"
}
New-VM @VM

powershell create windows 11 vm

Add the second vCPU to the VM:

Set-VM -VMName $VMName -ProcessorCount 2

Installing Windows 11 on a Hyper-VM

To install Windows 11 on a virtual machine, you will need an installation ISO image. You can download the Windows 11 install ISO image from the Microsoft website (https://www.microsoft.com/en-us/software-download/windows11) or use the Media Creation Tool to create a Windows installation image.

Connect the Windows 11 ISO image to your virtual machine. To do it, open SCSI Controllers and add a virtual DVD drive (DVD Drive -> Add).
VM - add dvd drive

The DVD Drive will appear in the list of VM hardware. Select it, check the Image file item and specify the path to your Windows 11 install image. Save the VM settings.
mount windows 11 install image

Open the VM properties again, and set the virtual DVD drive as a primary boot device (move the entry to the first position using the Move Up button) on the Firmware tab.
hyper-v vm boot priority

You can do the same things with PowerShell. Mount the ISO image to the virtual DVD drive and change the VM boot order:

$virt_dvd = Add-VMDvdDrive -VMName $VMName -Path 'C:\ISO\Win11x64.iso' -Passthru
Set-VMFirmware -VMName $VMName -FirstBootDevice $virt_dvd

Then enable the virtual TPM support:

Set-VMKeyProtector -NewLocalKeyProtector -VMName $VMName
Enable-VMTPM -VMName $vmname

Start the virtual machine from the Hyper-V console or using PowerShell:

Start-VM -Name $vmname

Open the virtual machine console and press any key to boot from the virtual DVD drive.

boot hyper-v vm from windows 11 iso image

Follow Windows 11 setup wizard instructions: select a language, time format, keyboard layout, OS edition (an ISO image may contain several Windows editions). If you don’t have a Windows 11 installation key, you may skip the step by clicking I don’t have a product key.

install windows 11 without a product key

If you try to install Windows 11 in a virtual machine without TPM, UEFI Secure Boot, or less than 4 GB RAM, you will see the following error:

This PC can’t run Windows 11. This PC doesn’t meet the minimum system requirements to install this version of Windows. For more information, visit aka.ms/WindowsSysReq

This PC doesn’t meet the minimum system requirements to install windows 11

Make sure that your VM meets all hardware requirements or you may continue the installation by ignoring Windows 11 compatibility requirements. Learn more How to Bypass TPM and Secure Boot to Install Windows 11?

Select the installation mode Custom: Install Windows only advanced.

Then you just have to create a partition table on your virtual disk. You can create partitions manually or install Windows to an unallocated space (Drive 0 Unallocated Space -> Next). In this case, the Windows setup wizard will create EFI, MSR, and System Reserved partitions, and the rest space will be used for the Windows partition.

create partition table to install windows 11

Then Windows 11 will be installed on the selected virtual disk.

Installing Windows 11 on a VMware virtual machine is described here.

2 comments
2
Facebook Twitter Google + Pinterest
previous post
Installing an Open Source KMS Server (Vlmcsd) on Linux
next post
Windows Subsystem for Android: Running Android Apps on Windows 11

Related Reading

Windows Security Won’t Open or Shows a Blank...

May 17, 2022

How to Manually Install Windows Updates from CAB...

May 16, 2022

Fix: You’ll Need a New App to Open...

April 27, 2022

Install and Configure SNMP Service on Windows Server...

April 21, 2022

Install Active Directory Users and Computers (ADUC) Snap-in...

April 18, 2022

2 comments

Kay May 14, 2022 - 8:49 am

Seems not to work. SCSI DVD (0,1) The bootloader failed. ISO checksum verified. Any idea? Thx

Reply
Kay May 15, 2022 - 5:59 am

resolved. you have to press a key after startup.
so I removed “Start-VM -Name $vmname” and connected first, then start manually.
Watch for “Press a key to boot from CD”

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows 7
  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012 R2
  • PowerShell
  • VMWare
  • Hyper-V
  • MS Office

Recent Posts

  • Create Organizational Units (OU) Structure in Active Directory with PowerShell

    May 17, 2022
  • Windows Security Won’t Open or Shows a Blank Screen on Windows 10/ 11

    May 17, 2022
  • How to Manually Install Windows Updates from CAB and MSU Files?

    May 16, 2022
  • RDS and RemoteApp Performance Issues on Windows Server 2019/2016

    May 16, 2022
  • Deploying Software (MSI Packages) Using Group Policy

    May 12, 2022
  • Updating VMware ESXi Host from the Command Line

    May 11, 2022
  • Enable or Disable MFA for Users in Azure/Microsoft 365

    April 27, 2022
  • Fix: You’ll Need a New App to Open This Windows Defender Link

    April 27, 2022
  • How to Reset an Active Directory User Password with PowerShell and ADUC?

    April 27, 2022
  • How to Completely Uninstall Previous Versions of Office with Removal Scripts?

    April 26, 2022

Follow us

woshub.com

ad

  • Facebook
  • Twitter
  • RSS
Popular Posts
  • USB Device Passthrough (Redirect) to Hyper-V Virtual Machine
  • Poor Network Performance on Hyper-V VMs in Windows Server 2019
  • Import, Export and Clone Virtual Machines in Hyper-V
  • Windows Cannot Find the Microsoft Software License Terms
  • Hyper-V: Enabling Routing Between Internal Networks (Subnets)
  • Configure SR-IOV for Hyper-V Virtual Machines on Windows Server
  • How to Install VMWare ESXi in a Hyper-V Virtual Machine?
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top