前提是两台机器共享存储设备,比如 NFS。/etc/xen/xend-config.sxp 文件需要修改的指令,不解释,直接看上面的注释,注意,两台机器的配置需要一模一样:
(xend-relocation-server yes) (xend-relocation-port 8002) (xend-relocation-address ”) (xend-relocation-hosts-allow ”)
重启:
# /etc/init.d/xend restart
修改 exports 文件:
/data/xen/web_1 192.168.1.0/24(rw,no_root_squash)
启动 nfs:
# /etc/init.d/portmap start # /etc/init.d/nfs start
注意防火墙,开始迁移:
# xm migrate id 192.168.1.220 -l
暂无评论
写评论