Red Hat Bugzilla – Bug 487557
libvirtd forgets about migrated guests when it is restarted
Last modified: 2010-03-16 13:17:58 EDT
Description of problem:
There's a corner case with the new libvirtd feature to "remember" guests when it is restarted. Take the following example:
1. virDomainDefineXML on src
2. virDomainStart on src
3. virDomainMigrate on src -> migrates guest to dest
4. Shut-down libvirtd on dest
5. Restart libvirtd on dest
After step 5, you would expect libvirtd to "remember" the migrated guest, but at present, it does not. DanB says this is because it is a "transient" guest, so doesn't have an /etc/libvirt/qemu config file. It does, however, have a /var/run/libvirt/qemu state and pid file, so we could scan the entire directory looking for transient guests as well.
Prototype fix posted
This problem still exists in libvirt-0.6.3-11.el5.x86_64.rpm from rhel5.4 beta.
Is there a plan to integrate the fix into the release?
The redetection of transient VMs is now fixed in libvirt repos. The fix will be included in the forthcoming 0.7.0 release