Cloud Computing (AWS Focus)

Migrating 2,500 Virtual Machines to Kubernetes: A Blueprint for Infrastructure Modernization

The landscape of enterprise infrastructure is undergoing a seismic shift as engineering organizations move away from legacy virtualization toward cloud-native stacks. A prominent, unnamed engineering organization recently completed a massive, high-stakes migration of its test lab—consisting of approximately 2,500 virtual machines and 300 physical hosts—from vSphere to a KubeVirt-based Kubernetes environment. This transition, finalized on November 30, 2026, serves as a masterclass in modernizing legacy workflows without disrupting existing automated testing pipelines. By leveraging CNCF-graduated projects such as Kubernetes, KubeVirt, and Metal3, alongside specialized tools like KubeVirtBMC and Forklift, the team achieved a seamless transition that preserved their "bare-metal-like" management style for virtualized workloads.

The Catalyst for Change: Licensing and Agility

For years, the organization relied on a standard industry pattern: vSphere clusters managed via VirtualBMC, which allowed their continuous integration (CI) systems to interact with test VMs as if they were physical hardware. This meant that automated tests could issue standard IPMI commands to power-cycle, reset, or change the boot order of a VM, facilitating complex end-to-end testing scenarios.

However, the shift in vSphere’s licensing toward a restrictive subscription-only model necessitated a strategic pivot. Faced with escalating costs and the desire for a more flexible, open-source-driven infrastructure, the organization initiated a search for a replacement platform that could match their existing operational model. The primary constraint was non-negotiable: they could not afford to re-engineer their extensive test suites, which were deeply coupled with IPMI-based management. The solution required a platform that could treat virtualized machines as if they were bare-metal servers, bridging the gap between legacy automation and modern container orchestration.

The Technical Strategy: Decoupling Workloads from Management

The migration team faced a dual challenge. First, they had to move the compute, storage, and networking of 2,500 VMs. Second, they had to maintain the out-of-band management interface that their test automation tools relied upon. In the legacy environment, VirtualBMC acted as the translator, converting IPMI commands into vCenter API operations. To replace this, the team deployed KubeVirtBMC.

KubeVirtBMC is a Kubernetes operator designed to expose IPMI and Redfish endpoints for KubeVirt VMs. By deploying this operator, the team was able to provide each migrated VM with a dedicated virtual BMC endpoint. This effectively decoupled the migration process: Forklift handled the heavy lifting of moving VM disks and configuration, while KubeVirtBMC ensured that the management layer remained transparent to the upstream automation software.

Leaving vSphere behind: Rebuilding a 2,500-VM test lab on KubeVirt with KubeVirtBMC

The architecture was structured into five distinct pillars:

  1. Kubernetes: The unified control plane.
  2. KubeVirt: The virtualization layer.
  3. CDI (Containerized Data Importer): The conduit for storage migration.
  4. Forklift: The migration engine.
  5. KubeVirtBMC: The IPMI/Redfish bridge.

Chronology of the Rolling Migration

Rather than opting for a "big bang" migration, which poses significant risk to production-grade test labs, the team executed a phased, in-place migration. The process followed a rigorous five-phase timeline:

  • Phase 1: Initial Source Shrinkage. The team identified an initial set of physical hosts within their vSphere clusters. By decommissioning these nodes, they created the necessary "empty" capacity required to bootstrap the first Kubernetes cluster.
  • Phase 2: Target Bootstrap. On these newly freed nodes, the team deployed the Kubernetes stack, including KubeVirt, CDI, and the necessary networking infrastructure.
  • Phase 3: Pilot Migration. A small, representative set of test VMs was selected to validate the migration pipeline, ensuring that drivers, networking, and the KubeVirtBMC endpoints were functioning as expected.
  • Phase 4: Rolling Migration. With the pilot validated, the organization migrated VMs in batches. As each batch was successfully migrated and verified, additional hosts were removed from vSphere and integrated into the Kubernetes cluster. This "rolling" approach ensured that the organization never suffered a total loss of testing capacity.
  • Phase 5: Final Decommissioning. After all workloads were transferred and the test results were verified, the remaining vSphere infrastructure was powered down.

Data Migration and the Role of Forklift

Forklift played a critical role in the transition, utilizing the virt-v2v toolset to handle the complex task of VM conversion. Converting a VM from a proprietary hypervisor to KubeVirt is rarely a "copy-paste" operation. Issues frequently arise regarding guest operating system detection, VirtIO driver injection, and boot configuration.

To address these hurdles, the team standardized their approach. For Linux-based guests, they ensured that initramfs images were rebuilt to include necessary VirtIO drivers (block, SCSI, network, and PCI) before migration. For Windows-based VMs, they ensured that VirtIO drivers were pre-installed or made available during the conversion process. This proactive preparation minimized the failure rate, ensuring that the migration was repeatable and auditable through Kubernetes resources.

Implications and Industry Impact

The success of this migration demonstrates a growing trend: the commoditization of infrastructure management through declarative APIs. By transforming BMCs from imperative, host-level processes into declarative Kubernetes resources (VirtualMachineBMC), the organization gained significantly improved auditability and lifecycle management. Every BMC is now managed via GitOps, with credentials stored as Kubernetes secrets and RBAC policies restricting access.

The implications for the broader industry are profound. For years, organizations have been "locked in" to proprietary hypervisors largely due to the complexity of re-platforming their management and automation layers. This project proves that when the management interface—in this case, IPMI—is preserved through software-defined bridges, the underlying infrastructure can be replaced without necessitating a rewrite of higher-level application logic.

Leaving vSphere behind: Rebuilding a 2,500-VM test lab on KubeVirt with KubeVirtBMC

Expert Analysis of the Shift

Industry analysts observing this trend suggest that this is a tipping point for the KubeVirt ecosystem. By validating that KubeVirt can reliably run 2,500 VMs with the same operational constraints as bare metal, the project has effectively removed one of the last major barriers to entry for large-scale enterprise adoption of cloud-native virtualization.

"The ability to treat virtual machines as first-class citizens in a Kubernetes environment while maintaining legacy management protocols is the missing link that many organizations have been waiting for," noted an engineer familiar with the CNCF ecosystem. "It allows teams to modernize their infrastructure at their own pace, batch-by-batch, without sacrificing the reliability of their existing CI/CD pipelines."

Conclusion: A Blueprint for the Future

The migration of 2,500 VMs serves as a repeatable template for any organization looking to move away from legacy virtualization. The core lesson is that successful migrations are not just about moving virtual disks; they are about maintaining the integrity of the entire operational ecosystem. By using the KubeVirtBMC and Forklift combination, the organization was able to turn a potential infrastructure crisis—the end of a proprietary license—into a strategic opportunity to consolidate their stack onto Kubernetes.

As of late 2026, the organization reports that their test labs are more stable, cost-efficient, and easier to manage than they were under the previous proprietary model. With the migration complete, the organization has shifted its focus to further automating its testing infrastructure, now fully unencumbered by the limitations of their previous hypervisor. For other organizations still reliant on VirtualBMC or legacy vSphere environments, this project offers a clear, proven, and low-risk path toward a cloud-native future. The tools are open source, the patterns are documented, and the proof of scale is now firmly established in real-world production environments.

Related Articles

Back to top button