Hyper-V 2nd Gen: Can’t install an operating system

[German]In Hyper-V, you may not be able to install guest operating systems in Generation 2 VMs. The installation process ends with a 'PXE Network boot using IPv4 …' message.


The error image

I come across the corresponding error description in this German administrator.de post a few days ago:

Setup VM W2016 does not start in Hyper-V 2016

is just sitting over my new server and trying to install it a VM at the host. I wanted to install a W2016 VM (as Generation 2 over an ISO) as a guest os in Hyper-V … briefly saw the prompt to press any key to setup via the "optical drive" … and then I'm constantly in a black screen with "PXE Network boot using IPv4 ( ESC to cancel). Performing DHCP Negotiation …." please.

It looks like the prompt to press a key is not being passed to the virtual machine. Then the VM will not boot from the mounted ISO file and attempt a PXE network boot, which of course fails.

PXE Network Boot
(Source: scomandothergeekystuff.com)

If you search the internet for this error message, you will get several hits at once. The Technet forum thread here discusses the issue – and this blog post also deals with the topic. The above screenshot is from this blog post.

Suggested solutions for the problem

In this blog post you will find a hint to set the Secure Boot option to "Microsoft UEFI Certificate Authority" in the security settings or to disable the Secure Boot.


Hyper-V Secure Boot
(Source: scomandothergeekystuff.com)

The above screenshot is also from the contribution of scomandothergeekystuff.com, but refers to Ubuntu there. On German WindowsPro you can find this article, which also deals with this topic. There you can find the hint to convert the whole thing to Gen 1 VMs – which is not very helpful. Also in this article someone deals with the configuration of the VM, but aims at a legacy network adapter for the network.

On administrator.de, one person has found a completely different solution – he only makes sure that the keystrokes of the host are forwarded to the VM and the guest. He writes about this:

Some suggestions found in the network (uncheck secure start, move ISO file) … have brought nothing. Note: In the HOST settings under User configure the keyboard for use with the "physical" computer …

Maybe it will help one or the other affected person out of a mess.

Similar articles:
RDP vulnerability puts Hyper-V at risk
Windows 10 V1903: IP resolution bug in Hyper-V switch
Hyper-V VM Shutdown issue in Windows Server 2019
Tip: Delete Hyper-V VMs with a GUI tool

Cookies helps to fund this blog: Cookie settings

This entry was posted in issue, Virtualization, Windows and tagged , . Bookmark the permalink.

3 Responses to Hyper-V 2nd Gen: Can’t install an operating system

  1. LDM says:

    You have to hit the enter key quickly or it fails. I disabled internet so that it wouldn't look on the network and was getting the error screen very quickly. That's when I tried to make sure I pressed enter at the 'Press any key to…' prompt and then it booted into the windows installer straight away

  2. ZJLock says:

    100% my issue, for some reason if you don't spam the enter key when it boots it will always fail…

  3. Wasenshi says:

    Thank you! your suggestion works perfectly for me. Could never have thought this could be the case.

    Thanks again for the solution.

Leave a Reply

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