I'm trying to implement a virtualization API. I was testing migration with libvirt I got some problems. When I use the following command : *virsh migrate --live --persistent --copy-storage-all vm-clone1 qemu+ssh://server_ip/system* the migration works fine but in the destination host the migrated vm is paused and I can't unpause it and I need to reboot the vm to be able use it in the new host. When I try to unoause it Igot the following error message: << *Error unpausing domain: internal error: unable to execute QEMU command 'cont': Resetting the Virtual Machine is required *>> How can I solve this problem, or is there an other way to make a live migration with libvirt?? Thank you for you consideration. -- Best regards *Dhia Abbassi* Full Stack Engineer | Rosafi Holding <http://tn.linkedin.com/in/dhiaabbassi> <https://github.com/DhiaTN> <https://plus.google.com/u/0/+DhiaAbbassi> <https://twitter.com/DhiaTN>
[dropping libvir-list] On 20.11.2014 13:11, Dhia Abbassi wrote:> I'm trying to implement a virtualization API. I was testing migration > with libvirt I got some problems. > > When I use the following command : > > *virsh migrate --live --persistent --copy-storage-all vm-clone1 > qemu+ssh://server_ip/system* > * > * > the migration works fine but in the destination host the migrated vm is > paused and I can't unpause it and I need to reboot the vm to be able use > it in the new host. When I try to unoause it Igot the following error > message: > << *Error unpausing domain: internal error: unable to execute QEMU > command 'cont': Resetting the Virtual Machine is required *>> > > How can I solve this problem, or is there an other way to make a live > migration with libvirt??Several things may be happening here, so I'll point just a few (unordered). 1) is there some storage shared between the two hosts? If so, is it accessible from the destination? 2) When doing storage migration, you still need to pre-create the files on destination yourself. Do they have the correct size? 3) The error message seems like a qemu bug to me. Have you tried it with recent qemu? Michal
Thanks for your answer, 1) In this case i'm not using shared storage, the migration is happening between two non-shared storage with full disk copy 2) I already created the file with same size, and the vm works properly after a restart, my problem that it remains paused and I can't resume it until it's rebooted. 3) I'm using qemu-kvm 1.0 On 24 November 2014 at 10:22, Michal Privoznik <mprivozn@redhat.com> wrote:> [dropping libvir-list] > > On 20.11.2014 13:11, Dhia Abbassi wrote: > >> I'm trying to implement a virtualization API. I was testing migration >> with libvirt I got some problems. >> >> When I use the following command : >> >> *virsh migrate --live --persistent --copy-storage-all vm-clone1 >> qemu+ssh://server_ip/system* >> * >> * >> the migration works fine but in the destination host the migrated vm is >> paused and I can't unpause it and I need to reboot the vm to be able use >> it in the new host. When I try to unoause it Igot the following error >> message: >> << *Error unpausing domain: internal error: unable to execute QEMU >> command 'cont': Resetting the Virtual Machine is required *>> >> >> How can I solve this problem, or is there an other way to make a live >> migration with libvirt?? >> > > Several things may be happening here, so I'll point just a few (unordered). > > 1) is there some storage shared between the two hosts? If so, is it > accessible from the destination? > > 2) When doing storage migration, you still need to pre-create the files on > destination yourself. Do they have the correct size? > > 3) The error message seems like a qemu bug to me. Have you tried it with > recent qemu? > > Michal >