Skip to content
← Work

One image, many machines

Reimage arbitrary bare-metal Windows hardware without taking over DHCP or touching the network everything else depends on.

2026
  • networking
  • automation
Mode
ProxyDHCP
Router DHCP
Untouched
New model
A folder drop
Scope
Bare metal only

Network booting is the standard way to reimage machines at scale, and the standard way to configure it is to let the imaging server run DHCP. In a lab where DHCP, internal DNS and a dozen dependent services already work, that is an unreasonable amount of blast radius for a convenience.

The alternative is ProxyDHCP: the existing router keeps handing out addresses exactly as before, and the imaging server answers only the boot-specific parts of the conversation. Two servers, one conversation, no leases changing hands.

Getting the split right

The critical detail is that the imaging server’s DHCP component must be explicitly told to serve no addresses at all. Left at its default it also binds the DNS port, which on a machine that is not the DNS server is an excellent way to break name resolution for the entire network while appearing to have changed nothing.

The second detail cost more time. In normal PXE, the boot filename is handed over via the standard dhcp-boot option. In proxy mode that option is ignored. Clients get an address from the router and then sit waiting for a filename that never arrives, timing out with an error that suggests the server is unreachable. The fix is to serve the boot script through the proxy-mode path instead — but the symptom points firmly at the wrong subsystem, and I spent an evening investigating a network problem that did not exist.

The test that lied

Which brings me to the most expensive hour of the project. To check the TFTP server, I tested it from my laptop. It failed. It kept failing. The server looked dead.

The server was fine. My laptop reaches that network through the mesh VPN, and the return path was being source-translated by an intermediate node. TFTP negotiates a new port for the data transfer, and that translation broke it — in a way that looks exactly like a server not responding.

The rule I took away: test a boot service from something that boots from it, on the same physical segment. A test from a convenient machine over a different path is not a test of the thing you think it is.

Making it scale without effort

The imaging setup is deliberately built so that new hardware is a filesystem operation rather than a configuration change. There is one golden image, and alongside it a directory tree organised by vendor and model. Drivers for a machine that has never been imaged before go in a new folder named after it; per-organisation customisation works the same way, keyed by hostname prefix.

Adding a model nobody has imaged before is a folder drop. So is onboarding a whole new set of machines. There is no central manifest to update and nothing to redeploy, which means the system does not slowly rot as the list grows.

Where it deliberately stops

This handles bare metal only. Virtual machines are cloned from templates, which is faster and simpler, and building one mechanism to cover both would have produced something worse at each job than the two separate things that already work.