Live
Consolidating State Health Agency Workflows with Gemini Agent SkillsAI agent database load: patterns, pitfalls, and ScyllaDB mitigationsAI agents for healthcare: deployment patterns and operational impact for cloud and DevOps teamsDesigning an Agent‑Ready Platform: Webflow’s Blueprint for Safe AI‑Generated CodeSelf‑service scaling to 5,000 GKE nodes in under five minutesStable Kubernetes Foundations Power AI Agent Workloads on Amazon EKSObject‑Level RBAC in Basin Catalog: Granular Permissions for EngineersEvidence‑Driven Trustworthy AI Models: What Engineers Need to Adjust TodayConsolidating State Health Agency Workflows with Gemini Agent SkillsAI agent database load: patterns, pitfalls, and ScyllaDB mitigationsAI agents for healthcare: deployment patterns and operational impact for cloud and DevOps teamsDesigning an Agent‑Ready Platform: Webflow’s Blueprint for Safe AI‑Generated CodeSelf‑service scaling to 5,000 GKE nodes in under five minutesStable Kubernetes Foundations Power AI Agent Workloads on Amazon EKSObject‑Level RBAC in Basin Catalog: Granular Permissions for EngineersEvidence‑Driven Trustworthy AI Models: What Engineers Need to Adjust Today

Migrating a 2,500‑VM Test Lab from vSphere to KubeVirt with KubeVirtBMC

AI SummaryPowered by AI

A large engineering group replaced its vSphere‑based test environment with a Kubernetes cluster running KubeVirt, Metal3, and KubeVirtBMC, moving 2,500 VMs in place. The shift preserves existing IPMI‑based test workflows while exposing new declarative management and operational benefits for engineers.

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 → KubeVirt running on Kubernetes.
  • Out‑of‑band management: VirtualBMC (vSphere) → KubeVirtBMC operator.
  • Provisioning engine: Metal3 (Ironic) continues to manage hosts over IPMI, but now points at the virtual BMC endpoints.
  • Migration tool: No native vSphere method → Forklift moves VM definitions and disks.
  • Supporting services: cert-manager issues TLS for the BMC webhook; Helm installs 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:

  1. Kubernetes provides the unified control plane.
  2. KubeVirt hosts the virtual machines.
  3. CDI and CSI handle disk import; Forklift creates VirtualMachine objects and CDI imports the source VMDKs as DataVolumes.
  4. KubeVirtBMC runs a pod and a NodePort Service per VM, exposing IPMI lanplus on port 623.
  5. Metal3 (Ironic) continues to manage BareMetalHost resources, 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.

Originally published atCNCF