Container Virtualization DevOps

KubeVirt migration moves 2,500 test VMs while preserving IPMI workflows

An unnamed large engineering organization has moved a test lab of about 2,500 virtual machines from roughly 10 team-owned vSphere clusters to KubeVirt on Kubernetes. The migration covered approximately 300 physical hosts and proceeded in batches on the same hardware. Metal3 continued provisioning and managing the VMs over IPMI, allowing existing deployment and end-to-end tests to keep using their established management path.

The project addressed a migration detail that can be missed when focusing on VM disks and workloads: retaining the virtual baseboard management controller (BMC) endpoints used by provisioning systems. Before the move, VirtualBMC translated IPMI commands into vCenter operations. At the destination, KubeVirtBMC provides IPMI and Redfish endpoints for KubeVirt virtual machines and translates requests into Kubernetes and KubeVirt API operations.

Metal3, through Ironic and its BareMetalHost (BMH) resources, remained the provisioning layer. Rather than redesigning test workflows, the team replaced the BMC implementation behind each VM and updated the relevant BMC address and credentials in the existing BMH. The adopter used IPMI lanplus; Redfish is also available through KubeVirtBMC.

Workload migration and BMC management were separate

Forklift handled VM and disk migration from vSphere to KubeVirt. KubeVirtBMC separately supplied a virtual BMC for each destination VM. That separation let the team move workloads in batches while making each BMC a declarative Kubernetes resource, rather than relying on a long-running VirtualBMC process and host-level scripts.

For each VM, a VirtualMachineBMC resource references a Kubernetes Secret containing credentials. The KubeVirtBMC operator creates a pod and Service to handle management requests. In the described deployment, the BMC Service was exposed through a NodePort so Ironic could reach it; IPMI traffic uses UDP port 623. The Service then passes commands to the virtual machine through KubeVirt APIs.

The destination platform also used Kubernetes, KubeVirt, the Containerized Data Importer (CDI), a CSI storage driver, cert-manager and Helm. Kubernetes provided the control plane, KubeVirt ran the VMs, and CDI and CSI supported the disk path. cert-manager issued webhook certificates, while Helm installed cert-manager and KubeVirtBMC. The stated prerequisites included Kubernetes v1.32 or later and hardware virtualization on worker nodes. The KubeVirtBMC Quick Start was tested with KubeVirt v1.9.0.

Rolling batches supported validation and rollback

The rollout began by freeing an initial group of physical servers from vSphere. Those machines were used to bootstrap Kubernetes and install the destination components. The team then piloted representative VMs, followed by batch migrations. Once a batch passed workload and BMH-management checks, its released hosts could join the Kubernetes environment, providing capacity for subsequent work.

Forklift plans mapped source networks and datastores to destination networks and StorageClasses. The team worked through one team-owned vSphere cluster at a time and used cold migration for the test VMs. According to the migration account, cold migration allowed guest conversion and VirtIO driver injection; a VDDK image on the vSphere provider was used to speed disk transfer for large batches. VM names and MAC addresses were retained because tests and BMH records depended on them.

Source VMs were kept powered off, not deleted, until each batch was accepted. If a rollback was needed, the source VM could be powered on and the BMH restored to its original VirtualBMC address and credentials. This approach kept acceptance and rollback decisions at batch level rather than requiring a single cutover of the full lab.

Guest compatibility and BMC access needed attention

Migration troubleshooting included guest operating-system detection and storage drivers. The account identifies unsupported or customized operating systems and encrypted disks as possible reasons virt-v2v may fail to detect an OS. Linux guests may need VirtIO drivers included in the initramfs, while disk references based on device names such as /dev/sda may need to be changed to UUIDs or labels. Windows guests also need an available VirtIO storage driver to boot successfully.

Acceptance checks covered BMC power status, power off and on, reset, and boot-device commands. The team also checked that each BMH reported healthy operational status without BMC errors, then ran end-to-end deployment tests. The migration guidance cautions that IPMI command coverage is not necessarily identical across implementations, so organizations should validate the specific commands their tooling uses before production cutover.

Because BMC access can power off or re-image a VM, KubeVirtBMC endpoints and credentials require tight controls. The deployment guidance calls for limiting BMC network access to Ironic, using a separate Secret per VM, and controlling access to VirtualMachineBMC resources and Secrets with Kubernetes RBAC.

The reported outcome was a move of about 2,500 test VMs onto KubeVirt without changing the test suites’ IPMI interaction model. BMC creation, auditing and lifecycle management shifted into Kubernetes resources and workflows, while Forklift and KubeVirtBMC handled distinct parts of the transition.