1.    06 Nov 2015 #1
    Join Date : Jul 2015
    Posts : 3,788
    10 Pro

    Can't native boot Hyper-V generation 2 vhdx


    If I create a generation 1 VM I can native boot the vhdx by adding bcd entry. If I make a generation 2 VM it fails with "a required device isn't connected...0xc0000225". Pressing f8 for "Startup Settings" gives "The application or operating system couldn't be loaded because a required file is missing. File \Windows\system32\winload.efi. Error code 0xc0000225"

    This is my BCD entry
    Code:
    Windows Boot Loader
    -------------------
    identifier              {default}
    device                  vhd=[D:]\Hyper-V\Windows-vm3\Virtual Hard Disks\Windows-vm3.vhdx
    path                    \WINDOWS\system32\winload.efi
    description             Windows-vm3
    locale                  en-US
    inherit                 {bootloadersettings}
    recoverysequence        {2bd3faf9-6091-11e5-86c4-c3a22c898ce3}
    recoveryenabled         Yes
    isolatedcontext         Yes
    flightsigning           Yes
    allowedinmemorysettings 0x15000075
    osdevice                vhd=[D:]\Hyper-V\Windows-vm3\Virtual Hard Disks\Windows-vm3.vhdx
    systemroot              \WINDOWS
    resumeobject            {2bd3faf2-6091-11e5-86c4-c3a22c898ce3}
    nx                      AlwaysOn
    bootmenupolicy          Standard
    hypervisorlaunchtype    Auto
    and the Hyper-V definition (I've tried with and without secure boot, changing the boot order and removing the separate pagefile drive. It always works on Hyper-V will never boot on native boot.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	0 
Size:	94.4 KB 
ID:	46558

    Conversely if I install windows and turn off the VM before the first reboot I can boot it natively but Hyper-V will not boot (again complains of missing bootloader). The bootloader can't be repaired by bootrec, no valid windows installations are found.

    Windows versions I'm using are 10 Pro build 10240 for host, build 10586 or 10240 for guest.

    Does anyone know if it is possible to native boot a generation 2 VM vhdx and boot it through Hyper-V, the same as you can with generation 1?
      My ComputerSystem Spec
  2.    07 Nov 2015 #2
    Join Date : Oct 2013
    Texas
    Posts : 10,990
    Windows 10 Pro X64

    How much HD space have you allotted. It needs to be able to expand to the full size during boot.
      My ComputerSystem Spec
  3.    07 Nov 2015 #3
    Join Date : Jul 2015
    Posts : 3,788
    10 Pro
    Thread Starter

    Quote Originally Posted by Dude View Post
    How much HD space have you allotted. It needs to be able to expand to the full size during boot.
    It's only 20GB maximum - I have space for it to expand to full size..
      My ComputerSystem Spec
  4.    07 Nov 2015 #4
    Join Date : Oct 2013
    Texas
    Posts : 10,990
    Windows 10 Pro X64

    I would try at least 40gb, always worked for me in hyper-v at that size.
      My ComputerSystem Spec
  5.    07 Nov 2015 #5
    Join Date : Jul 2015
    Posts : 3,788
    10 Pro
    Thread Starter

    Thanks, I'll try that in a bit - I'm upgrading to 10586 at the moment... I found this as well which seems to say I'm making the bcd entry wrong...

    Using VHD Native Boot with UEFI Firmware - bcdedit vs bcdboot - dai - Site Home - MSDN Blogs
      My ComputerSystem Spec
  6.    07 Nov 2015 #6
    Join Date : Oct 2013
    Texas
    Posts : 10,990
    Windows 10 Pro X64

    Nice find, good luck
      My ComputerSystem Spec
  7.    08 Nov 2015 #7
    Join Date : Jul 2015
    Posts : 3,788
    10 Pro
    Thread Starter

    That was it - bcd was created wrong method for UEFI vhdx.

    In case it helps...

    For generation 1:
    • bcdedit /copy {default} /d "Boot from Foobar.vhdx"
    • bcdedit /set {guid} device vhd="[D:]\VHDs\Foobar.vhdx" (replacing guid with the generated guid and D with the drive the vhdx is on)
    • bcdedit /set {guid} osdevice vhd="[D:]\VHDs\Foobar.vhdx"
    • bcdedit /set {guid} detecthal on

    For generation 2:
    • mount vhdx
    • bcdboot F:\Windows (replacing F with the drive it vhdx is mounted to)
    • bcdedit /set {default} description "Boot from Foobar.vhdx"
      My ComputerSystem Spec
  8.    08 Nov 2015 #8
    Join Date : Oct 2013
    Texas
    Posts : 10,990
    Windows 10 Pro X64

    Glad you got it working right.
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Solved How to release unused space in VHDX disks?
Before I learned that VHDX expanding disks do not release space, many of these have swelled way beyond what is used of needed because I did a defrag. Defrag will use temporary space to store files parts being defragged. I expected defrag to make...
Virtualization
Solved How do I open a VHDX file?
Using Windows 10-64 and Windows backup and restore. I want to view a file that must be contained in a recent backup. I see the apparent backup files as vhdx. I right click to mount the virtual HD and get an error message as shown in the screenshot....
Virtualization
Solved Hyper-V installation causes boot failure
Hello all. James here. I'm trying to setup Hyper-V, using Kari's tutorial. After I select the modules, Windows installs them and asks for a reboot. I oblige and then the system loops. I have tried three times and have had to restore all three...
Virtualization
Solved Hyper-v guest internet connection lost after booting as VHDX.
Hello, I am running Windows 10 Pro (10240) and have a guest Windows 10 VM (10528) which were working fine. Both were activated and connected to internet correctly. Today I booted the VM as native boot VHDX. This installed some drivers,...
Virtualization
One for Kari - Secure boot with HYPER-V question
Hi there I see that although VMware and VBOX can't do it (they can use UEFI) it seems HYPER-V CAN create a level 2 (type 2) VM which can enable secure boot. I want to have a go with this on a W2012 Server HOST. Anything special needed for...
Virtualization
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 21:33.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums