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

KubeVirtBMC Migration: Moving 2,500 Test VMs to KubeVirt Without Changing IPMI Workflows

AI SummaryPowered by AI

The team replaced a vSphere‑based test lab of roughly 2,500 VMs with a Kubernetes cluster running KubeVirt, Metal3, and KubeVirtBMC, using Forklift to migrate workloads while preserving IPMI‑based management. Practitioners gain a fully declarative, GitOps‑friendly stack that keeps existing out‑of‑band tooling intact and shifts BMC control into Kubernetes, simplifying operations and security handling.

A large engineering group retired a 10‑cluster vSphere environment that hosted about 300 physical servers and 2,500 test VMs, and rebuilt the same capacity on a single Kubernetes cluster using KubeVirt for the VMs, Metal3 (Ironic) for IPMI provisioning, and KubeVirtBMC to expose virtual BMCs. The migration preserved the existing IPMI‑lanplus workflow, so test automation that talks to machines over IPMI required no changes.

Why the Change Matters

Consolidating the test lab onto Kubernetes eliminates a separate virtualization stack, reduces host sprawl, and aligns VM workloads with cloud‑native services. For AI engineers, platform engineers, and SREs, the shift means a single control plane for both container and VM workloads, enabling unified observability, scaling, and policy enforcement. Security teams benefit from moving BMC credentials into Kubernetes Secret objects, where RBAC and audit logs can be applied consistently.

Architecture Overview

The target stack consists of five core components:

  • Kubernetes – provides the unified API and control plane.
  • KubeVirt – runs the virtual machines as VirtualMachine resources.
  • Metal3 (Ironic) – continues to manage BareMetalHost (BMH) objects and issues IPMI commands.
  • KubeVirtBMC – a Kubernetes operator that creates a pod and a NodePort Service per VM, exposing an IPMI lanplus endpoint.
  • Forklift – migrates VM definitions and disks from vSphere into the destination cluster, using CDI to import disks as DataVolume objects.

Certificates for the BMC webhook are provisioned by cert-manager and the whole stack is installed with Helm. The BMC address for each VM remains the same; only the backend implementation changes from VirtualBMC to KubeVirtBMC.

Migration Process and Operational Shifts

The migration was performed in‑place, batch‑by‑batch, rather than a single cut‑over. The high‑level steps were:

  1. Free initial capacity by removing a subset of physical hosts from vSphere and bootstrapping the Kubernetes control plane on them.
  2. Use Forklift to create a VirtualMachine resource and import the VM’s disks as DataVolume objects.
  3. Apply a Secret containing the BMC credentials and a declarative VirtualMachineBMC resource for the new VM.
  4. The KubeVirtBMC controller spawns a pod and Service that listen on port 623 for IPMI lanplus traffic.
  5. Metal3 continues to send IPMI commands to the same address; the virtual BMC translates them into KubeVirt API calls to power on, power off, reboot, or change boot devices.
  6. Repeat the batch process until all hosts are migrated, then decommission the remaining vSphere clusters.

This approach kept the external management model unchanged, allowing existing test pipelines to run without modification. Operationally, BMC lifecycle moved from an imperative CLI process to a declarative resource model, enabling GitOps workflows and automated auditing via the Kubernetes API.

Security and Management Implications

Storing BMC credentials in Kubernetes Secret objects introduces a single source of truth that can be protected with standard RBAC policies. The BMC pod runs in its own namespace, and access to the VirtualMachineBMC resource is governed by the Kubernetes API server, providing audit trails for creation, updates, and deletions. However, the source notes that command coverage may differ between VirtualBMC and KubeVirtBMC; practitioners should validate that their specific IPMI commands are supported before production cut‑over.

Related CloudNinjas coverage: hands-on guides.

What This Means For Practitioners

Adopting the KubeVirtBMC migration pattern lets teams consolidate VM‑based test labs onto Kubernetes without rewriting IPMI‑driven automation. The shift to declarative BMC resources simplifies lifecycle management, aligns security controls with the rest of the cluster, and supports incremental rollouts. Before starting, verify command compatibility, configure appropriate RBAC for BMC Secrets, and plan a batch migration that frees capacity gradually to avoid service disruption.

Originally published atCNCF