热迁移错误信息及解决方案

错误信息错误原因解决方案
cannot migrate VMI which does not use masquerade, bridge with <annotation> VM annotation or a migratable plugin to connect to the pod network虚拟机的网络配置不支持热迁移。请依次检查如下配置:
  • 检查当前集群使用的 CNI 网络插件,推荐使用 Kube-OVN。
  • 检查虚拟机对应 YAML 文件中的 metadata.annotationsspec.template.metadata.annotations 字段中是否存在 "kubevirt.io/allow-pod-bridge-network-live-migration": "true" 注解信息,若不存在需手动添加。
  • cannot migrate VMI: Unable to determine if PVC <pvc name> is shared, live migration requires that all PVCs must be shared (using ReadWriteMany access mode)
  • cannot migrate VMI: PVC <pvc name> is not shared, live migration requires that all PVCs must be shared (using ReadWriteMany access mode)
  • cannot migrate VMI: Backend storage PVC is not RWX
  • cannot migrate VMI with non-shared HostDisk
虚拟机的存储类型不支持多节点读写(RWX)访问模式。虚拟机在创建后不支持修改相关参数,因此请重新创建虚拟机并选择支持多节点读写(RWX)的存储类型,推荐使用 CephRBD 块存储;若重新创建后依然存在问题,请联系相关人员处理。
其他错误信息虚拟机不支持热迁移。请联系相关人员处理。