A:
• 现象:
{
"error": {
"code": "HOST.1009",
"description": "Failed to migrate vm on hypervisor",
"details": "failed to migrate vm[uuid:90bb61f55e774f5f89c9e1ea46db7661] from kvm
host[uuid:e5105c61114a4efe8bcc025f744226bd, ip:10.0.247.244] to dest host[ip:10.0
.197.238], unable to migrate vm[uuid:90bb61f55e774f5f89c9e1ea46db7661] to qemu+tcp
://10.0.197.238/system, internal error: Attempt to migrate guest to the same host localhost
.domain.com"
},
"createdTime": 1488170137857,
"type": {
"_name": "key.event.API.API_EVENT"
},
"id": "e6bcd7c33ad9446b919e11cd647fc8dc"
}
• 原因:
出现这段错误是因为两台物理机hostname相同,KVM云主机在线迁移目前依靠hostname进
行确认不同的物理机,如果hostname相同,则会被认定为相同的物理机。
• 解决方案:
需确保物理机的hostname不能相同。可以通过hostnamectl set-hostname your_new_hostn
ame来设定。