[GH-ISSUE #268] EFI image doesn't work over libvirt + kvm/qemu #119

Closed
opened 2026-02-27 14:50:26 +03:00 by kerem · 2 comments
Owner

Originally created by @renich on GitHub (Sep 27, 2018).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/268

I'm using Fedora 28 as a host. I tried using UEFI (TianoCore) and it doens't work with your image; it drops to a shell (efilinux).

On the other hand, I try the Fedora 29 Beta ISO image and it works fine.

Might there be something missing in the EFI iso image?

Originally created by @renich on GitHub (Sep 27, 2018). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/268 I'm using Fedora 28 as a host. I tried using UEFI (TianoCore) and it doens't work with your image; it drops to a shell (efilinux). On the other hand, I try the Fedora 29 Beta ISO image and it works fine. Might there be something missing in the EFI iso image?
kerem closed this issue 2026-02-27 14:50:27 +03:00
Author
Owner

@patrakov commented on GitHub (Jul 7, 2019):

The EFI iso image is just wrong. It does not contain any El Torito records. Instead, it contains BOOT/EFI/BOOTX64.EFI file, which UEFI does not even look at on optical media.

For now, you can create your own EFI iso by running these commands (assuming that you have dosfstools, cdrecord and mtools installed):

wget https://boot.netboot.xyz/ipxe/netboot.xyz.efi
mkdir cdrom
dd if=/dev/null of=cdrom/image.flp seek=2880
mkfs.vfat -M 0xf8  -f 1 cdrom/image.flp
mmd -i cdrom/image.flp ::efi ::efi/boot
mcopy -i cdrom/image.flp netboot.xyz.efi ::efi/boot/bootx64.efi
mkisofs -o ipxe-uefi.iso  -eltorito-platform 0xef -eltorito-boot image.flp -no-emul-boot cdrom

I will create a pull request later.

<!-- gh-comment-id:509011244 --> @patrakov commented on GitHub (Jul 7, 2019): The EFI iso image is just wrong. It does not contain any El Torito records. Instead, it contains BOOT/EFI/BOOTX64.EFI file, which UEFI does not even look at on optical media. For now, you can create your own EFI iso by running these commands (assuming that you have dosfstools, cdrecord and mtools installed): ``` wget https://boot.netboot.xyz/ipxe/netboot.xyz.efi mkdir cdrom dd if=/dev/null of=cdrom/image.flp seek=2880 mkfs.vfat -M 0xf8 -f 1 cdrom/image.flp mmd -i cdrom/image.flp ::efi ::efi/boot mcopy -i cdrom/image.flp netboot.xyz.efi ::efi/boot/bootx64.efi mkisofs -o ipxe-uefi.iso -eltorito-platform 0xef -eltorito-boot image.flp -no-emul-boot cdrom ``` I will create a pull request later.
Author
Owner

@antonym commented on GitHub (Jul 20, 2019):

Closing this as @patrakov was kind enough to fix. Please reopen if it's still an issue.

<!-- gh-comment-id:513491208 --> @antonym commented on GitHub (Jul 20, 2019): Closing this as @patrakov was kind enough to fix. Please reopen if it's still an issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#119
No description provided.