A 2,500-VM test lab left vSphere and its tests never noticed


A CNCF blog post by KubeVirtBMC maintainers (Nov 30) describes an unnamed adopter that rebuilt its test lab on Kubernetes after vSphere licensing moved to a subscription model. The lab was about 10 team-owned vSphere clusters, about 300 hosts and about 2,500 test VMs. The interesting part is not the VM move. It is the thing most migrations forget.

The part that is easy to overlook

The lab’s deployment and end-to-end tests treated test VMs like physical servers. VirtualBMC translated IPMI commands into vCenter operations, and Metal3 (Ironic) managed the VMs through BareMetalHost (BMH) resources, so it could power them on and off and set boot devices.

If a migration moves only VMs and disks, every BMH loses its working BMC endpoint (the out-of-band management address). So the team split the problem in two: Forklift moves VMs and disks, and KubeVirtBMC recreates a virtual BMC for each VM at the destination. KubeVirtBMC is a Kubernetes operator that exposes IPMI and Redfish endpoints for KubeVirt VMs and turns each request into KubeVirt API calls.

What changed, and what didn’t

  • A BMC used to be created with an imperative CLI on a VirtualBMC host. Now it is a declarative VirtualMachineBMC resource.
  • It used to be a long-lived process. Now it is a pod and Service per VM, managed by the operator.
  • Credentials moved from VirtualBMC configuration to a Kubernetes Secret per VM.
  • The Metal3 side changed only in the BMC address and credentials on each BMH.

In place, in batches

There was no big-bang cutover. The migration ran on the same physical servers: a first group of hosts left vSphere to bootstrap Kubernetes, and each accepted batch freed more hosts for the Kubernetes cluster. Each batch followed the same pattern: register the vSphere source, map networks and datastores, list the VMs in a Plan, start the Migration, then create the VirtualMachineBMC resources and update the BMHs.

Practices the post says kept batches predictable: cold migration for test VMs, a VDDK image on the vSphere provider to speed disk transfer, keeping VM names and MAC addresses so tests and BMH records still match, and never deleting source VMs during a batch. Powered-off source VMs were the rollback path: power one back on and restore the BMH’s original address and credentials.

A batch was accepted only when Metal3 could drive every migrated VM through KubeVirtBMC the way it had driven the vSphere VM, checked with ipmitool power and boot-device commands and then at the BMH level.

Catches the post itself lists

  • “Equivalent” does not mean feature parity. Validate the IPMI commands your tooling uses before go-live.
  • During power transitions KubeVirtBMC may return a retryable Node Busy (0xC0) response. Ironic retries automatically; custom scripts should too.
  • A BMC can power off or re-image a VM, so keep BMC ports reachable only from the provisioning network and use NetworkPolicy, per-VM Secrets and RBAC.
  • Failed conversions at this scale usually came down to guest OS detection or missing VirtIO drivers, and for stubborn Linux guests the post says preparing the source VM before migration avoided repeated attempts.

What the post doesn’t say

  • The adopter is unnamed, and the numbers are described as “about”. There is no timeline, no failure count and no cost comparison.
  • It is written by the KubeVirtBMC maintainers, so it is a vendor-side view of their own project.
  • The outcomes listed (tests unchanged, small cutover risk) are the authors’ summary, not measurements.

What I’d take from it

If your CI or test lab leans on VirtualBMC, the transferable idea is to treat the management endpoint as its own migration track with its own acceptance check, separate from moving the VMs. That is the post’s argument, and it is also what made each batch independently acceptable or reversible.

This post summarizes the CNCF article and adds my own reading. I haven’t run this migration myself.