Closed dev-zero closed 11 years ago
The first patch looks ok, but there was a typo: self::$_VIR_DOMAIN_XML_SECURE
instead of self::$VIR_DOMAIN_XML_SECURE
.
While checking the code I noted there is a VIR_DOMAIN_XML_MIGRATABLE
, we should use that one instead.
The php-bindings of the libvirt_domain_get_xml_desc
have an additional parameter (compared to the libvirt C-equivalent) which needs to be set to NULL, so the complete code which works looks like:
$xmllibvirt = libvirt_domain_get_xml_desc($domain, NULL, self::$VIR_DOMAIN_XML_MIGRATABLE);
Please also update the patch for the broker-daemon to use VIR_DOMAIN_XML_MIGRATABLE
Ok, there seems to be a bug in libvirt: https://bugzilla.redhat.com/show_bug.cgi?id=994364 which gets triggered as soon as the unsafe-migration flag is dropped,
So, please use VIR_DOMAIN_XML_SECURE
for now to work around it.
When getting the XML via libvirt_domain_get_xml_desc the spice password is missing since no flags are passed. Instead VIR_DOMAIN_XML_SECURE should be passed as the only flag making sure the XML returned still contains the spice password and therefore the Qemu process on the target machine still has a password set for spice.