Steps after PXE network boot

Abstract: Resolve PXE boot failures by verifying DHCP options 66 and 67, TFTP server accessibility, and network stability.

Created: 2026-09-14 by

After a PXE network boot, the client downloads a bootloader image via TFTP, which then loads a kernel and initial ramdisk. The system transitions to executing this OS installer or automation script, requiring proper DHCP and DNS resolution to locate the installation media and configuration files.

The Boot Process Flow

PXE (Preboot Execution Environment) is a standard that allows computers to boot from a network interface before the operating system is loaded. This process relies heavily on the interaction between the client NIC firmware, a DHCP server, and a TFTP server. When you initiate a network boot, the first step is obtaining an IP address. The client sends a DHCP Discover packet. The DHCP server responds with an Offer that includes not only an IP address but also specific options. Option 66 specifies the TFTP server hostname, and Option 67 specifies the boot file name. Without these options, the client cannot locate the bootloader.

Once the IP configuration is established, the client attempts to download the specified boot file using the Trivial File Transfer Protocol (TFTP). TFTP is used because it is simple and does not require authentication, making it ideal for pre-boot environments where complex protocols like HTTP are not yet available. The bootloader, often GRUB or iPXE, is fetched from the TFTP server. After the bootloader is in memory, the client executes it. The bootloader’s job is to load the actual operating system kernel and the initial ramdisk (initrd).

Configuration and Automation

In enterprise environments, manual intervention is avoided through automation. Tools like Kickstart for Red Hat-based systems or Preseed for Debian-based systems allow for unattended installations. These configuration files tell the bootloader what packages to install, how to partition disks, and what user accounts to create. The bootloader fetches these text files over HTTP or NFS after loading the kernel. If you are setting up a custom environment, you must ensure your web server or NFS share is accessible from the network segment where the PXE clients reside.

For more advanced networking scenarios, especially those involving VLANs or complex routing, you might encounter issues similar to those described in How can I log intermittent loss of internet?. While PXE itself does not use the general internet, it relies on stable local network connectivity. If packets are dropped during the TFTP transfer, the boot will fail. Monitoring network stability at the switch level is crucial for large-scale deployments.

Using iPXE for Advanced Features

Standard PXE has limitations, such as small maximum file sizes for TFTP and lack of support for HTTPS. iPXE extends the capabilities of the ROM by allowing users to write scripts directly into the NIC’s flash memory. With iPXE, you can chainload from HTTP, HTTPS, or iSCSI. This flexibility is essential when deploying modern operating systems that have larger kernels or require secure boot validation. You can configure iPXE scripts to check for hardware conditions before proceeding with the installation, adding a layer of intelligence to the deployment process.

Troubleshooting Common Issues

If the PXE boot fails, the most common error is "PXE-E32: TFTP open timeout" or "PXE-E3B: TFTP Error." These errors indicate that the client could not reach the TFTP server or retrieve the boot file. First, verify that the DHCP server is correctly configured with Options 66 and 67. Use a tool like Wireshark to capture the DHCP handshake and ensure the options are present in the DHCP Offer packet. Next, check the firewall rules on the TFTP server. TFTP uses UDP port 69. Ensure that this port is open and that the server is listening on the correct interface.

Another frequent issue is mismatched architectures. A 32-bit PXE ROM cannot boot a 64-bit kernel. Ensure that your TFTP server hosts the correct architecture-specific boot files. For example, in a GRUB configuration, you might have separate directories for x86_64 and i386. If the client requests a file that does not exist, it will receive a file-not-found error from TFTP.

Sometimes, the network card driver in the BIOS needs to be updated. Older NICs may have buggy PXE implementations that struggle with large boot images or modern encryption standards. Updating the BIOS and NIC firmware can resolve compatibility issues. Additionally, if you are using virtualization platforms, ensure that the virtual NIC type matches the physical network requirements. Some hypervisors emulate older Intel PRO/1000 cards, while others provide virtio-net drivers which may behave differently during PXE boot.

Security Considerations

PXE is inherently insecure because it transmits data in plaintext. An attacker on the same network segment can perform a rogue DHCP attack to redirect clients to a malicious TFTP server. To mitigate this, use DHCP snooping on managed switches to prevent unauthorized DHCP servers from responding to client requests. This feature ensures that only trusted ports can send DHCP offers. In more secure environments, consider using Secure Boot combined with signed bootloader images. This ensures that only authorized code is executed during the pre-boot phase.

While troubleshooting network issues, it is important to distinguish between PXE failures and general connectivity problems. Unlike browser-based issues discussed in Which ports are used by browsers in peer-to-peer screen sharing?, PXE relies on specific low-level protocols. Confusing TFTP traffic with HTTP traffic can lead to incorrect debugging steps. Remember that TFTP does not support directory listings, so you must know the exact filename to troubleshoot effectively.

Frequently Asked Questions

Can I use HTTP instead of TFTP for PXE booting?

Standard PXE ROMs do not support HTTP; they only support TFTP. However, you can use iPXE, which is a software-based network stack that runs in RAM, to fetch bootloaders via HTTP or HTTPS. This requires flashing the iPXE ROM onto the NIC or using a UEFI network stack that supports HTTP.

What should I do if the PXE boot hangs at 'Loading initial ramdisk'?

This usually indicates that the kernel was loaded but failed to mount the root filesystem. Check the kernel parameters passed via the bootloader configuration. Ensure that the path to the initrd file is correct and that the network configuration in the initrd allows access to the installation source, such as an NFS or HTTP server.

Why does my PXE client get an IP but fail to find the boot file?

This typically means the DHCP server did not include Option 66 (TFTP server IP) or Option 67 (boot file name). Verify the DHCP scope options on your server. Also, check if the TFTP server service is running and if the firewall allows inbound UDP traffic on port 69.

Is PXE boot supported on all modern motherboards?

Most desktop and server motherboards released in the last decade support PXE boot, often referred to as Network Stack or UEFI Network Stack in the BIOS/UEFI settings. However, some ultra-budget or embedded systems may omit this feature to save costs. Check your motherboard manual for references to 'PXE', 'LAN Boot', or 'Network Stack'.

How can I debug PXE boot issues without a monitor?

You can enable verbose logging in your DHCP and TFTP servers. Additionally, use a network sniffer like Wireshark on a machine connected to the same switch to capture the PXE discovery and file transfer packets. Analyzing the capture will reveal if the client is sending requests and if the server is responding correctly.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More