A multi‑team engineering organization retired ten vSphere clusters—about 300 hosts and 2,500 test VMs—and rebuilt the same lab on a single Kubernetes cluster using KubeVirt for the VMs, Metal3 (Ironic) for IPMI‑based provisioning, and KubeVirtBMC to provide virtual BMCs. The change keeps the existing IPMI‑lanplus test harness intact, but moves the control plane from vCenter to the Kubernetes API.
What Changed: Platform and Management Stack
The underlying compute platform switched from a proprietary hypervisor to an open‑source stack:
- Virtualization layer: vSphere →
KubeVirtrunning on Kubernetes. - Out‑of‑band management: VirtualBMC (vSphere) →
KubeVirtBMCoperator. - Provisioning engine: Metal3 (Ironic) continues to manage hosts over IPMI, but now points at the virtual BMC endpoints.
- Migration tool: No native vSphere method →
Forkliftmoves VM definitions and disks. - Supporting services:
cert-managerissues TLS for the BMC webhook;Helminstalls the charts.
Creation of a BMC changed from an imperative CLI call on a VirtualBMC host to a declarative VirtualMachineBMC custom resource, stored in a Kubernetes Secret for credentials.
Why It Matters for Engineers
For AI, cloud, DevOps, and security practitioners the migration demonstrates a concrete path to replace a licensed hypervisor with a fully open stack without rewriting test automation. The IPMI interface remains unchanged, so existing scripts, CI pipelines, and security scanners that rely on BMC commands continue to work. At the same time, the move introduces Kubernetes‑native audit, RBAC, and GitOps histories for BMC lifecycle, which can simplify compliance tracking and rollback.
Architecture and Implementation Details
The target architecture consists of five logical components:
- Kubernetes provides the unified control plane.
- KubeVirt hosts the virtual machines.
- CDI and CSI handle disk import;
ForkliftcreatesVirtualMachineobjects and CDI imports the source VMDKs asDataVolumes. - KubeVirtBMC runs a pod and a NodePort
Serviceper VM, exposing IPMI lanplus on port 623. - Metal3 (Ironic) continues to manage
BareMetalHostresources, now pointing at the virtual BMC address.
During a batch migration the sequence is:
# 1. Forklift copies VM definition and disks forklift migrate vm-name # 2. CDI creates DataVolume for each disk # 3. Apply Secret with BMC credentials kubectl apply -f bmc-secret.yaml # 4. Apply VirtualMachineBMC resource kubectl apply -f vm-bmc.yaml # 5. KubeVirtBMC operator creates pod+service
The operator translates incoming IPMI commands into KubeVirt API calls, allowing Metal3 to power on/off, reboot, or change boot devices exactly as it did with physical hardware.
Operational and Security Implications
Moving BMCs into Kubernetes changes the audit surface: logs are now emitted by the KubeVirtBMC controller and stored in the cluster’s audit log, subject to existing RBAC policies. Credential storage shifts from VirtualBMC configuration files to Kubernetes Secrets, which can be encrypted at rest and version‑controlled via GitOps. The declarative model also means BMC lifecycle events are reproducible and can be rolled back by reverting the VirtualMachineBMC manifest.
Because the IPMI protocol remains unchanged, any limitations of the original command set still apply; practitioners should verify that their test suites only use commands listed in the KubeVirtBMC IPMI guide. The operator does not guarantee full Redfish parity, so features that rely on Redfish may need additional validation.
Related CloudNinjas coverage: hands-on guides.
What This Means For Practitioners
Adopting KubeVirtBMC enables a drop‑in replacement for VirtualBMC, preserving existing IPMI‑driven workflows while gaining Kubernetes‑native management, audit, and secret handling. Teams should evaluate their BMC command usage, plan batch migrations with Forklift, and integrate the VirtualMachineBMC resources into their GitOps pipelines to maintain consistent state and simplify rollback. Monitoring the KubeVirtBMC pods and ensuring TLS certificates from cert-manager are renewed are the primary operational tasks after cutover.
