Hi
I have a USB stick with custom winre image that boots fine as a EFI system. I am trying to boot this using Hyperv on a Win10 host (RS1). But it is not going as planned.
This is how I am doing it.
1) I created a Hyperv Gen 2 VM pointing to 100GB expanding .vhdx file.
2) Then attached the vhd on the host win10 using diskmgmt applet
3) Created a EFI partition of size 200MB
4) Created a primary partition of 1GB. Lets call this tools partition. I left the remaining space unallocated for the time being.
Then copied the content from usb stick to these partitions.
The EFI partition ends up with:
EFI\Boot\
bootx64.efi
bootmgrfw.efi
BCD
boot.sdi
The tools partition has:
sources\
boot.wim
boot.sdi
Then I ran few BCDEdit commands to make {default} entry osdevice and device options load the boot.wim from tools partition.
No matter what I tried, the boot manager always failed saying unable to find boot device. I was stuck on the page that prompts me to run windows recovery or mem diags.
After trying every option (using drive letters, \device\harddiskvolumeX style paths), I gave up on that approach. When I copied \sources folder from tools partition to EFI partition and going back to the original BCD from the USB stick, I was able to boot the winre in hyperv.
Is there a tutorial or gotchas with the setup that I am trying to use?
Thanks