Hello everyone,
I have a issue about the KVM block migration.
Please give me some help.
1)
I use the "virsh create" command to start a KVM VM in source machine.
2) And then, I use "virsh migrate" cammand to start a block migration:
# virsh migrate --live --copy-storage-all --verbose win7 qemu+ssh://186.100.8.136/system
root@186.100.8.136's password:
Migration : [ 93% ]
I execute "virsh list" command in source machine, and the result is:
#virsh list
Id Name State
-----------------------------------------------------------
1 win7 running
I can find the corresponding qemu-kvm process in the result of "ps -ef | grep qemu-kvm" in source machine.
And I execute "virsh list" command in destination machine, and the result is:
#virsh list
Id Name State
-----------------------------------------------------------
1 win7 paused3) But a
fter a few minutes£¬there have a error:
# virsh migrate --live --copy-storage-all --verbose win7 qemu+ssh://186.100.8.136/system
root@186.100.8.136's password:
Migration : [ 97% ]
error: Unable to read from monitor : Connection reset by peer.
I execute "virsh list" command in source machine again, and the result is NULL.
I cannot find the corresponding qemu-kvm process in the result of "ps -ef | grep qemu-kvm" in source machine.
And I execute "virsh list" command in destination machine again, and the result is NULL.
But, when I only use qemu-kvm command not use libvirt, I can test block migration successfully (use qemu-kvm to create a VM, and exec "migrate -b -d xxx" command in qemu-kvm monitor to migrate).
The version of libvirt is 1.0.1 and the version of qemu-kvm is 1.2.0 ( 1.2.2 is also have this issue).