Virsh migrate expects an URI, not a host. We don't actually care what
kind of transport it uses, the main objective is to test migration, so
use xen+ssh for the time being.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
[ ijc -- added --live and factored out $duri ]
my $sho = $self->{Host};
my $dst = $dho->{Name};
my $gn = $gho->{Name};
- target_cmd_root($sho, "virsh migrate $gn $dst", $timeout);
+ my $duri = "xen+ssh://$dst";
+ target_cmd_root($sho, "virsh migrate --live $gn $duri", $timeout);
}
sub save ($$$$) {