A major engineering organization has completed the migration of a test lab comprising approximately 2,500 virtual machines and 300 hosts distributed across 10 working groups, moving from a vSphere environment to the Cloud Native Computing Foundation (CNCF) project ecosystem. This shift came after vSphere licensing transitioned to a subscription model, prompting the organization to adopt Kubernetes as the core platform, KubeVirt for running virtual machines, and Metal3 for provisioning and managing them via the IPMI protocol, alongside cert-manager and Helm for certificate management and deployment.
The Out-of-Band Management Challenge and KubeVirtBMC Integration
The challenge was not limited to migrating compute, storage, and networking, but extended to the out-of-band management path. In the previous environment, the VirtualBMC tool translated IPMI commands into operations within vCenter, while Metal3 managed virtual machines via BareMetalHost resources. Upon moving to KubeVirt, an alternative had to be found that maintained the exact same communication mechanism without modifying backend tests. This is where the open-source KubeVirtBMC tool played its role, providing each virtual machine with a virtual BMC, in cooperation with the Forklift tool which handled the migration of machines and hard disks.
Migration Plan and Gradual Execution Method
The migration was carried out gradually on the existing physical servers; an initial pool of servers was withdrawn from the vSphere environment to establish the Kubernetes infrastructure, followed by subsequent batches sequentially. Implementation steps included deploying the foundational KubeVirt layer, installing KubeVirtBMC via Helm, and creating VirtualMachineBMC resources for each virtual machine to link them to IPMI endpoints via the UDP protocol on port 623.
The team also relied on the Forklift tool to migrate machines and hard disks using the cold migration option to avoid test interruptions, while preserving machine names and MAC addresses to ensure a smooth transition without affecting the automated test environment.
What Changes Practically?
This migration led to radical changes in how the lab is managed:
- Test Environment Stability: The test clusters experienced no changes in how they interacted with the devices, as they continued to deal with BareMetalHost records using the same commands.
- Visual Management via Kubernetes: BMCs transformed into declarative resources inside Kubernetes instead of relying on host-level scripts.
- Better Credential Security: Credentials for each virtual machine were moved to be stored in Kubernetes Secrets, with the ability to rotate them regularly and adjust access permissions via RBAC.
This experiment proved the feasibility of turning complex infrastructure migrations into a comprehensive administrative upgrade, enabling large enterprises to break free from proprietary licensing constraints and manage heavy workloads on fully open-source platforms.