Most teams can get a single server to install itself over the network. That part is a weekend project: a DHCP server, a TFTP root, a preseed or an answer file, and a machine that comes back up with an operating system on it.
Then they try it on a rack, and the failure is not the install. It is everything around it: the machine that booted the wrong NIC, the host whose BMC password nobody wrote down, the install that finished but never reported back, the driver set that lived on an engineer's laptop, the power action that hit a production box because the discovery layer guessed wrong.
Bare metal provisioning is not a single problem. It is six hand-offs in a row, and each one has its own way of failing quietly. Below is what each hand-off is for, how it breaks, and what to put in place before it does.
1. What bare metal provisioning means, precisely
Bare metal provisioning is the process of putting an operating system and its base configuration onto a physical server with no hypervisor in between and nobody at the console. The machine boots an installer over the network, reads its answers from a file or a metadata service, installs, and reports back.
The distinction that matters in practice is between provisioning and imaging. Imaging copies a finished disk image onto a machine. Provisioning ends with a machine that has identity, network configuration, access keys an operator can actually use, and a known state the next step can trust. An imaged machine can be identical to its neighbour; a provisioned machine is not supposed to be.
2. The boot chain, and where each hand-off dies
A PXE boot is a conversation with several participants, and every participant is a place where the conversation can drop:
- DHCP hands out an address and the name of the boot file. The classic failure here is that the answer carries the filename in the legacy
filefield while the client expects option 67 (bootfile-name), or the client sends architecture type in option 93 and the server only has one binary for both BIOS and UEFI. - TFTP serves the first stage. It is simple, it is in every firmware, and it does not scale gracefully once many hosts pull large files at once.
- The bootloader — usually iPXE — takes over and can re-fetch the rest over HTTP. This is the point where a design either becomes manageable or stays a lab.
- The installer starts and reads its answer file: preseed for Debian-family, Kickstart for RHEL-family, an
Autounattend.xmlfor Windows, or autoinstall for newer Ubuntu.
The iPXE project documents HTTP, iSCSI and even WAN boot as ways to leave TFTP behind (ipxe.org/start). netboot.xyz shows the same idea packaged as a menu that boots many distributions over both BIOS and UEFI (netboot.xyz/docs). The Debian installation guide's TFTP section is the clearest short reference for what next-server and filename actually do (Debian manual, ch04s05).
3. Why the HTTP hand-off changes the ceiling
TFTP is fine for a handful of machines on one flat network. It stops being fine when you have a hundred hosts, a WAN between sites, or an image that is several gigabytes.
Moving the payload to HTTP changes the arithmetic: you get caching, range requests, ordinary proxies and CDN edges, and a server that does not fall over when twenty machines boot at once. Access control also improves — with TFTP, anything on the network can read the boot files; with a task-scoped HTTP token you can limit a machine to the one artifact it is supposed to receive.
The trade-off is honest: you now need something that mints those tokens and tracks which task a machine is in. That is the first piece of a real provisioning system, not a nice-to-have.
4. The answer file is a contract
An answer file is not a config dump. It is a contract about the end state: disk layout, network identity, accounts, packages, and what must be true before the machine is considered done.
Two design rules pay for themselves immediately:
- Keep it versioned with the image it belongs to. An answer file that drifts from its image produces installs that succeed and machines that misbehave.
- Never put long-lived credentials in it. Answer files sit on boot servers, are fetched over cleartext protocols, and end up in logs. Short-lived tokens and per-host secrets are the only versions that survive an audit.
Windows makes this visible because its installer is explicit: it shows a UI page for any setting that is missing or invalid, so "stuck on the language screen" and "stuck on the disk screen" are diagnostics, not mysterious failures. If a Windows unattended install stops on a page, that page names the setting you failed to supply.
5. What the fleet layer adds on top
Once the boot chain works for one host, the questions change from "how do I install" to "which host is this, and may I touch it".
- Identity. MAC addresses are not identity. They move with NICs, get spoofed, and mean nothing across sites. A usable system binds a machine to something durable: SMBIOS UUID, serial, or FRU data read during discovery.
- Power. Out-of-band control over IPMI or Redfish is what makes an install repeatable instead of manual. It is also the most dangerous API in the building, because it can cut power to a production host.
- State. Which machines are in the middle of a build, which failed, which are waiting for a human to confirm the physical label. This state has to live outside the installer process, or a network blip loses a half-built machine.
- Inventory. What was installed, when, with which image and which answer file. Without this, the next rebuild is archaeology.
6. Five pitfalls worth designing around
- Discovery that can cut power. Read-only discovery first, explicit confirmation before any destructive action.
- A single shared password for BMCs. It works until one host leaks it; then it is a fleet-wide incident.
- Driver injection kept on an operator's laptop. Attach driver sets to the image template so rebuilds are reproducible.
- No offline recovery path. If the only way back into a machine is a wipe, operators stop using the tool for anything risky.
- Boot artifacts that assume one site. Cache images locally; a dead uplink should not stop a build.
7. When you do not need any of this
If you run fewer than a handful of servers, provision them by hand and write down what you did. If your workloads fit comfortably in virtual machines, the hypervisor already gives you the template, the clone and the rollback.
Bare metal provisioning earns its complexity when the physical layer is the product: dedicated hardware for customers, GPU nodes, storage servers, lab fleets that get rebuilt often. That is the point where the six hand-offs stop being a weekend project and start being infrastructure.
If you are at that point, the practical summary is: put the boot chain on HTTP, make identity durable, keep power actions behind a confirmation, keep state outside the installer, and treat the answer file as code that ships with the image. The rest is detail — the rest of the detail is here if you want to see how we built it.
Disclosure: I work on PXE Commercial, a self-hosted bare metal provisioning engine built around the hand-offs above — iPXE discovery, unattended Windows and Linux installs, IPMI/Redfish power control, and multi-site orchestration from a single binary. The reasoning applies whichever tool you use.
