2 minutes read

Create iPXE Boot Script

Write an iPXE boot script to configure network access and automate operating system installation from a remote repository.
Milica Dancuk
· Updated
November 27, 2026

An iPXE boot script automates network booting by configuring network access and loading the components needed to start an operating system.

Create iPXE Fedora Boot Script

The following example uses Fedora as the target operating system:

1. Create a file named dboot.ipxe on a system where you can edit and upload files.

2. Add the following iPXE script:

#!ipxe
dhcp
set repo http://mirror.i3d.net/pub/fedora/linux/releases/44/Everything/x86_64/os
kernel ${repo}/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=${repo}
initrd ${repo}/images/pxeboot/initrd.img
boot
Code language: Bash (bash)

The script does the following:

  • Configures the networking interface using DHCP.
  • Sets a base URL for the Fedora installation files.
  • Loads the kernel and initial RAM disk.
  • Starts the boot process.

3. Save the script on a publicly accessible server. Load it using methods described in the sections Configure iPXE (for portal deployments) and Deploy an iPXE Server (for API deployments).

iPXE Debugging Commands

If the script does not behave as expected, use the following commands to troubleshoot the issue:

CommandDescription
ifstatShows the status of network interfaces (Check for "Link: up").
routeDisplays the current IP, netmask, and gateway.
imgstatLists currently loaded kernels and initrd files.
configOpens a text-based GUI to manually edit settings like IP addresses.