iPXE discussion forum
How to get UEFI booting from USB stick to work? - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: How to get UEFI booting from USB stick to work? (/showthread.php?tid=8306)



How to get UEFI booting from USB stick to work? - markot - 2017-01-25 16:29

Hello,

I have been trying to install iPXE on USB stick, so I could start PXE install from Clonezilla server.

But I don't get it working. When I try to write the ISO file taken from the website using Rufus to the USB stick, Rufus tells that the ISO file is not UEFI compatible.

Also, when I have tried to format the memory stick to FAT32 and manually try to start ipxe.efi from shell, I get error message "Could not boot image: Exec format error"

Are there any step By step tutorials how to make UEFI PXE booting working? The BIOS boot option is not available on the Computers, only UEFI.


RE: How to get UEFI booting from USB stick to work? - NiKiZe - 2017-01-25 18:35

take a fat32 drive, NTFS might work but not guranteed

Code:
make bin-x86_64-efi/ipxe.efi
cp bin-x86_64-efi/ipxe.efi /mnt/usb/EFI/Boot/bootx64.efi

this is the default for x64 capable machines, if you machine has a 32-bit efi firmware you will instead need to use the 32bit standard instead (I'm assuming you have x86 based hardware here)

How did you build ipxe.efi which gives you "Could not boot image: Exec format error" or is that the error ipxe gives you when you try to start something else, and if so what is the ipxe.org/ error url that is shown together with that message?


RE: How to get UEFI booting from USB stick to work? - markot - 2017-01-26 08:16

Thank you for your answer. I just tried the following:

1. Run this command in Linux terminal: make bin-x86_64-efi/ipxe.efi

2. Then copied file ipxe.efi file to the FAT32 formatted USB stick to folder EFI/BOOT/ and renamed file to bootx64.efi.

3. Finally restarted the machine where I tried to start iPXE.

Please have a look at the screenshot for details.

[Image: pxe_starting.png]


RE: How to get UEFI booting from USB stick to work? - markot - 2017-01-26 14:21

What I found out is that the pxelinux.0 seems not to be compatible here when using UEFI.


RE: How to get UEFI booting from USB stick to work? - NiKiZe - 2017-01-27 02:06

(2017-01-26 08:16)markot Wrote:  Thank you for your answer. I just tried the following:

1. Run this command in Linux terminal: make bin-x86_64-efi/ipxe.efi

2. Then copied file ipxe.efi file to the FAT32 formatted USB stick to folder EFI/BOOT/ and renamed file to bootx64.efi.

3. Finally restarted the machine where I tried to start iPXE.

Please have a look at the screenshot for details.

[Image: pxe_starting.png]

pxelinux.0 is probably a PXE binary.
In EFI mode you can only execute ipxe scripts and other EFI binaries, what is it that is your end goal here?


RE: How to get UEFI booting from USB stick to work? - markot - 2017-01-27 10:46

I will later check if I can do something on the Clonezilla server if starting iPXE using UEFI. I think something can be configured.

Managed to install image from Clonezilla using Clonezilla Live on USB stick instead.