12

I created a vhdx file from the c: drive from a lenovo P1G3 a while back and thought I had a working VM from it, but apparently not. Now when I try to boot the VM I get the "The boot loader did not load an operating system". The host is a win10 using the Hyper-V manager, and the VM is set to gen2 with the secure boot disabled. The vhdx file does not look to be corrupt, as I can attach and browse the files without any errors. I've tried the basic windows install iso --> "Startup Repair" but no luck. I've gone around in circles trying to use the bootrec, bcdboot, diskpart, etc... utilities per various superuser and similar forums, but I cannot figure out what is needed, and I'm pretty spun around wondering if I'm even starting in the right place.

enter image description here

Edit: adding more detail about the drive. I only captured the C: volume of the drive, but have 2 unallocated volumes/partitions. Here is what the drive looks like when the vhdx is mounted. updated 2/24: now 7.11GB of free space per multiple shrink commands enter image description here

swv
  • 331

1 Answers1

7

You need to set the version to 'Generation 1'. You can do this only if you create the image from 'Hyper-V manager'. So open the Manager, -> New -> Virtual Machine.

In the dialog, the second step is to set the Generation. Try Generation 1, and it should work fine.