What PXE Boot Is
PXE is a standard built into the firmware of most server network cards. When the boot order puts the network first, the card loads a small program over the network before any operating system on the disk runs. Nothing has to be installed on the machine for this to work, which is why PXE is the usual way to install or repair servers without physical media.
What a PXE Setup Needs
- A DHCP server: gives the machine an address and tells it where the boot program is.
- A TFTP server: serves the boot program and, often, its configuration.
- Boot files: the network boot program, a kernel, and an initial RAM disk.
- Optionally, an HTTP server: serves larger files, such as installer images and automation files, faster than TFTP.
How a PXE Boot Runs, Step by Step
- The firmware starts the network card, which sends a DHCP request marked as coming from a PXE client, including whether it is a BIOS or UEFI machine.
- The DHCP server answers with an IP address, subnet mask, and gateway, plus the address of the boot server and the name of the boot file.
- The client downloads that file, the network bootstrap program, from the TFTP server on UDP port 69.
- The boot program reads its own configuration and loads a kernel and initial RAM disk, over TFTP or HTTP.
- The kernel starts an installer or a live system, which can fetch an automation file and continue without anyone at the keyboard.
Address and mask notation is explained in subnet mask and CIDR notation.
BIOS and UEFI Clients
Legacy BIOS machines and UEFI machines need different boot files. A BIOS client typically loads a program such as pxelinux.0 from the Syslinux project. A UEFI client loads an EFI program, commonly the shim loader, which then loads GRUB, so the chain also works with Secure Boot. The DHCP server reads the client's architecture from its request and hands out the matching file name. Many UEFI firmwares also support HTTP Boot, which skips TFTP and downloads the boot program over HTTP.
Where iPXE Fits
iPXE is an open-source network boot firmware. It is often chainloaded: the card's built-in PXE loads iPXE over TFTP, and iPXE takes over with more features, including downloads over HTTP and HTTPS, menus, scripts, and booting from iSCSI storage. A short iPXE script:
#!ipxe
dhcp
kernel http://203.0.113.10/boot/vmlinuz
initrd http://203.0.113.10/boot/initrd.img
bootAutomated Installs
| Family | Automation file |
|---|---|
| AlmaLinux, Rocky Linux | Kickstart |
| Debian | Preseed |
| Ubuntu Server | Autoinstall |
The file answers the installer's questions: disk layout, packages, users, and network settings. Its address is passed to the installer on the kernel command line, for example inst.ks= followed by a URL for Kickstart.
What It Is Used For on Dedicated Servers
- Network installs: installing an operating system on bare metal without a USB stick or a mounted image.
- Rescue systems: starting a small live Linux from the network to repair a disk, reset a configuration, or copy data off a server that no longer boots, as in GRUB rescue.
- Hardware tests: running memory and disk tests before a server goes into use.
- Many machines at once: installing identical systems on a rack of servers.
Virtual machines can boot over the network as well, since the hypervisor provides a network card with PXE firmware; see what is KVM virtualization. For the difference between the two server types, see VPS vs dedicated server.
Keep the PXE Network Isolated
- TFTP has no login and no encryption: anyone on the network can download the files it serves.
- A second DHCP server breaks things: on a shared network it hands out wrong addresses to other machines.
- Use a separate provisioning network: a dedicated VLAN keeps PXE traffic away from production.
- Keep secrets out of automation files: use hashed passwords or a placeholder such as
STRONG_that is changed on first login, and prefer HTTPS where iPXE allows it.PASSWORD
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations