<div dir="ltr"><div><div><div>Hi,<br><br></div>I am using qemu hook script to track status of VM live migration - libvirt 1.2.9 as included in Debian Wheezy backports.<br><br></div><div>I would like to be informed of the fact that VM migration has successfully finished as soon as possible. Based on the steps below, when would that be possible?<br></div><div><br></div>Sample VM migration as detected by qemu hook script:<br></div>1.) Destination hypervisor:<br><div>[10:27:42.224] Args: one-16 migrate begin<br></div><div>2.) Destination hypervisor:<br>[10:27:42.253] Args: one-16 prepare begin<br></div><div>3.) Destination hypervisor:<br>[10:27:42.472] Args: one-16 start begin<br></div><div>4.) Destination hypervisor:<br>[10:27:42.890] Args: one-16 started begin<br></div><div>5.) Actual VM migration...takes approximately 10 seconds in this case.<br></div><div>6.) Source hypervisor:<br>[10:27:51.847] Args: one-16 stopped end<br></div><div>7.) Source hypervisor:<br>[10:27:51.882] Args: one-16 release end<br></div><div><br>Based on the website, "Unless an error occurs during the migration process, the <i>qemu</i>
          hook script on the <b>source</b> host is then executed with the
          "stopped" and "release" operations to indicate it is no longer
          running on this host."<br><br></div><div>So the source hypervisor in steps no. 6 and 7 knows that it is no longer running a VM, right? Does that mean that the destination hypervisor is already running the VM at the moment corresponding to step no. 6? If so, is there any hook on the destination hypervisor, which would inform of the fact that the hypervisor has copied the last portions of VM memory and has become responsible for the VM in question?<br><br></div><div>Thank you,<br><br></div><div>Martin<br></div></div>