<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hello everyone,<br><br></div>I have a issue about the KVM block migration.<span> Please give</span><span> me some help.<br>
<br></span></div>1)<span> I</span><span> use the "virsh</span><span> create" command to start</span><span> a KVM VM in source </span><span><span>machine</span>.<br>
</span></div><span>2) And then, I use "virsh migrate" cammand to start a block migration:<br></span></div><span> # virsh migrate --live --copy-storage-all --verbose win7 qemu+ssh://<a href="http://186.100.8.136/system" target="_blank">186.100.8.136/system</a><br>
</span></div><span> <a href="mailto:root@186.100.8.136" target="_blank">root@186.100.8.136</a>'s password:<br></span></div><span> Migration : [ 93% ]<br><br></span></div><span> I execute "virsh list" command in source machine, and the result is:<br>
</span></div><span> #virsh list<br></span></div><span> Id Name State<br> -----------------------------------------------------------<br></span></div><span> 1 win7 running<br>
<br></span></div><div><span> I can find the corresponding qemu-kvm process in the result of "ps -ef | grep qemu-kvm" in </span><span><span> source machine</span>.<br></span></div><div>
<span><br></span></div><span> And I </span><span>execute "virsh list" command in destination machine, and the result is:<br></span><span> #virsh list<br></span><span> Id Name State<br>
-----------------------------------------------------------<br></span><span> 1 win7 paused</span><br><br></div>3) But a<span>fter a few minutes£¬there have a error:</span><br>
<span> # virsh migrate --live --copy-storage-all --verbose win7 qemu+ssh://<a href="http://186.100.8.136/system" target="_blank">186.100.8.136/system</a><br></span><span> <a href="mailto:root@186.100.8.136" target="_blank">root@186.100.8.136</a>'s password:<br>
</span><span> Migration : [ 97% ]<br></span></div><span> error: Unable to read from monitor : Connection reset by peer.<br><br> </span><span> I execute "virsh list" command in source machine again, and the result is NULL.</span><span><br>
<br></span><div><span> I cannot find the corresponding qemu-kvm process in the result of "ps -ef | grep qemu-kvm" in </span><span><span> source machine</span>.<br></span></div><div>
<span><br></span></div><span> And I </span><span>execute "virsh list" command in destination machine again, and the result </span><span>is NULL.<br><br><br></span></div><span>But, when I only use qemu-kvm command not use libvirt, I can test block migration </span>successfully (use qemu-kvm to create a VM, and exec "migrate -b -d xxx" command in qemu-kvm monitor to migrate).<br>
<br></div>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).<br><br></div><div><span>Please give</span><span> me some help. How to solve the issue.</span> Thanks a lot.<br>
<br><div><span><i></i></span><div><span></span></div></div></div></div>