iPXE discussion forum

Full Version: How to get UEFI booting from USB stick to work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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?
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]
What I found out is that the pxelinux.0 seems not to be compatible here when using UEFI.
(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?
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.
Reference URL's