知识库技术方案物理机 root 密码轮换后云主机热迁移报 rsync "connection unexpectedly closed" 失败

物理机 root 密码轮换后云主机热迁移报 rsync "connection unexpectedly closed" 失败

技术方案ZCF · Cloud适用版本4.2.x~4.8.x文章 IDKB-100418更新于2026-07-20

适用场景

当本地存储上的云主机热迁移因 rsync 认证错误而失败,且根本原因是物理机的 root 密码在 ZStack 平台外被修改时,使用本文。已验证的修复方式是在 ZStack UI 中更新新密码,以便管理节点重新认证到该物理机。

  • 产品: ZStack Cloud 。
  • 版本:4.2.x~4.8.x。
  • 组件:物理机 agent、基于 SSH 的 rsync
  • 触发条件:物理机的 root 密码在平台外被轮换的集群(例如由物理机加固脚本或手动执行 passwd 更改)。

问题现象

  • 云主机热迁移失败。UI 错误信息如下:
  操作错误,因为 fail to migrate vm to host, because
  Warning: Permanently added '172.28.50.143' (ED25519) to the list of known hosts.
  rsync: connection unexpectedly closed (0 bytes received so far) [sender]
  rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]
  • 迁移目标物理机在网络层面可达(SSH host key 提示正常出现),但 rsync 数据流始终未能完成。

登录查看余下内容,以及更多产品问题排查与解决经验。