Cloud Native

A 2,500-VM KubeVirt Migration Exposes the Real Work in Leaving vSphere

A newly documented migration of roughly 2,500 test virtual machines from VMware vSphere to KubeVirt offers a useful correction to the usual virtualization story. The difficult part was not simply making a VM boot under a Kubernetes-managed hypervisor. It was preserving the operational contract around those VMs: the provisioning interfaces, machine identities, power controls, boot-device commands, rollback paths, and acceptance tests that other systems already depended on.

The case study, published by the Cloud Native Computing Foundation on December 3, describes an unnamed engineering organization consolidating about 10 team-owned vSphere clusters, around 300 physical hosts, and approximately 2,500 test VMs. Its destination combined Kubernetes, KubeVirt, Metal3, Forklift, and KubeVirtBMC. The migration is significant because the test environment treated VMs like bare-metal machines. Metal3 and OpenStack Ironic managed them through IPMI-backed BareMetalHost resources, and the test suites expected that behavior to remain intact.

The central lesson is that a credible vSphere exit must migrate interfaces as carefully as workloads. KubeVirt supplied the new virtualization layer, but KubeVirtBMC preserved the machine-management boundary. That separation allowed the organization to move capacity in batches without forcing its deployment and end-to-end test systems to learn a new control model at the same time.

The hidden dependency behind a VM migration

Most migration plans begin with familiar questions: Can the destination import the disks? Does it support the guest operating systems? How will networks and storage map across? How much downtime will each workload tolerate? Those questions matter, but they cover only the workload path.

This lab also had a management path. In the vSphere environment, VirtualBMC translated IPMI requests into vCenter operations. Metal3, using Ironic underneath, represented each test VM as a BareMetalHost and issued familiar commands for power state and boot-device selection. That meant a VM was not merely a disk image and a CPU allocation. To the surrounding automation, it was a machine with an addressable baseboard management controller.

If the team had copied the VM disks and recreated the guests on KubeVirt, every existing BareMetalHost would still have lost its working BMC endpoint. The migration could have looked successful in the virtualization console while failing the systems that actually provisioned and tested the lab.

KubeVirtBMC filled that gap by exposing IPMI and Redfish endpoints for KubeVirt VMs, then translating the requests into KubeVirt API operations. In managed mode, a VirtualMachineBMC custom resource references a VM and a Kubernetes Secret. The controller reconciles that declaration into a per-VM deployment, service, and access policy. Metal3 can continue issuing power and boot commands while the implementation behind the endpoint changes from vCenter to Kubernetes.

That is narrower than complete feature parity, and the distinction matters. The CNCF case study explicitly warns operators to validate the precise IPMI command set their tooling uses. Protocol compatibility is valuable only when it covers the commands in the real runbook.

Why decoupling reduced the cutover risk

The architecture divided the move into two coordinated but independently testable paths. Forklift migrated the VMs and disks from vSphere to KubeVirt. KubeVirtBMC recreated the out-of-band control endpoint for each destination VM. Metal3 kept the existing BareMetalHost model, with only the BMC address and credentials changing.

This separation made a rolling, in-place migration possible. The organization first removed a group of physical servers from vSphere and used them to bootstrap the Kubernetes destination. It then migrated a representative pilot group. After a batch passed guest, workload, network, and management acceptance checks, the freed hosts joined the Kubernetes cluster and supplied capacity for the next batch.

That sequence matters in a lab with finite hardware. A parallel greenfield platform would have required enough spare capacity to run both estates simultaneously. The rolling approach instead converted the existing hardware estate incrementally. Each accepted batch expanded the destination and reduced the source.

It also created a clean rollback boundary. Source VMs remained powered off rather than deleted until acceptance. If a batch failed, operators could restore the previous BMC address and credentials, power the vSphere VM back on, and investigate without unwinding the entire program. The workload move and management-endpoint switch were coupled in the runbook, not fused into one irreversible event.

Compatibility lives in details that inventories miss

The case study exposes several migration risks that a simple VM inventory will not reveal. The team retained VM names and MAC addresses because test harnesses and BareMetalHost records referenced them. It used cold migration for test VMs, accepting downtime in exchange for a full guest conversion and VirtIO driver injection. Network and storage mappings were declared for each Forklift plan, while powered-off source VMs remained the rollback copy.

Guest conversion produced its own edge cases. Customized or encrypted operating systems could defeat automatic detection. Linux guests could reach an emergency shell when their initramfs lacked VirtIO block or SCSI drivers. Device-name assumptions such as /dev/sda could break after conversion, making UUIDs or filesystem labels safer. Windows guests needed the appropriate VirtIO storage drivers, and network interfaces could change names or lack the required driver.

The BMC path had equally specific requirements. KubeVirtBMC disables IPMI by default, so it must be enabled on the custom resource when legacy IPMI clients are required. One-shot boot behavior depends on how the VM is recreated. During a power transition, clients may receive a retryable “Node Busy” response; Ironic handles retries, but homegrown scripts need equivalent behavior. These are not reasons to reject the architecture. They are reminders that a standards-shaped interface still needs workload-specific validation.

A Kubernetes API does not remove the management plane

Moving the BMC lifecycle into Kubernetes improves declarative control, auditability, and integration with GitOps. It does not make the BMC less privileged. A BMC endpoint can power off a VM, alter its boot device, or initiate a re-provisioning flow. The organization therefore had to treat the virtual management plane with the same seriousness as a physical server-management network.

The case study used NodePort services so Ironic could reach each KubeVirtBMC endpoint from outside the cluster. That design places concrete obligations on platform teams:

  • Constrain network reachability. IPMI ports should be reachable only from the provisioning network and authorized Ironic components.
  • Use distinct credentials. A separate Secret per VM limits the blast radius and supports rotation.
  • Apply narrow RBAC. The ability to read BMC credentials or create VirtualMachineBMC resources is effectively machine-control authority.
  • Prefer modern interfaces for new integrations. KubeVirtBMC supports Redfish as well as IPMI, and its documentation recommends Redfish for production-oriented integrations.
  • Test the whole request path. A healthy pod is insufficient; the check must begin at the provisioning system and end with the intended VM state change.

This is a broader cloud-native pattern. Kubernetes can make infrastructure control declarative, but reconciliation does not erase trust boundaries. It relocates them into custom resources, Secrets, service exposure, admission controls, and controller permissions. Teams gain a consistent API and audit trail only if they model those permissions deliberately.

What platform teams should copy from the rollout

The most reusable part of this migration is not its exact component list. It is the acceptance model. A platform team considering KubeVirt should inventory every external contract attached to its VMs before choosing migration tooling. That inventory should include power controls, boot overrides, provisioning records, identity assumptions, monitoring targets, backup hooks, storage semantics, network addresses, and automation retry behavior.

A representative pilot should then prove those contracts with commands taken from production automation. In this case, acceptance included IPMI power status, power off, power on, reset, PXE boot, persistent disk boot, and boot-parameter reads. Operators also checked that every BareMetalHost reported a healthy operational state and that end-to-end deployment tests passed.

For a similar program, the batch gate should require at least:

  • the guest boots with its expected storage and network drivers;
  • names, MAC addresses, and other required identities remain stable;
  • the provisioning controller can reach the new management endpoint;
  • every power and boot command used by automation behaves correctly;
  • monitoring observes both the VM and the management path;
  • the source VM remains recoverable until the retention window closes;
  • the next batch does not begin until workload owners sign off.

Teams should also distinguish “can migrate” from “should migrate automatically.” Standard guests with supported operating systems and predictable disk layouts belong in repeatable batches. Encrypted disks, heavily customized kernels, unsupported operating systems, or unusual device dependencies may need separate plans. Isolating exceptions keeps the factory flow from being designed around its rarest cases.

What this case says about KubeVirt adoption

KubeVirt is often described as a way to run VMs alongside containers on Kubernetes. The 2,500-VM lab shows the more consequential proposition: organizations can bring long-lived machine workflows under Kubernetes without rewriting every upstream consumer immediately. The target platform can absorb an existing operational interface, then modernize it on a different schedule.

That does not make KubeVirt a drop-in replacement for every vSphere environment. The reported adopter was a test lab, where cold migration and controlled downtime were acceptable. Production estates may require stricter availability objectives, deeper backup integration, live-migration validation, vendor support, or storage capabilities not demonstrated here. The organization also remained unnamed, so readers have limited visibility into its specific hardware, guest mix, failure rates, staffing, and migration duration.

Even with those limits, the scale makes the architectural lesson hard to dismiss. The organization moved about 2,500 VMs on roughly 300 hosts without demanding that its provisioning and test systems abandon IPMI or BareMetalHost resources. It achieved that by treating compatibility as a first-class workstream, not a cleanup task after VM conversion.

The next migration question is about contracts

Cloud-native virtualization discussions often center on the destination control plane. This case shifts attention to the edges: which systems call into the platform, which behaviors they assume, and which identities they cannot tolerate changing. Those edges determine whether a migration is merely technically possible or operationally adoptable.

For organizations evaluating a vSphere exit, the first workshop should therefore map contracts rather than products. Once the contracts are explicit, teams can decide which ones KubeVirt should preserve, which can be adapted, and which should be retired. KubeVirtBMC was powerful here because it preserved a critical interface long enough for the platform underneath it to change safely.

The result is not just a story about running VMs on Kubernetes. It is evidence that infrastructure migrations become manageable when the workload, management, and rollback paths are separated, tested, and advanced one batch at a time.

Sources