Bare metal → ESXi → VMware Holodeck

Bare metal to a Holodeck lab through one API

I rebuild my Holodeck lab more often than I would like, and for the longest time that meant an evening in the iDRAC console with a hand-edited kickstart and an ISO that never quite matched the last one. GroundZero does that work through the server's BMC: it checks the hardware, installs ESXi unattended, verifies the result and prepares the host for Holodeck.

1 Preflight2 Install ESXi3 Assess 4 Prepare host5 Verify jumbo frames6 Deploy Holorouter

What it does

Every step runs through a versioned REST API, and the web UI and the CLI are both clients of it, so anything you can click you can also script.

Preflight

Reads the inventory over Redfish and checks CPU support, memory, disks, NICs, boot mode and the BIOS virtualisation settings against the Holodeck 9 requirements. It is read-only, so you can run it against a server that is still in production without anyone noticing.

Unattended ESXi install

Builds a custom ISO from the stock installer, serves it to the BMC as virtual media, boots it once and then verifies the build, IP, VLAN, uplinks and NTP. The VMFS datastore on the install disk is kept unless you ask otherwise.

The pipeline

Each step's output is the input of the next one, and the pipeline recommends what to run next. Reinstall the OS and everything read from the old one is marked out of date, so you are not preparing a host based on what it used to be.

Host preparation

Applies what Holodeck needs on the installed ESXi: MTU 9000, trunk and external port groups, NTP and a datastore. It then sends 9000-byte frames out of one uplink and back in the other, because the physical switch is usually the part nobody checked.

Holorouter

Uploads the Holorouter OVA, sets its network properties and waits for SSH. It turns out the Holorouter reads those properties once, on first boot, and ignores them after that... which I found out the slow way.

Credentials and certificates

Credentials are encrypted at rest and never returned by the API. BMC and ESXi certificates are pinned on first contact, and anything destructive asks you to type a confirmation first.

gz-hwreport: the hardware report on its own

Most of the time I just want to know what is in a box: which BIOS it is on, or which firmware the PERC is running. gz-hwreport answers that without installing anything. Point it at one or more BMCs and it reads them over Redfish, read-only, and writes an HTML page and a JSON file for each server.

The page covers firmware versions for every component, CPUs, memory modules, drives and RAID volumes, network adapters and ports, PCIe devices including HBAs and NICs, power supplies, the BIOS and the BMC. It opens anywhere and prints to PDF.

Give it several BMCs and it adds a page comparing them, with anything that differs highlighted. In practice that is how you find the one host in a cluster that is a BIOS release behind, before it finds you during an upgrade.

The executables need nothing installed. The Node.js file is a single script with no dependencies and needs Node 20 or newer. They report exactly the same thing: the build replays a recorded server through both and fails if they disagree on a single field.

# one server, with Node.js
GZ_BMC_PASSWORD='...' node gz-hwreport.mjs 192.0.2.50

# or the executable for your platform
chmod +x gz-hwreport-macos-arm64
GZ_BMC_PASSWORD='...' ./gz-hwreport-macos-arm64 192.0.2.50

# several servers, compared
node gz-hwreport.mjs 192.0.2.50 192.0.2.51 192.0.2.52

# from a file: "address" or "address username" per line
node gz-hwreport.mjs -f bmcs.txt -o reports

Without GZ_BMC_PASSWORD it asks for the password once. BMC certificates are usually self-signed, so it doesn't check them unless you add --verify-tls. macOS will want you to allow the executable the first time, since it isn't signed. The full guide covers every option, the output files and what to check when a BMC won't answer.

Screenshots

These come from simulation mode, which replays a recorded Dell R740xd and ESXi host with documentation addresses, so nothing here is my lab.

The host pipeline: hardware, operating system, readiness, preparation and Holodeck stages, each task with its state and result
Pipeline. One host from hardware checks to the Holorouter, with the recommended next step at the top.
Holodeck readiness report with the proposed datastore and passing checks
Readiness. Compares what Holodeck needs with what the host has, and lists the fixes it will apply.
ESXi deploy wizard showing per-server values and the generated kickstart preview
Deploy preview. The exact kickstart, with the password hash hidden, before anything is sent to the BMC.
Pipeline stages after host preparation, jumbo-frame verification and readiness
Preparation. After the fixes were applied and 9000-byte frames made it through the switch.
Jobs list with filters by host and status
Jobs. Every run keeps its steps, timings and a diagnostics bundle for when something goes sideways.

How it works

The web UI, the CLI and your own automation all drive the same REST API. Long-running work becomes a job with live progress, and each job keeps a diagnostics bundle with every BMC and ESXi call, minus the secrets.

  1. Register the serverAdd the BMC address and credentials. The BMC's TLS certificate is pinned on first contact.
  2. Describe the OSCapture a config set from a running ESXi host, or build one in the UI. The hostname and IP stay with the server.
  3. Preview, then installCheck the generated kickstart, then type the confirmation phrase. Nothing goes to the BMC before that.
  4. Follow the pipelineThe next step is always recommended, and a blocked step tells you which input it is waiting for.

Installing it

You need Python 3.12 and uv, or Podman or Docker if you would rather run the container.

# install and start (keep this running)
git clone https://github.com/djsincla/GroundZero.git
cd GroundZero && uv sync
uv run groundzero serve
uv run groundzero ui        # in another terminal

# register a server and check it (read-only)
uv run groundzero hosts add --bmc 198.51.100.11 --name esxi1
uv run groundzero preflight esxi1

# follow the recommended next step
uv run groundzero pipeline esxi1

The installation guide covers the network requirements, the container option and every step through to the Holorouter. Be aware that the BMC fetches the install ISO from your machine on TCP 443, so if a firewall sits between them, that is the first thing to check.

Status

I have run it end to end on a Dell PowerEdge R740xd (iDRAC9) with ESXi 9.1.1. Other Redfish BMCs go through the generic path and have not been tested yet, so expect to find something.

doneRedfish inventory and Holodeck 9 preflight, unattended ESXi 9.x install with validation, config sets, deploy preview, certificate pinning, web UI
doneHolodeck readiness, host preparation, jumbo-frame verification, Holorouter deployment
doneA modular pipeline where each step's output is the next step's input, any OVA deployed from its own inputs, appliance profiles, replacing a deployed appliance
doneCapture a profile from a running appliance, adopt a VM you deployed by hand, correct recorded outputs
doneConfigure BIOS: VT-x, VT-d and UEFI boot mode set over Redfish with one reboot, only where preflight found them off
doneCluster mode: hostnames from iDRAC names, addresses from a pool, and an optional DNS check before anything is installed
doneSpecs: pick the jobs each server or cluster runs, then run them as one, approved once, with every cluster member in parallel
doneBIOS profiles checked against the BIOS's own attribute registry, and storage profiles for RAID volumes, controller mode, drive state and hot spares, both planned before anything is written
doneA full hardware inventory, printable server and cluster reports, and gz-hwreport on its own as an executable or a Node.js file
nextThe Holodeck deploy itself: staging the binaries on the Holorouter and running the deployment
plannedWindows guest customisation