Podcast about DevSecOps

#51 - Provisioning bare-metal servers

BIOS, firmware and disk settings turn a server install into a fleet management problem.

17 min read

Diving into the world of bare-metal servers, Mattias takes the helm solo for this episode. He’s accompanied by special guests Michael Wagner and Ian Evans from Metify, the company that powers Mojo - a leading platform for bare-metal provisioning automation.

While we often chat about the big cloud service providers, this time we’re switching gears. If you’ve been curious about how real-world, physical servers are set up and managed, this episode is just for you. Join Mattias, Michael, and Ian as they dive into the nuts and bolts of setting up servers - a topic that Mattias is super passionate about.

Discuss the episode or ask us anything on LinkedIn


Going back to physical servers means relearning what the cloud hid

One of us carried the last servers out of a data center a few years ago, turned to a colleague called Martin and said out loud that this was the last time. It wasn’t. We’re standing up bare metal again for a bank, where the requirement is that the personal data it holds can’t sit with an American provider, and that means racks, disks, boot order and a DHCP server again. The ruling behind that requirement is Schrems II, case C-311/18, where the Court of Justice of the European Union struck down the EU-US Privacy Shield in July 2020. It didn’t ban American companies. It removed the easy legal basis for sending personal data to them and left you to assess, transfer by transfer, whether US surveillance law undercuts what your contract promises.

For about a decade the only thing between you and a running machine was an API call, and the skills underneath that call went quiet. The tooling for physical machines kept going, and it’s the same list it has been for years: Foreman, Red Hat Satellite, Canonical’s MAAS, Matchbox out of CoreOS. Every one of them is a project before it’s a tool.

Michael Wagner and Ian Evans build the thing that is supposed to fix that. Wagner is co-founder and CEO of Metify and came from Red Hat, where he ran partner programs aimed at enterprise container and Kubernetes workloads. Evans is co-founder and CTO, with a background in data center and open source infrastructure architecture, and he had the idea first. Their product, Mojo Platform, provisions bare metal across manufacturers. The gap they set out to close opened because nobody treated low-level software as a first-class citizen: it stayed a geek project rather than a product.

Choosing servers when Redfish is in the requirements

The first question on the way back is what to put in the rack, and the honest answer has changed.

Enterprise servers or cheap white boxes for a small fleet?

Buy for the lifecycle you’ll actually run, then test the management API on the exact model before you let a standard talk you into the cheaper box.

The market has moved away from monolithic blade chassis toward the 19-inch rack mount pizza box, and across vendors those boxes carry much the same processors and memory. What differs is what an organisation counts as enterprise-grade support: something mainstream like a Dell or an HPE, or a Supermicro-class white box, which is a little different in that regard. Read that as a question about the agreement rather than the badge. Put the contracts side by side and compare what they actually promise: response time, on-site parts, how long firmware updates keep coming for the model you’re buying. The most common pattern we see is the cheaper server, run through a full three-year lifecycle, then pitched and replaced.

Redfish is what makes that pattern easier to argue for. When you can send similar commands to a Dell, an HPE, a Cisco and a Supermicro and get the same result, the management suite stops being a reason to pay a premium. The alternative used to be an old, monolithic toolset per vendor.

Support for the standard is per model and per firmware revision, though, so it isn’t a line you can take off a datasheet. Get a loaner, hit /redfish/v1 on its BMC yourself, and exercise the handful of resources the purchase actually depends on: BIOS attributes, storage controller mode, firmware update, one-time boot. A box that answers three of those is a different purchase from one that answers all four.

Redfish is spreading past the server

That only holds while the standard keeps covering the things you buy, so it’s worth knowing how far it currently reaches.

How far does Redfish go beyond compute?

Further than most people assume: of the eleven schemas DMTF shipped in May 2023, nine are cooling equipment, down to a leak detector.

Redfish is the DMTF’s HTTP and JSON successor to IPMI for out-of-band management, and the service root everyone tests first is /redfish/v1. Compute is where it started and where support is deepest, but Redfish Release 2023.1 from May 2023 reads like a facilities inventory: ThermalEquipment, CoolingUnit, CoolingLoop, CoolantConnector, Filter, Pump, Reservoir, LeakDetection and LeakDetector, alongside DriveMetrics and StorageControllerMetrics. Power distribution units and transfer switches already had their own model.

Published schemas and shipped implementations are two different inventories. Redfish 1.0 is not new: DMTF announced it in August 2015 as a multi-vendor data center management standard. What has moved unevenly since is coverage, vendor by vendor and device class by device class. DMTF publishes the Redfish Service Validator, a Python tool that walks a live service with GET requests and checks the responses against the published schema, and it’s the cheapest way to find out what a box answers before you commit.

Switches are the softer part of the claim. The route into network gear is the YANG to Redfish mapping, which would let Redfish talk to devices that speak NETCONF, and the DMTF does publish a converter. The specification behind it, DSP0271, is still a work in progress at version 0.5.6, dated October 2016. Treat network devices as a direction of travel, and ask for a demo rather than a datasheet.

Somebody has to provision the provisioner

With hardware chosen, the next thing is getting an operating system onto it, which is mostly a networking problem.

What should the boot order be on a bare metal node?

Leave the disk first and push a one-time PXE boot out of band when you want to install, which makes an unplanned reboot far less likely to reimage a production node.

The flow is unchanged from a decade ago. You need DHCP, DNS and something to serve images. The controller sets a one-time network boot, the machine chainloads, pulls the image, installs, reboots, and comes up on its bootloader. That ordering lowers the risk rather than removing it: boot fallback when the disk doesn’t come up, or a provisioning service still configured to answer that machine, can put a node back on the network anyway. Typhoon’s bare metal guide is a concrete read on the pipeline with open components: iPXE clients chainload from Matchbox, machines are matched on identifiers such as MAC address, and Ignition configures them. Per-node customisation lives in Kickstart or preseed, and that’s where the operating system gets baked exactly the way you want it before anything else runs.

Then the awkward bit. You want to provision your servers, but first you have to provision the thing that does the provisioning, and you can’t provision that. One client we’ve seen installs a Kubernetes cluster by hand, runs the provisioning tooling inside it, builds the real cluster with that, and moves the tooling afterwards. The other answers are a VM on the side, or one piece of metal you accept as hand-built and write down. Mojo does its own identification of discovered machines, so a standard install doesn’t need you to register every MAC address first.

That same pipeline is how you fix things later. One node will need something the others don’t, extra storage or a daemon configured differently, and the moment you do that over SSH you own a snowflake. Keep the image generic, keep the differences in Kickstart, preseed or Ignition, hold revisions of both, and pick a revision at deploy time instead of patching a running host.

Storage decisions start inside the server

Storage is where bare metal stops resembling a cloud account, and where the settings under the lid matter most.

What do you set inside the box before a Ceph cluster goes on it?

On a server with a RAID-capable controller, the usual move is switching it out of hardware RAID so the drives present individually.

This is the gap in most provisioning tools: plenty of thought goes into building the Ceph cluster, very little into the server settings that make it possible. You take the RAID card, flip it from hardware RAID mode into an HBA-centric mode, and the individual SATA drives appear for the distributed file system to claim. Ceph’s own hardware recommendations put that as guidance rather than a rule: “RAID-mode (IR) HBAs may exhibit higher latency than simpler ‘JBOD’ (IT) mode HBAs”, and “Many RAID HBAs can be configured with an IT-mode ‘personality’ or ‘JBOD mode’ for streamlined operation”.

Read the rest of that page before you standardise on the flip. Ceph says plainly that “You do not need an RoC (RAID-capable) HBA”, and that a system on NVMe SSDs needs no HBA at all. The controller mode question only arises because you bought a controller.

The other half is finding the right boxes to begin with. Mojo tags discovered assets into a central database so you can query the fleet by what’s in it, then feed those constraints into the provisioning workflow. Instead of walking a floor of a thousand servers deciding which Dells to use, you ask for machines with a Xeon 6244 Gold and five SSDs of a given size and deploy onto whatever matches. That query is the part a cloud hands you for free. On metal, build the inventory before you need it: tag what’s in each box at discovery time, keep it somewhere you can query, and have the provisioning workflow read from it rather than from a spreadsheet.

Everything before the operating system is where the time goes

Ask what actually hurts about running metal and the answer isn’t the install. It’s the hour before it.

What is the slowest part of adding a server to a fleet?

Pre-positioning: getting firmware to a known revision, BIOS to a known template and disks to a known state, before any installer runs.

Metify’s customer conversations land on the same complaint: people walking the data center floor, logging into three different tools, and done with it. Mojo’s answer is a template per model, so a Dell R730 or R740 gets its firmware updated, its BIOS matched to the organisation’s template, its storage prepared, and only then lands in a pool as available. Settings that only matter for some workloads, SR-IOV for specific network operations, say, get set in the BIOS as part of the same workflow.

Those pools carry role-based access control and policy, which is the part that makes management comfortable. A pool can be a rack, a data center or an availability zone, and a storage administrator can be limited to storage work. Spend time in healthcare and the example comes quickly: override a fetal monitoring system server by accident and what you interrupted is patient care. That’s why production nodes get locked, and why changes to them need a named approver rather than a login. The failure to design against is the one that cascades, where a firmware update goes out and breaks every node in the data center at once.

That’s the hiring problem sitting under the technical one. The people who can set a BIOS template by hand are the same people who spent the last decade in cloud consoles, and pre-positioning is the work where the gap shows up first.

Removing a node is the unfinished half

Everything above is about adding capacity. Taking it away is where this whole category is still weak.

Why is shrinking a bare metal cluster harder than growing one?

Because the cluster manager and the provisioning layer each own half the job, and the handoff between them is code you write yourself.

Here’s the shape of it from our own work. Four nodes defined with count in Terraform, and node one is the old one you want gone. Terraform addresses count instances by position, so dropping the first renumbers every node after it and the plan comes back proposing changes you didn’t ask for. HashiCorp’s own guidance is to use count for nearly identical instances and for_each where instance arguments need distinct values that can’t be derived from an integer, which a fleet of named machines is.

Switching isn’t free, and this is the step that catches people. Take aws_instance, the resource name everyone knows from the AWS docs: aws_instance.node[0] becoming aws_instance.node["rack1-03"] is a new address as far as Terraform is concerned, so a bare swap plans a destroy and a create. Whatever resource type your own metal is declared with, that much holds: without an address migration, Terraform plans a replacement. Whether that replacement reprovisions hardware depends on the provider and your workflow. Typhoon’s maintenance guide keeps the two apart: you power the machines off and set their next boot device to PXE with ipmitool yourself, and the apply that follows deletes provisioning configs from Matchbox. HashiCorp’s refactoring guidance covers exactly this case with moved blocks: one per node, mapping the old index to the new key, so the existing binding carries over. Do that migration on its own, apply it, confirm the next plan is empty, and only then delete a node. Power the box off instead of changing the configuration and the next run complains that the SSH key or the node name doesn’t match what it expects.

Removing a node isn’t one operation anyway. It’s a sequence that wipes the disks, puts the hardware into a decommissioned state, flags the asset and ideally pulls a replacement out of the pool. The verdict on the tooling for that sequence is flat: too complex, too decoupled, or just not easy to use. Mojo exposes an API for exactly that callback, and customers stitch their own automation into it. The cooperation that would make this one operation still has to be built, between whatever manages the cluster and whatever owns the metal.

The wiring is what you actually give up

The last gap is the one that surprises people who’ve only run Kubernetes on a managed service.

What do you actually miss when you leave the cloud?

The wiring between services: the role that lets your cluster edit DNS, the bucket you drop a terabyte into and never think about again.

Running a Kubernetes cluster on metal can be easier than running one in a cloud account, and there’s no hypervisor layer in the way. What’s missing is everything around it. Granting a workload network access to a database port, giving the cluster permission to write a DNS record, storage you don’t have to capacity-plan: in a cloud those are three API calls, and on metal they’re three different teams. The nearest equivalent is a service catalog: you describe a stack, the platform deploys it, and callbacks between steps confirm each one before the next. A VLAN change on a switch belongs in that same chain, because a server nobody can reach is dead on arrival.

Be clear on the limits of the catalog idea. Mojo hands off once the operating system, or a full stack such as OpenShift on VMware, is running, and the organisation’s own Ansible or Terraform takes it from there. There are no public cloud hooks in the product: where a VPC already reaches into a private data center, you drive the metal through the API from whatever workflow you have. Very few companies are purely public or purely private, so the integration points matter more than which side you think you’re on.

What this means for teams

If a compliance requirement, a cost model or a merger is pushing you back onto physical servers, the thing to internalise is that the hard part moved. Installing an operating system over the network is a solved problem with free tools. Getting a thousand boxes into an identical, known, auditable state before the installer runs is not, and neither is taking one out again. Put your effort into the layer below the operating system.

This week:

  • Ask your next hardware quote for a loaner, hit /redfish/v1 on its BMC, and run the DMTF validator against the resources you actually need before you sign.
  • Write down what your provisioning host is, and how you’d rebuild it if it died tonight.
  • Decide your disk controller mode per workload, and set it before the machines are racked rather than after.
  • Take one node out of a cluster on purpose, document every step, and see how much of it you can automate.

Common questions, answered

How do I check that a server really supports Redfish before buying it?

Get a loaner and hit /redfish/v1 on its BMC yourself, rather than trusting a line on a datasheet. Check the resources the purchase depends on, because coverage varies by model and firmware: BIOS attributes, storage controller mode, firmware update and one-time boot. DMTF’s Redfish Service Validator walks a live service with GET requests and compares the responses against the published schema. Treat switches and facility gear separately, since those parts of the standard are younger.

Does Schrems II mean I have to move off AWS and run my own servers?

No, but a signed contract on its own isn’t enough. The ruling invalidated the Privacy Shield adequacy decision and left standard contractual clauses valid, with a duty to assess whether the destination country’s law undermines them. Where it does, the EDPB’s recommendations of June 2021 say the transfer continues only with supplementary measures that are effective in practice, and the examples treated as effective are technical ones such as strong encryption. Run that assessment before you cost out a rack.

How do I remove a bare metal node without breaking the next Terraform run?

Drain it from the cluster, change the Terraform configuration so the node is gone from the definition, and read the plan before you apply. Don’t edit state by hand: it records which real resource each configured instance refers to, and dropping a binding tends to produce a plan that recreates what the configuration still declares. Positional lists bite here, since removing the first element renumbers the rest, so key the nodes by a stable identifier with for_each. Moving existing nodes from count to for_each changes their addresses, so write a moved block per node and apply that migration on its own first. Finish on the metal: wipe the disks, return the box to a pool or mark it decommissioned, and keep the record.

Resources

Since we recorded

Ten days after this episode was released, on 10 July 2023, the European Commission adopted its adequacy decision for the EU-US Data Privacy Framework, giving certified American companies a lawful basis for receiving EU personal data again and removing the simplest version of the argument that sent us back to the data center. The sovereignty case didn’t go away with it, and we picked that thread up in Going local: what’s driving the move?. Planning a VMware stack on the metal now starts from different purchasing and renewal terms, after Broadcom simplified the VMware offer lineup and licensing model in December 2023. Redfish kept moving toward the facility: Release 2024.4, announced in January 2025, added a LeakDetectors collection to Chassis, actions for controlling liquid cooling equipment and a SetMode action on Pump.