Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Boot to ipxe on UEFI machine to menu
2017-02-09, 17:14 (This post was last modified: 2017-02-11 19:35 by sebus.)
Post: #6
RE: Boot to ipxe on UEFI machine to menu
I can "cheat" and rename ipxe.efi to wdsmgfw.efi (which is only good till WDSServer service restarts - as it copied back the original file!)

("hardcoded" SMSBoot\x64\wdsmgfw.efi comes form ProxyDHCP of WDS reply)

That way it will boot to ipxe from UEFI network stack fine, but get error 0xc000000f

I have been doing wimboot via legacy PXE for years (with ipxe--> pxelinux.0 menu)



Now I need to move to UEFI, so the whole lot gets re-designed



So created new EFI BCD

Code:
#Create a BCD store using bcdedit.exe:

bcdedit /createstore e:\BCD

#Configure RAMDISK settings:

bcdedit /store e:\BCD /create {ramdiskoptions} /d "Ramdisk options"
bcdedit /store e:\BCD /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store e:\BCD /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
bcdedit /store e:\BCD /create /d "WinPE boot image" /application osloader

#The last command will return a GUID, for example:

#The entry {cd4acce3-ef87-11e6-ada6-f8b156ae2ab6} was successfully created.

#Copy this GUID for use in the next set of commands. In each command shown, replace "GUID1" with your GUID.

#Create a new boot application entry for the Windows PE image:

bcdedit /store e:\BCD /set {GUID1} device ramdisk=[boot]\sources\boot.wim,{ramdiskoptions}
bcdedit /store e:\BCD /set {GUID1} path \windows\system32\winload.efi
bcdedit /store e:\BCD /set {GUID1} osdevice ramdisk=[boot]\sources\boot.wim,{ramdiskoptions}
bcdedit /store e:\BCD /set {GUID1} systemroot \windows
bcdedit /store e:\BCD /set {GUID1} detecthal Yes
bcdedit /store e:\BCD /set {GUID1} winpe Yes

#Configure BOOTMGR settings (remember to replace GUID1 in the third command with your GUID):

bcdedit /store e:\BCD /create {bootmgr} /d "Windows Boot Manager"
bcdedit /store e:\BCD /set {bootmgr} timeout 20
bcdedit /store e:\BCD -displayorder {GUID1} -addlast

UEFI PXE IPv4 boots fine to iPXE menu, all wimboot-2.5.2-signed files get downloaded:

Code:
#!ipxe
kernel http://10.0.0.55/wim/BOOT/wimboot252 gui
initrd http://10.0.0.55/wim/boot/fonts/segmono_boot.ttf segmono_boot.ttf
initrd http://10.0.0.55/wim/boot/fonts/segoe_slboot.ttf segoe_slboot.ttf
initrd http://10.0.0.55/wim/boot/fonts/segoen_slboot.ttf segoen_slboot.ttf
initrd http://10.0.0.55/wim/boot/fonts/wgl4_boot.ttf wgl4_boot.ttf
initrd http://10.0.0.55/wim/BOOT/bootmgr.efi bootmgr.efi
initrd -n BCD http://10.0.0.55/wim/EFI/Microsoft/Boot/BCD BCD
initrd http://10.0.0.55/wim/BOOT/BOOT.SDI BOOT.SDI
initrd http://10.0.0.55/wim/wim/Win10PESE_x64.WIM BOOT.WIM
boot

at which point it dies with error EFI\Microsoft\Boot\BCD 0xc000000f



Obviously the BCD is there (downloaded), so have no idea why it fails

[Image: wimboot_efi.png]

BCD is being read, as I can chose the correct Windows Boot Manager by Enter at error screen (which then fails again)

[Image: RDO.png]

sebus
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Boot to ipxe on UEFI machine to menu - sebus - 2017-02-09 17:14



User(s) browsing this thread: 5 Guest(s)