OpsCanary
kubernetesstoragePractitioner

Rebuilding a 2,500-VM Lab with KubeVirtBMC: Keeping IPMI Alive

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

In the world of virtualization, maintaining operational continuity during migrations is critical. When rebuilding a 2,500-VM test lab on KubeVirt, the challenge lies in preserving IPMI provisioning. KubeVirtBMC addresses this by acting as a bridge, exposing IPMI and Redfish endpoints for KubeVirt VMs, effectively translating requests into KubeVirt API operations. This means you can manage your VMs using familiar IPMI commands while leveraging the power of Kubernetes.

The migration process utilizes Forklift to move VMs and disks from an existing vSphere environment. KubeVirtBMC then recreates a virtual BMC for each VM at the destination. This setup allows for a batch-by-batch cutover, integrating BMC creation, auditing, and lifecycle management into the declarative Kubernetes resource model. You can deploy KubeVirt and CDI with straightforward commands, ensuring you have the necessary components in place. For example, using kubectl commands, you can set up KubeVirt and the Containerized Data Importer (CDI) quickly. Additionally, the configuration of a VirtualMachineBMC resource is simple and follows a clear YAML structure, making it easy to manage.

In production, you need to be aware of the prerequisites: Kubernetes v1.32 or later, hardware virtualization on worker nodes, and a properly configured cert-manager for webhook certificates. Also, ensure network reachability from Ironic to each BMC NodePort. While KubeVirtBMC offers a robust solution, validate the IPMI command set your tooling uses before going live, as not all commands may be supported. The KubeVirtBMC IPMI Guide outlines the supported commands, which is essential for a smooth transition.

Key takeaways

  • →Utilize KubeVirtBMC to expose IPMI and Redfish endpoints for KubeVirt VMs.
  • →Migrate VMs and disks using Forklift for a seamless transition from vSphere.
  • →Deploy KubeVirt and CDI with straightforward `kubectl` commands for quick setup.
  • →Configure VirtualMachineBMC resources using a simple YAML structure for easy management.
  • →Validate the exact IPMI command set your tooling uses before go-live.

Why it matters

In production environments, maintaining IPMI provisioning during migrations ensures minimal downtime and operational continuity. KubeVirtBMC allows teams to leverage Kubernetes while keeping familiar management practices.

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
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
Bash
ipmitool -I lanplus -H testvm-virtbmc.default.svc.cluster.local -p 623 \
    -U <bmc-user> -P <bmc-password> power status
# Chassis Power is on

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.