在 zstack 环境下,通过 virsh 直接迁移虚拟机,测试不同选项对虚拟机迁移的影响。
默认迁移
默认的迁移方式即managed direct migration方式,迁移命令:
1 | |
1 | |
direct 选项
添加--direct选项对应Unmanaged direct migration方式,迁移命令:
1 | |
QEMU 的 feature 中不支持direct方式迁移
p2p 选项
添加--p2p选项对应managed peer to peer migration方式,迁移命令:
1 | |
tunnelled 选项
添加--tunnelled可使用 libvirt 代理迁移,可使用加密功能,迁移命令:
1 | |
模拟 zstack 默认迁移方式
1 | |
在不开启 converge 的情况下添加 xbzrle 压缩
virsh qemu-monitor-command uuid --hmp info migrate
virsh domjobinfo uuid
managed direct
1 | |
p2p no tunnel
1 | |
p2p tunnelled
1 | |
umanaged direct
QEMU do not support