在执行Xend实时迁移的时候,提示 'Connection reset by peer' 错误信息?
解决方法:
默认情况下,通过HTTP访问xend的功能是被关闭的。如果执行实时迁移,会出现下面的错误信息:
# xm migrate --live xen-guest server2 Error: (104, 'Connection reset by peer')
上面的信息表示xend通过HTTP访问的功能没有打开.
打开此功能,编辑/etc/xen/xend-config.sxp文件,取消以下几行的注释:
#(xend-port 8000) #(xend-relocation-port 8002) #(xend-address '') #(xend-relocation-address '') #(xend-relocation-hosts-allow '')
注释掉以下几行:
(xend-address localhost) (xend-relocation-hosts-allow '^localhost$')
完成上面的修改以后,保存配置文件,重新启动 xend:
# /sbin/service xend restart restart xend: [ OK ]
重新执行实时迁移.