Rebuilding a 2,500-VM Lab with KubeVirtBMC: Keeping IPMI Alive
In the world of virtualization, maintaining operational continuity during migrations is critical. When rebuilding a 2,500-VM test lab on KubeVirt, the challenge lies in preserving IPMI provisioning. KubeVirtBMC addresses this by acting as a bridge, exposing IPMI and Redfish endpoints for KubeVirt VMs, effectively translating requests into KubeVirt API operations. This means you can manage your VMs using familiar IPMI commands while leveraging the power of Kubernetes.
The migration process utilizes Forklift to move VMs and disks from an existing vSphere environment. KubeVirtBMC then recreates a virtual BMC for each VM at the destination. This setup allows for a batch-by-batch cutover, integrating BMC creation, auditing, and lifecycle management into the declarative Kubernetes resource model. You can deploy KubeVirt and CDI with straightforward commands, ensuring you have the necessary components in place. For example, using kubectl commands, you can set up KubeVirt and the Containerized Data Importer (CDI) quickly. Additionally, the configuration of a VirtualMachineBMC resource is simple and follows a clear YAML structure, making it easy to manage.
In production, you need to be aware of the prerequisites: Kubernetes v1.32 or later, hardware virtualization on worker nodes, and a properly configured cert-manager for webhook certificates. Also, ensure network reachability from Ironic to each BMC NodePort. While KubeVirtBMC offers a robust solution, validate the IPMI command set your tooling uses before going live, as not all commands may be supported. The KubeVirtBMC IPMI Guide outlines the supported commands, which is essential for a smooth transition.
Key takeaways
- →Utilize KubeVirtBMC to expose IPMI and Redfish endpoints for KubeVirt VMs.
- →Migrate VMs and disks using Forklift for a seamless transition from vSphere.
- →Deploy KubeVirt and CDI with straightforward `kubectl` commands for quick setup.
- →Configure VirtualMachineBMC resources using a simple YAML structure for easy management.
- →Validate the exact IPMI command set your tooling uses before go-live.
Why it matters
In production environments, maintaining IPMI provisioning during migrations ensures minimal downtime and operational continuity. KubeVirtBMC allows teams to leverage Kubernetes while keeping familiar management practices.
Code examples
# KubeVirt
export KUBEVIRT_VERSION=$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-cr.yaml
kubectl -n kubevirt wait kv kubevirt --for condition=Available --timeout=10m1apiVersion: bmc.kubevirt.io/v1beta1
2kind: VirtualMachineBMC
3metadata:
4 name: testvm-bmc
5 namespace: default
6spec:
7 virtualMachineRef:
8 name: testvm
9 authSecretRef:
10 name: testvm-bmc-secret
11 ipmi:
12 enabled: trueipmitool -I lanplus -H testvm-virtbmc.default.svc.cluster.local -p 623 \
-U <bmc-user> -P <bmc-password> power status
# Chassis Power is onWhen NOT to use this
The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.
Want the complete reference?
Read official docsIndustry-standard certifications built by the people behind Linux and Kubernetes. Earn the CKA — the gold standard Kubernetes administrator cert. OpsCanary readers get 30% off year-round with code OPSCANARY3.
Get CKA certified →Rebuilding a 2,500-VM Lab on KubeVirt: The KubeVirtBMC Approach
Transitioning from vSphere to KubeVirt can seem daunting, especially with a massive 2,500-VM test lab. KubeVirtBMC simplifies this migration by exposing IPMI and Redfish endpoints, translating requests into KubeVirt API operations.
Kubernetes v1.37: Mastering the Unused PVC Condition
Kubernetes v1.37 introduces the PersistentVolumeClaimUnusedSinceTime feature gate, now in Beta. This feature adds an Unused condition to PersistentVolumeClaims (PVCs), helping you manage storage resources more effectively. Learn how this can prevent accidental data loss and optimize your cluster's storage usage.
Hardening Kubernetes Storage: Bind Mount Options and EmptyDir Permissions
Kubernetes v1.37 introduces critical features to enhance storage security in your clusters. By utilizing bind mount options like 'noexec' and 'nosuid', you can significantly reduce the attack surface of your workloads. Dive in to learn how to implement these features effectively.
Get the daily digest
One email. 5 articles. Every morning.
No spam. Unsubscribe anytime.