How to pxe boot
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 4, 2026
Key Facts
- PXE booting requires a PXE-enabled network interface card (NIC) in the client computer.
- A DHCP server is essential to assign IP addresses to PXE clients and provide the location of the PXE server.
- The PXE server hosts boot files (like TFTP server and boot images) that the client downloads to start the operating system installation or recovery process.
- BIOS/UEFI settings on the client machine must be configured to enable network booting.
- PXE booting is commonly used for mass OS deployments, diskless workstations, and system recovery.
What is PXE Booting?
PXE (Preboot Execution Environment) is a standardized method that allows a computer to boot up using its network interface card (NIC) rather than from local storage devices such as a hard drive or CD/DVD drive. This capability is particularly useful in enterprise environments for deploying operating systems to multiple machines simultaneously, setting up diskless workstations, or performing system recovery operations without the need for physical media on each computer.
How Does PXE Booting Work?
The PXE boot process involves a sequence of events coordinated between the client computer and network servers:
- Client Initialization: When a computer starts up and is configured for PXE boot, its NIC broadcasts a DHCP (Dynamic Host Configuration Protocol) discovery request on the network.
- DHCP Server Response: A DHCP server on the network receives this request. If configured for PXE, it not only assigns an IP address to the client but also provides crucial information, including the IP address of the PXE server and the name of the boot file the client should download. This is typically done using DHCP options 66 (boot server host name) and 67 (bootfile name).
- PXE Server Communication: The client uses the provided information to contact the PXE server. The PXE server, often running services like TFTP (Trivial File Transfer Protocol), serves the initial bootloader file to the client.
- Bootloader Execution: The client downloads and executes this bootloader. This bootloader is a small program responsible for fetching the rest of the necessary boot files, which could include kernel images, operating system installers, or diagnostic tools.
- Operating System/Environment Load: The client downloads the required files from the PXE server and proceeds to load the operating system, deployment image, or recovery environment. This entire process happens over the network, making it efficient for large-scale operations.
Prerequisites for PXE Booting
To successfully perform a PXE boot, several components and configurations are necessary:
- PXE-Enabled NIC: The client computer's network card must support PXE. Most modern NICs have this capability, often enabled in the firmware.
- BIOS/UEFI Configuration: The computer's BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware Interface) settings must be configured to prioritize network booting. This usually involves selecting 'Network Boot' or 'PXE Boot' as the primary boot device in the boot order settings.
- DHCP Server: A functioning DHCP server is required on the network to assign IP addresses and provide the PXE server's address and boot filename to the client.
- PXE Server: A dedicated server configured to act as a PXE server is needed. This server typically hosts TFTP services and stores the boot files (e.g., bootloaders, kernel images, OS installation files). Popular solutions include Windows Deployment Services (WDS), Linux-based servers using tools like `dnsmasq` or `Syslinux`, and third-party deployment solutions.
- Network Infrastructure: A stable and properly configured network infrastructure is essential, including switches and routers that allow communication between the client and the PXE server.
Common Use Cases for PXE Booting
PXE booting offers significant advantages in various scenarios:
- Mass Operating System Deployment: IT administrators can deploy operating systems to hundreds or thousands of computers simultaneously without manually installing from USB drives or DVDs.
- Diskless Workstations: Computers can be configured to boot and operate entirely from the network, eliminating the need for local storage and simplifying management and security.
- System Recovery and Diagnostics: Bootable diagnostic tools or recovery environments can be loaded over the network, allowing technicians to troubleshoot or repair systems without physical media.
- Thin Clients: PXE booting is fundamental for deploying operating systems to thin clients, which rely on network resources for their primary functionality.
Troubleshooting Common PXE Boot Issues
Several issues can prevent a successful PXE boot:
- Incorrect BIOS/UEFI Settings: Ensure network boot is enabled and prioritized correctly.
- DHCP Configuration Errors: Verify that the DHCP server is configured to provide the correct PXE server IP address and boot file name (options 66 and 67).
- PXE Server Issues: Check if the TFTP service is running, accessible, and serving the correct boot files. Ensure the firewall on the PXE server is not blocking necessary ports (like UDP 69 for TFTP).
- Network Connectivity Problems: Confirm that the client and server can communicate on the network. Test network cable connections and switch configurations.
- NIC Compatibility: Although rare with modern hardware, ensure the client's NIC is PXE compatible and the driver is loaded correctly during the boot process.
By understanding the components and workflow involved, setting up and utilizing PXE booting can become a streamlined process for efficient IT management.
More How To in Daily Life
Also in Daily Life
More "How To" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Preboot Execution Environment - WikipediaCC-BY-SA-4.0
- PXE Protocol Overview - Microsoft Docsfair-use
- Network Booting with PXE - Red Hat DocumentationCC-BY-SA-4.0
Missing an answer?
Suggest a question and we'll generate an answer for it.