
vSphere to KubeVirt: How One Team Moved 2,500 Test VMs
Cloud Platform EngineeringAn engineering organization running about 2,500 test VMs on roughly 300 vSphere hosts moved all of them to KubeVirt without changing a single test, according to a CNCF case study. For platform teams weighing a vSphere exit after the move to subscription licensing, the lesson is that moving disks is the easy part; the out-of-band management your CI depends on is what breaks.
The Framework
The unnamed adopter ran about 10 team-owned vSphere clusters. Its deployment and end-to-end tests treated VMs like physical servers, driving them over IPMI through VirtualBMC, with Metal3 (Ironic) provisioning them. Moving only the VMs would have left every BareMetalHost without a working BMC endpoint.
The fix was to split the job. Forklift moves VMs and disks; KubeVirtBMC, a Kubernetes operator, recreates a virtual BMC for each VM, exposing IPMI and Redfish endpoints and translating each request into KubeVirt API calls. The rest of the stack is CNCF: Kubernetes, KubeVirt, Metal3, cert-manager and Helm.
Step 1: Free Nodes, Then Bootstrap
The rollout was in place and rolling, with no big-bang cutover. The team shrank vSphere to free nodes, bootstrapped Kubernetes, and installed KubeVirt, CDI, Forklift and KubeVirtBMC, validating with test VMs before a pilot. Prerequisites in the post include Kubernetes v1.32 or later with hardware virtualization on workers, a CSI driver, and UDP reachability from Ironic to each BMC port. The KubeVirtBMC Quick Start is tested with KubeVirt v1.9.0.
Step 2: Migrate in Batches With Forklift
Per cluster and batch, the team registered vSphere and destination providers, mapped networks and storage, listed VMs in a Plan and ran a Migration. Its practices: cold migration for test VMs, a VDDK image to speed disk transfer, keeping VM names and MAC addresses so the test harness saw no change, and never deleting source VMs mid-batch, since powered-off sources are the rollback path.
Step 3: Recreate Each BMC as a Kubernetes Resource
For each VM, the team applied a credentials Secret and a VirtualMachineBMC resource. The controller creates a pod and Service listening on 623/UDP for IPMI and 80/TCP for Redfish. The existing BareMetalHost is then pointed at the new address, and nothing else changes. Two gotchas from the post: IPMI is disabled by default, and a one-shot boot override only applies when the VM instance is recreated.
Step 4: Lock Down the Endpoints
Because Ironic ran outside the cluster, the adopter used NodePort Services, then limited access with a NetworkPolicy admitting only Ironic, one Secret per VM with scheduled rotation, and RBAC on who can read or create BMC resources. The authors’ advice: “Treat every BMC endpoint and credential with the same care as a physical server’s BMC network.”
Step 5: Accept Each Batch Before Moving On
A batch passed only if Metal3 could drive every migrated VM through power status, off, on, reset and boot-device changes, as it did on vSphere. Failures mostly came from virt-v2v conversion: Linux guests dropping to an emergency shell because the initramfs lacked VirtIO drivers, disks referenced by device name instead of UUID, and Windows guests missing virtio-win drivers.
Where It Doesn’t Apply
The post gives no timings or costs, and the authors warn that “equivalent” doesn’t mean feature parity with VirtualBMC, so validate your exact IPMI command set first. KubeVirtBMC and Forklift are not CNCF projects. For a related VMware-ecosystem shift on the Kubernetes side, see Broadcom’s donation of Velero to the CNCF Sandbox.
The So What
If your CI or bare-metal provisioning talks to VMs over IPMI, inventory those dependencies before scoping a vSphere exit, then pilot one batch end to end, including KubeVirtBMC endpoints and Metal3 acceptance tests, before you commit hosts to Kubernetes.
Source: CNCF Blog
Content created with AI assistance and reviewed for accuracy.
Join the conversation
Stack Insiders is our free community for readers who want to go deeper — share resources, ask questions, and connect with others across every vertical we cover.
Join Stack Insiders →