OpsCanary
kubernetesstoragePractitioner

Rebuilding a 2,500-VM Lab on KubeVirt: The KubeVirtBMC Approach

5 min read CNCF BlogNov 30, 2026Reviewed for accuracy
Share
Practitioner — Hands-on experience recommended

Migrating a large-scale virtual machine environment from vSphere to KubeVirt is not just a technical challenge; it’s a strategic move towards a more flexible and cloud-native infrastructure. KubeVirtBMC plays a crucial role in this transition by allowing you to recreate a virtual BMC for each VM at the destination. This enables a batch-by-batch cutover, integrating BMC creation, auditing, and lifecycle management into the Kubernetes resource model.

The migration process begins with Forklift, which handles the movement of VMs and disks from vSphere to KubeVirt. Once the VMs are in place, KubeVirtBMC takes over, translating IPMI commands into KubeVirt API operations. This ensures that your existing management workflows can continue seamlessly. You'll need Kubernetes v1.32 or later, KubeVirt v1.9.0, and a few other prerequisites like cert-manager and a CSI driver for VM disks. The setup involves creating the necessary operators and resources, which can be done with straightforward bash commands and YAML configurations.

In production, be aware of the limitations of KubeVirtBMC. While it aims to replicate the functionality of traditional BMCs, it may not cover every IPMI command or feature. Validate the exact command set your tooling uses before going live. Additionally, ensure that you have network reachability from Ironic to each BMC NodePort, as this is critical for operation. The KubeVirtBMC Quick Start is tested with specific versions, so keep your environment aligned with those requirements to avoid compatibility issues.

Key takeaways

  • →Utilize Forklift for seamless VM and disk migration from vSphere to KubeVirt.
  • →Implement KubeVirtBMC to manage BMC creation and lifecycle within Kubernetes.
  • →Ensure Kubernetes is version 1.32 or later for compatibility with KubeVirtBMC.
  • →Validate the IPMI command set your tooling uses before going live to avoid issues.
  • →Maintain network reachability from Ironic to each BMC NodePort for proper operation.

Why it matters

This migration strategy allows organizations to leverage Kubernetes' scalability and flexibility while maintaining existing VM management workflows. It significantly reduces the complexity of managing large VM environments.

Code examples

Bash
# KubeVirt
export KUBEVIRT_VERSION=$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-cr.yaml
kubectl -n kubevirt wait kv kubevirt --for condition=Available --timeout=10m
Bash
helm upgrade --install cert-manager oci://quay.io/jetstack/charts/cert-manager \
    --namespace=cert-manager --create-namespace \
    --set=crds.enabled=true
YAML
1apiVersion: bmc.kubevirt.io/v1beta1
2kind: VirtualMachineBMC
3metadata:
4  name: testvm-bmc
5  namespace: default
6spec:
7  virtualMachineRef:
8    name: testvm
9  authSecretRef:
10    name: testvm-bmc-secret
11  ipmi:
12    enabled: true

When NOT to use this

The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.

Want the complete reference?

Read official docs

Test what you just learned

Quiz questions written from this article

Take the quiz →
Linux FoundationSponsor

Industry-standard certifications built by the people behind Linux and Kubernetes. Earn the CKA — the gold standard Kubernetes administrator cert. OpsCanary readers get 30% off year-round with code OPSCANARY3.

Get CKA certified →

Get the daily digest

One email. 5 articles. Every morning.

No spam. Unsubscribe anytime.