大网数据广告活动
服务器运维问答

Offline migrating KVM guests using virsh?

· 52CE 我爱测

I want to offline migrate the KVM guest e-devel to another centos73 host using virsh . So I do # virsh -d 0 migrate --offline --persistent e-devel qemu+ssh://kvm2/system migrate: offline(bool): (none) migrate: persistent(bool): (…

问题原文

原帖链接 · Jasmine Lognnes · CC BY-SA 3.0

I want to offline migrate the KVM guest e-devel to another centos73 host using virsh. So I do

# virsh -d 0 migrate --offline --persistent e-devel qemu+ssh://kvm2/system
migrate: offline(bool): (none)
migrate: persistent(bool): (none)
migrate: domain(optdata): e-devel
migrate: desturi(optdata): qemu+ssh://kvm2/system
migrate: found option <domain>: e-devel
migrate: <domain> trying as domain NAME
root@kvm2's password: 
migrate: found option <domain>: e-devel
migrate: <domain> trying as domain NAME

# 

After typing the root passowrd I would have expected the guest to be migrated, but nothing happens.

The last debug line migrate: <domain> trying as domain NAME seams to me that something is missing.

What does this line mean?

已采纳解答

原帖链接 · DanielB · CC BY-SA 3.0

The message <domain> trying as domain NAME just means that the code is trying to lookup the guest based on its name (as opposed to UUID or ID). IOW, it is normal to see that here, no sign of problem.

The offline migrate facility doesn't really do anything much. It merely results in the XML config for the guest being copied to the target host, nothing more. In particular it will never copy any storage across to the target host.

IOW, the offline migrate is nothing you can't already do by running

  virsh dumpxml FOO > foo.xml
  scp foo.xml <targethost>
  virsh define foo.xml

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-04-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。