CNCF details 2,500-VM vSphere-to-KubeVirt migration using KubeVirtBMC and Forklift
KubeVirtBMC replaces VirtualBMC for vSphere by exposing per-VM IPMI lanplus and Redfish endpoints backed by the KubeVirt API, so Metal3 BareMetalHost records keep working unchanged after a Forklift migration.
Summary
A CNCF blog post by Anish Bista, Yan Zhu and Zespre Chang documents how an unnamed large engineering organization moved roughly 2,500 test VMs across about 300 hosts and about 10 team-owned vSphere clusters onto Kubernetes after vSphere licensing shifted to a subscription model. The stack is built from Kubernetes, KubeVirt for VM execution, Metal3 (Ironic) for provisioning over IPMI, cert-manager for webhook certificates and Helm for installs, with Forklift handling the VM and disk migration and KubeVirtBMC supplying a virtual BMC for each VM.
The critical constraint was that the organization's deployment and end-to-end tests drove machines through IPMI via Metal3 BareMetalHost resources, previously translated into vCenter operations by VirtualBMC for vSphere. Moving only VMs and disks would have broken every BMH management endpoint, so the team decoupled workload migration from out-of-band management: Forklift creates the VM and imports disks as CDI DataVolumes, while a declarative VirtualMachineBMC resource causes the KubeVirtBMC controller to spawn a virtbmc pod and Service per VM. Metal3 then sends IPMI lanplus commands to port 623 exactly as before, and only the BMC address and credentials in each BMH change.
How KubeVirtBMC keeps Metal3 BareMetalHosts working after migration
- BMC translation layer: KubeVirtBMC is a Kubernetes operator that exposes IPMI and Redfish endpoints for KubeVirt VMs and converts each incoming request into KubeVirt API operations; this adopter relied on its IPMI lanplus support, with Redfish also available.
- Declarative versus imperative BMC creation: VirtualBMC required an imperative CLI invocation on a long-lived VirtualBMC host, whereas KubeVirtBMC uses a VirtualMachineBMC resource whose controller runs a pod and Service per VM, with credentials pulled from a Kubernetes Secret.
- Per-VM request path: Forklift creates the VM and CDI imports its disks as DataVolumes, a Secret and VirtualMachineBMC are applied via kubectl or GitOps, the controller creates the virtbmc pod and Service, Metal3 sends IPMI lanplus to the Service on port 623, and the pod turns each command into a KubeVirt call to start, stop, reboot or change boot device.
- Rolling in-place rollout: The migration ran on the same physical servers in batches: a first group of hosts was removed from vSphere to bootstrap Kubernetes, and each accepted batch freed more hosts, shrinking vSphere while growing the Kubernetes cluster; phase 2 validated the IPMI lanplus, NodePort and BMH path before pilot migration.
- Scope caveat: The post states that equivalence means the same external management model and core usage, not identical internals, complete IPMI command coverage or feature parity, and advises validating the exact IPMI command set against the KubeVirtBMC IPMI Guide before go-live.
Why it matters
The write-up gives platform teams a concrete, numbers-backed pattern for exiting vSphere without rewriting test automation that depends on IPMI-driven bare-metal provisioning, which is a common blocker in lab and CI environments. It also shows KubeVirtBMC and Forklift, two projects outside the CNCF, filling gaps in a CNCF-centric stack, and it moves BMC creation, auditing and lifecycle management into Kubernetes RBAC and GitOps history instead of host-level scripts. For operators evaluating KubeVirt as a VMware replacement, the main lesson is that out-of-band management must be planned alongside compute, storage and networking migration.
Original reference: www.cncf.io →