IPXE

From Omnia
Revision as of 16:11, 16 March 2020 by Kenneth (talk | contribs) (→‎iPXE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

iPXE

Build

apt install gcc make git binutils perl liblzma-dev xz-utils mtools genisoimage syslinux
cd /opt
git clone git://git.ipxe.org/ipxe.git
cd ipxe/src
make
# bootable iso:
make bin/ipxe.iso
# bootable usb: (dd if=bin/ipxe.usb of=/dev/sdX)
make bin/ipxe.usb
# build a chainloadable iPXE image
make bin/undionly.kpxe
# uefi
make bin-x86_64-efi/ipxe.efi


Dependencies:

  • gcc (version 3 or later)
  • binutils (version 2.18 or later)
  • make
  • perl
  • liblzma or xz header files
  • mtools
  • mkisofs (needed only for building .iso images)
  • syslinux (for isolinux, needed only for building .iso images)

ref: https://ipxe.org/download

commands

iseq

iseq ${answer} Y && goto is_correct ||

ref: http://ipxe.org/cmd/iseq

inc

set idx:int32 0
inc idx

ref: https://ipxe.org/cmd/inc

Chainloading other PXE Servers

set next-server 192.168.0.1
set filename boot/pxelinux.0
set netX/next-server ${next-server}
set netX/filename ${filename}
chain tftp://${next-server}/${filename}

ref: https://lists.ipxe.org/pipermail/ipxe-devel/2011-March/000504.html

ref: https://ipxe.org/settings

keywords