mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
vz: fixed migration in p2p mode
dom xml generated on begin step should be passed to perform step in VIR_MIGRATE_PARAM_DEST_XML parameter. Otherwise 'XML error: failed to parse xml document' is raised on destination host as dom xml is NULL. Signed-off-by: Pavel Glushchak <pglushchak@virtuozzo.com>
This commit is contained in:
parent
bdd6899b55
commit
4f949f7486
@ -3199,6 +3199,7 @@ vzDomainMigratePerformP2P(virDomainObjPtr dom,
|
||||
virConnectPtr dconn = NULL;
|
||||
virTypedParameterPtr params = NULL;
|
||||
int ret = -1;
|
||||
int maxparams = nparams;
|
||||
|
||||
if (virTypedParamsCopy(¶ms, orig_params, nparams) < 0)
|
||||
return -1;
|
||||
@ -3210,6 +3211,10 @@ vzDomainMigratePerformP2P(virDomainObjPtr dom,
|
||||
&cookieout, &cookieoutlen)))
|
||||
goto done;
|
||||
|
||||
if (virTypedParamsAddString(¶ms, &nparams, &maxparams,
|
||||
VIR_MIGRATE_PARAM_DEST_XML, dom_xml) < 0)
|
||||
goto done;
|
||||
|
||||
cookiein = cookieout;
|
||||
cookieinlen = cookieoutlen;
|
||||
cookieout = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user