ipxe / wimboot

WIM bootloader
https://ipxe.org/wimboot
GNU General Public License v2.0
238 stars 42 forks source link

Problem with bootmgr.exe #27

Closed xycainoff closed 3 years ago

xycainoff commented 3 years ago

Wimboot version 2.7.3 Trying boot WinPE via iPXE and get error “FATAL: no bootmgr.exe” 027FF126-0DE2-49C5-96DF-89985F208595

If i place bootmgr.exe extracted from boot.wim directly and define it with “ imgfetch --name bootmgr.exe bootmgr.exe bootmgr.exe” in ipxe script - i get error: “Bad MZ magic 0000” and “FATAL: Could not load bootmgr.exe” 9ED31D3A-DE4E-4073-B887-B1467E143386

NiKiZe commented 3 years ago

How did you create your boot.wim ?

xycainoff commented 3 years ago

I got it from “Windows PE add-on for the ADK for Windows Server 2022” from this page https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install

NiKiZe commented 3 years ago

One thing you might be able to check here is if the .wim file is compressed with a known or new format. I would also suggest that you try with the unmodified boot.wim from the installation media first.

If I'm not mistaken bootmgr.exe exists in different versions, important to get the right one, maybe https://ipxe.org/appnote/wimboot_architecture#extracting_bootmgrexe can help.

oschroeder8 commented 3 years ago

You might want to "build" a WinPE instead of using the boot.wim unmodified. I seem to vaguely remember that using the vanilla boot.wim did not work for me either. (But I am using the latest ADK and the WIM does not use compression or a new format, from what I can see.) I wrote a script for some other work I was doing: Build-WinPEx64.cmd This creates an ISO and you should be able to modify the script to your liking and then extract the WIM file from the ISO it creates. The WIM file it creates will work with both legacy BIOS and UEFI firmware when loaded with WIMBOOT..

NiKiZe commented 3 years ago

Boot.wim from original installation iso has always worked. ADK win files has had more issues.

mcb30 commented 3 years ago

Boot.wim from original installation iso has always worked. ADK win files has had more issues.

Agreed - the boot.wim files present on the original installation ISOs should always work (and are used in the automated QA tests for each commit).

xycainoff commented 3 years ago

tried boot.wim from installation iso, tried boot.wim from another windows10 iso - same result: "no bootmgr.exe". May be it has something to do with lines "Chunk 1 offset lies outside resource". I gave up. Снимок экрана 2021-10-26 в 22 14 30

NiKiZe commented 3 years ago

Is the reason for closing that you found the reason? If so please share.

xycainoff commented 3 years ago

Unfortunately i had to solve it another way. I was trying to install hyperv server to remote servers.They have ilo2 remote management systems so i booted to windows-pe from virtual cd provided by ilo2. This is very slow way to do it and boot by ipxe fro network would be much better but couldn’t figure it out.