[libvirt-users] virsh: migration job: unexpectedly failed

Hi,I am use virsh and test the migration command, on server.example.com: # rpm -qa|grep libvirt libvirt-0.9.10-21.el6.x86_64 libvirt-python-0.9.10-21.el6.x86_64 libvirt-client-0.9.10-21.el6.x86_64 # virsh version Compiled against library: libvir 0.9.10 Using library: libvir 0.9.10 Using API: QEMU 0.9.10 Running hypervisor: QEMU 0.14.1 #cat /etc/libvirt/libvirt.conf uri_aliases = [ "host1=qemu+ssh://root@host1.example.com/system", ] node1.example.com is the same version with server.example.com and on both server has the same storage pool with same path, first step,as use the local storage,i copied the vm win7's disk from server.example.com to node1.example.com's storage pool,and did a pool-refresh. 2nd step: on server.example.com i use this command to do the migration job: #virsh start win7 # virsh migrate win7 host1 --copy-storage-inc --persistent --live --unsafe when the migation process begin ,i can see the win7 appear on the node1.example.com whos status is paused,but just after a few secs,errs come out: (server.example.com) # virsh migrate win7 host1 --copy-storage-inc --persistent --live --unsafe error: operation failed: migration job: unexpectedly failed error: Reconnected to the hypervisor i've tried to solve this problem, but failed. thanks.

On 06/08/2012 02:21 PM, Xing.x.Gao wrote:
Hi,I am use virsh and test the migration command, on server.example.com: # rpm -qa|grep libvirt libvirt-0.9.10-21.el6.x86_64 libvirt-python-0.9.10-21.el6.x86_64 libvirt-client-0.9.10-21.el6.x86_64
# virsh version Compiled against library: libvir 0.9.10 Using library: libvir 0.9.10 Using API: QEMU 0.9.10 Running hypervisor: QEMU 0.14.1
#cat /etc/libvirt/libvirt.conf uri_aliases = [ "host1=qemu+ssh://root@host1.example.com/system", host1? or node1? ]
node1.example.com is the same version with server.example.com and on both server has the same storage pool with same path,
first step,as use the local storage,i copied the vm win7's disk from server.example.com to node1.example.com's storage pool,and did a pool-refresh. Why need to run pool-refresh? and it's ran on node1.example.com? 2nd step: on server.example.com i use this command to do the migration job: Please share your nfs configuration if you're using a nfs to share guest image. #virsh start win7
# virsh migrate win7 host1 --copy-storage-inc --persistent --live --unsafe when the migation process begin ,i can see the win7 appear on the node1.example.com whos status is paused,but just after a few secs,errs come out: (server.example.com) # virsh migrate win7 host1 --copy-storage-inc --persistent --live --unsafe error: operation failed: migration job: unexpectedly failed error: Reconnected to the hypervisor Could you provide more libvirt debug information? please refer to the following link if you haven't do it ago, thanks.
http://libvirt.org/logging.html
i've tried to solve this problem, but failed. thanks.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

i am sorry,node1 is host1 ,it's my input error, i don't use share storage ,and the debug log level outputs a lot in the /var/log/libvirt/libvirtd.log on host1.example.com , the win7.img is a qcow2 img file ,and i copy it from server.example.com(source) to node1.example.com(dest)

On 06/08/2012 09:13 PM, Xing.x.Gao wrote:
i am sorry,node1 is host1 ,it's my input error, i don't use share storage ,and the debug log level outputs a lot in the /var/log/libvirt/libvirtd.log on host1.example.com , the win7.img is a qcow2 img file ,and i copy it from server.example.com(source) to node1.example.com(dest) It's a wrong method to copy guest image to target host, you require a NFS to share guest image at least, please refer to the following link:
*Shared storage example: NFS for a simple migration* http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza... *Live KVM migration with virsh* http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza... Please see "*Live migration requirements*" section: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza... Good Luck! Alex

There now is KVM live migration with storage migration, which makes it possible to live migrate without shared storage. Is that what you're trying to do? If so, I might be able to help (I recently got that working, after having to work out a few tricky preparations). Pat Wilbur My website: http://pdub.net Our book: http://runningxen.com On Jun 11, 2012 11:53 PM, "Alex Jia" <ajia@redhat.com> wrote:
** On 06/08/2012 09:13 PM, Xing.x.Gao wrote:
i am sorry,node1 is host1 ,it's my input error, i don't use share storage ,and the debug log level outputs a lot in the /var/log/libvirt/libvirtd.log on host1.example.com , the win7.img is a qcow2 img file ,and i copy it fromserver.example.com(source) to node1.example.com(dest)
It's a wrong method to copy guest image to target host, you require a NFS to share guest image at least, please refer to the following link:
*Shared storage example: NFS for a simple migration*
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza...
*Live KVM migration with virsh*
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza...
Please see "*Live migration requirements*" section:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza...
Good Luck! Alex
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On 06/12/2012 12:48 PM, Patrick Wilbur wrote:
There now is KVM live migration with storage migration, which makes it possible to live migrate without shared storage. Is that what you're trying to do? If so, I might be able to help (I recently got that
You're talking about live block/storage migration, right? if so, shared storage isn't necessary, please refer to the following link: http://wiki.qemu.org/Features/LiveBlockMigration But I'm not sure it has been supported by qemu-kvm rpm on the RHEL, you probably require qemu-kvm-rhev installation. In addition, could you show your qemu-kvm or qemu-kvm-rhev version and relevant libvirtd.log? thanks. Alex
working, after having to work out a few tricky preparations).
Pat Wilbur
My website: http://pdub.net Our book: http://runningxen.com
On Jun 11, 2012 11:53 PM, "Alex Jia" <ajia@redhat.com <mailto:ajia@redhat.com>> wrote:
On 06/08/2012 09:13 PM, Xing.x.Gao wrote:
i am sorry,node1 is host1 ,it's my input error, i don't use share storage ,and the debug log level outputs a lot in the /var/log/libvirt/libvirtd.log onhost1.example.com <http://host1.example.com> , the win7.img is a qcow2 img file ,and i copy it from server.example.com <http://server.example.com>(source) tonode1.example.com <http://node1.example.com>(dest)
It's a wrong method to copy guest image to target host, you require a NFS to share guest image at least, please refer to the following link:
*Shared storage example: NFS for a simple migration* http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza...
*Live KVM migration with virsh* http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza...
Please see "*Live migration requirements*" section: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiza...
Good Luck! Alex
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com <mailto:libvirt-users@redhat.com> https://www.redhat.com/mailman/listinfo/libvirt-users

2012/6/12 Alex Jia <ajia@redhat.com>:
On 06/12/2012 12:48 PM, Patrick Wilbur wrote:
There now is KVM live migration with storage migration, which makes it possible to live migrate without shared storage. Is that what you're trying to do? If so, I might be able to help (I recently got that yes ,i am trying to do that.
You're talking about live block/storage migration, right? if so, shared storage isn't necessary, please refer to the following link: http://wiki.qemu.org/Features/LiveBlockMigration But I'm not sure it has been supported by qemu-kvm rpm on the RHEL, you probably require qemu-kvm-rhev installation. In addition, could you show your qemu-kvm or qemu-kvm-rhev version and relevant libvirtd.log? thanks.
thanks for give me the docs,thanks,i've found that this problem is caused by the libvirtd keep alive time out, when the keepalive timed out,it just suspend the migration process. after change the "keepalive_interval" to -1 , this trouble did not appear again,but another problem come out: the destination host has crashed when migration achieve 99%.

hi,all!I have tried several version of libvirt(e.g 0.7.5, 0.9.9 , 0.9.12) but each have some problems. What's your experience using libvirt? Which version do you think is the best? regards Zhang Zhang

On 06/12/2012 02:53 PM, 张章 wrote:
hi,all! I have tried several version of libvirt(e.g 0.7.5, 0.9.9 , 0.9.12) but each have some problems. Please raise your problems in here then I think libvirt developers will help you asap, thanks. What's your experience using libvirt? Which version do you think is the best?
regards
Zhang Zhang
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (4)
-
Alex Jia
-
Patrick Wilbur
-
Xing.x.Gao
-
张章