From: Wei Liu Subject: [PATCH OSSTEST] Toolstack/libvirt: use URI in migration command Date: Tue, 11 Aug 2015 21:25:09 +0100 Message-ID: <1439324709-16828-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZPG70-0007EV-VU for xen-devel@lists.xenproject.org; Tue, 11 Aug 2015 20:25:31 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: ian.jackson@eu.citrix.com, Jim Fehlig , Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org 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 Cc: Ian Campbell Cc: Ian Jackson --- Cc: Jim Fehlig I once had email exchange with Jim and he said xen+ssh was a commonly use configuration. Jim, I hope I got the URI right. The constructed command will be like virsh migrate guest xen+ssh://dst-host . OSSTest has working ssh setup between src and dst host so I expect this setup to just work. --- Osstest/Toolstack/libvirt.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm index bfb5ccb..477ebee 100644 --- a/Osstest/Toolstack/libvirt.pm +++ b/Osstest/Toolstack/libvirt.pm @@ -108,7 +108,7 @@ sub migrate ($$$$) { my $sho = $self->{Host}; my $dst = $dho->{Name}; my $gn = $gho->{Name}; - target_cmd_root($sho, "virsh migrate $gn $dst", $timeout); + target_cmd_root($sho, "virsh migrate $gn xen+ssh://$dst", $timeout); } sub save ($$$$) { -- 2.1.4