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

错误信息原因解决方案
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 块存储。如果重新创建后仍有问题,请联系相关人员协助处理。
其他错误信息虚拟机不支持热迁移。请联系相关人员协助处理。