36

I'm trying to create a VM from an .iso file on my computer. In my boot order settings, the DVD Drive with as value the .iso is at the top. I've tried several different VM's (Ubuntu18.04, Windows 10 and Windows Server 2016) all of which give me the same problem where they don't boot from the .iso file. Pressing any key doesn't do anything.

I followed tutorials from both my lecturers and articles online when creating the VM's.

I am clueless as to what I'm doing wrong, so any help is appreciated

Black "Start PXE over IPv4 screen Error message when trying Windows 10 after the black "Start PXE over IPv4" screen Error message when trying Ubuntu after the black "Start PXE over IPv4" screen

PinkDraconian
  • 501
  • 1
  • 4
  • 11

9 Answers9

89

Try disabling Secure boot in the "Security" section of the settings.

I had the same problem with a gen2 Linux vm (running in Hyper-V Manager 10.0.17763.1). Turning off "Enable Secure Boot" allowed booting from an .iso. I think in some other versions of Hyper-V Manager the setting is under "Firmware"

VM Settings

Matthew
  • 1,264
  • 1
  • 11
  • 20
  • I couldn't figure out why my fresh HyperV wouldn't boot from my Debian ISO. Turning this off helped. Thanks! – eth0 Jun 05 '20 at 16:36
  • Microsoft has some pretty good details about what features are supported on various flavors of Linux and FreeBSD, and a note: Generation 2 virtual machines have secure boot enabled by default and some Linux virtual machines will not boot unless the secure boot option is disabled https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/supported-debian-virtual-machines-on-hyper-v – Matthew Jun 20 '20 at 03:55
  • This is it! Should be accepted. Help me a lot! ThANKS – tim Mar 12 '21 at 14:12
  • This is a quick and dirty solution, if you are running a newer Linux distro that supports secure boot, take a look at some of the other answers that talk about using the "Microsoft UEFI certificate Authority" for secure boot. – Matthew Oct 05 '22 at 15:49
22

This occurred when I was trying to boot from a Win 10 ISO. After the "Press any key to Boot from DVD..." message displays, it jumps almost immediately to trying to boot from the network (PXE over IPv4). The solution for me was to select 'Reset' from the Hyper-V menu and then immediately start hitting a key before the message showed up.

CyberMonk
  • 1,462
  • 2
  • 16
  • 21
  • I had the same issue when trying to install Windows Server 2019 VM. This method solved it, but can anyone explain what happened and why it got resolved this way? – Xu Shaoyang Mar 24 '23 at 11:59
19

Just go into VM Settings / Firmware and change the boot order by moving the VHDX image to the top.

Changing to Generation 2 VM is not necessary.

AlexVPerl
  • 7,652
  • 8
  • 51
  • 83
12

Worked for me:

  1. Create a new VM.
  2. A "New Virtual Machine Wizard" will start.
  3. During step 3 - "Specify Generation", choose "Generation 1"
izy
  • 1,085
  • 14
  • 18
  • 1
    Very good answer which I upvoted, indeed it's working even for new os or especially when you convert .ovf virtual machines to .vhd or .vhdx After aving exported a virtual machine from VMware for example. – LuckyFr Feb 26 '21 at 19:26
10
  • When using Windows10 - moving the VHDX to the top Boot order was the solution in my case.

  • When using Linux - Changing secure boot to use "Microsoft UEFI Certificate Authority" was the solution. I tested CentOS_Stream & Mint - same problem, same solution.

Bashash911
  • 121
  • 1
  • 5
  • 1
    Changing secure boot to use "Microsoft UEFI Certificate Authority" worked for me. I've installed Ubuntu Server, Generation 2 VM. – Kajsa Gauza Sep 17 '21 at 14:05
  • 1
    This answer (and MaxAlt's) should be the accepted one. Hyper-V gave 3 options for the secure boot template, and only choosing "Microsoft Windows" or "Microsoft UEFI Cert..." will Hyper-V say secure boot is enabled, and it seems only UEFI works for Linux (Works for Ubuntu 22.04) – Paul L Jul 19 '22 at 03:01
5

I left enabled "Enable Secure Boot" flag, but selected a different template: from "Microsoft Windows" to "Microsoft UEFI certificate Authority" for my Centos 7 distribution hosted by Windows 10. This tells the UEFI is needed for Linux installation.

MaxAlt
  • 51
  • 1
  • 3
4

The only solution in my case was to re-create the VM in Generation 1. Changing the boor order or disabling Secure Boot did not resolved the issue at all.

It seems "Quick Create" creates VM in Generation 2 by default. You have to Go with "New" instead of "Quick Create" to choose Generation 1.

enter image description here

Ehsan Mirsaeedi
  • 6,924
  • 1
  • 41
  • 46
1

In my case I left disabled the "Enable Secure Boot" flag and it worked pretty

0

Copying a vhdx image from a Windows Server 2012 R2 Hyper-V environment to Windows 10 Hyper-V, I had to create a Generation 1 VM. Generation 2 did NOT work. It booted without the PXE over IPV4 error then.

Ron
  • 1
  • 2