ipxe
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ipxe [2020/06/20 03:16] – created k2patel | ipxe [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== iPXE ====== | ====== iPXE ====== | ||
| + | ==== Get Source ==== | ||
| + | Get ipxe source | ||
| + | <code bash> | ||
| + | git clone git:// | ||
| + | </ | ||
| + | Next step create custom script | ||
| + | |||
| + | ==== Custom ipxe ==== | ||
| + | :!: Simple http server works just fine serving the ipxe.txt and kickstarts, but no HTTPS. | ||
| + | |||
| + | <code bash | k2patel.ipxe> | ||
| + | #!ipxe | ||
| + | echo Welcome to iPXE! | ||
| + | |||
| + | :retry_dhcp | ||
| + | dhcp || goto retry_dhcp | ||
| + | |||
| + | :bootup | ||
| + | echo # | ||
| + | echo ip ...................... : ${ip} | ||
| + | echo # | ||
| + | echo Booting from http:// | ||
| + | read test | ||
| + | chain http:// | ||
| + | |||
| + | prompt | ||
| + | |||
| + | shell | ||
| + | </ | ||
| + | |||
| + | ==== Create image ==== | ||
| + | === For ISO === | ||
| + | <code bash> | ||
| + | cd ipxe/src | ||
| + | make bin/ | ||
| + | </ | ||
| + | |||
| + | :?: If you get error "make iso genisoimage: | ||
| + | |||
| + | <code bash> | ||
| + | cd ipxe | ||
| + | wget https:// | ||
| + | mkdir syslinux-6.03 | ||
| + | cd syslinux-6.03 | ||
| + | unzip ../ | ||
| + | cd src | ||
| + | make -j 4 ISOLINUX_BIN=../ | ||
| + | LDLINUX_C32=../ | ||
| + | </ | ||
| + | |||
| + | === For USB === | ||
| + | <code bash> | ||
| + | cd ipxe/src | ||
| + | make bin/ | ||
| + | dd if=ipxe.usb of=/dev/sdX | ||
| + | sync | ||
| + | </ | ||
| + | |||
| + | === For EFI === | ||
| + | <code bash> | ||
| + | cd ipxe/src | ||
| + | make bin-x86_64-efi/ | ||
| + | mkfs.fat -F32 /dev/sdxY | ||
| + | mkdir /tmp/efifld | ||
| + | mount /dev/sdxY / | ||
| + | mkdir -p / | ||
| + | cp bin-x86_64-efi/ | ||
| + | umount /tmp/efifld | ||
| + | </ | ||
ipxe.1592622972.txt.gz · Last modified: 2020/08/10 02:30 (external edit)
