iPXE discussion forum
WinPE x64 UEFI boot error 0x7f048283 - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: WinPE x64 UEFI boot error 0x7f048283 (/showthread.php?tid=8189)



WinPE x64 UEFI boot error 0x7f048283 - icabraja - 2016-09-22 00:47

Hello,

when I try to boot WinPE x64 in UEFI environment using iPXE I get an error "Could not boot: Error 0x7f048283 (http://ipxe.org/7f048283)" after iPXE loads files and triest to boot, while in BIOS mode it boots just fine. This is all done at the moment on vmWare VMs.

The "ipxe-x64.efi" was generated using rom-o-matic.eu with:
Output format: EFI PXE bootstrap 64-bit (.efi)
NIC type: all-drivers
Revision: master
iPXE build image version: 827dd
All other options were left as default.
Embedded script:
#!ipxe
dhcp
chain http://192.168.100.1/menu.ipxe

The server is a VM running Ubuntu Server 16.04.1, the TFTP server is tftpd-hpa, the dhcp server is isc-dhcp-server and web server is apache2.
The client is and empty VM with 1GB of ram that boots over network. The server VM and client VM are connected through VMnet2 adapter configured as host-only without DHCP.

This is my menu.ipxe
http://pastebin.com/gE3UcD0t
This is my dhcpd.conf
http://pastebin.com/qW3G8zgM
This is my ipxe-green.conf
http://pastebin.com/CVpDeKuH
This is my ipxe-option-space.conf
http://pastebin.com/QfirwL2n
This is my WinPE x64 directory and file structure
http://pastebin.com/fW8jzesw

Thank You and Best regards,
Ivan


RE: WinPE x64 UEFI boot error 0x7f048283 - NiKiZe - 2016-09-23 23:03

your winpe.efi returns and won't boot. (remember in efi mode only efi binaries can run, not legacy NBP files, so you need special handling of ${platform} or similar to detect and handle which file to download and run)

The recommended way to boot winpe from ipxe is using wimboot which is a NBP and efi combo file so very little, if any, special handling is needed.

also you might want to test a original build from http://boot.ipxe.org/ipxe.efi just in case rom-o-matic is the cause.


RE: WinPE x64 UEFI boot error 0x7f048283 - icabraja - 2016-09-24 11:52

(2016-09-23 23:03)NiKiZe Wrote:  your winpe.efi returns and won't boot. (remember in efi mode only efi binaries can run, not legacy NBP files, so you need special handling of ${platform} or similar to detect and handle which file to download and run)

The recommended way to boot winpe from ipxe is using wimboot which is a NBP and efi combo file so very little, if any, special handling is needed.

also you might want to test a original build from http://boot.ipxe.org/ipxe.efi just in case rom-o-matic is the cause.

Hello again.

I have tried both ipxe.efi from the site and the one that I compiled myself, the error message is the same. And yes, I am using wimboot. In both BIOS and UEFI environment i get my menu presented to me. In BIOS environment it will boot WinPE x86 and x64 menu entries just fine, but in UEFI environment it wont boot the WinPE x64 UEFI menu entry and I get the above error message. Can You take a look at my menu.ipxe, am I calling the right files?

Thank You and best regards,
Ivan


RE: WinPE x64 UEFI boot error 0x7f048283 - NiKiZe - 2016-09-24 20:52

Sorry, missed the linked pastes.

Not sure why you have separate items for efi and non efi wimboot should work just fine with both, and you should not have to specify the efi. (it is automatically extracted from boot.wim)

and if you then are using wimboot, I'm assuming that ipxe starts wimboot just fine and you can see the output from wimboot?

My recommendations of your script below
Code:
:WinPEx64
:WinPEx64UEFI
kernel http://192.168.100.1/wimboot gui pause
initrd -n BCD http://192.168.100.1/winpe/x64/Boot/BCD              BCD
initrd -n boot.sdi http://192.168.100.1/winpe/x64/Boot/boot.sdi   boot.sdi
initrd -n boot.wim http://192.168.100.1/winpe/x64/sources/boot.wim   boot.wim
boot || goto failed

added gui since it might be an issue in efi land without it sometimes. also added the pause so you can see that everything is in order before boot is handed over to windows bootmgr.

If you still get issues you might want to try with a minimal BCD, you should be able to use this one for all variants of wimbooting.


RE: WinPE x64 UEFI boot error 0x7f048283 - icabraja - 2016-09-25 09:48

Hello,

I have made the suggested changes (and updated my menu.ipxe link in the first post for You to take a look) but it's still the same. The interesting part is that when I boot from BIOS environment, boot pauses after loading files as it should per your suggestion. In UEFI it doesn't pause, after the wim file is loaded it spits the above error message as You can see in the pictures below.
BIOS
UEFI

Thank You and best regards,
Ivan


RE: WinPE x64 UEFI boot error 0x7f048283 - NiKiZe - 2016-09-25 11:17

Indeed wimboot does not start at all, You might have one of those bioses that allows ipxe to start even with secure boot enabled, but in turn it does not allow for subsequent files to load.
Double check that you have secure boot disabled, other then that I'm out of ideas.


RE: WinPE x64 UEFI boot error 0x7f048283 - icabraja - 2016-09-25 12:25

Hello!

This could be vmWare problem then? As I mentioned in the first post the server and the client are vmWare virtual machines BUT, I didn't mention that they are in vmWare Workstation not ESX/ESXi if that changes anything. Also there is no secure boot option in vmWare Workstation EFI firmware that I could find nor in the .vmx file of the client.

Thank You and best regards,
Ivan