From: Wei Liu Date: Sun, 8 Feb 2015 15:57:01 +0000 (+0000) Subject: toolstack/libvirt: guest migrate, save and restore support X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1cf79dfa555fc9b8d506e482e4e96f54fb34649b;p=people%2Fdariof%2Fosstest.git toolstack/libvirt: guest migrate, save and restore support Signed-off-by: Wei Liu Acked-by: Ian Campbell --- diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm index 26a2fa3..5c6ca90 100644 --- a/Osstest/Toolstack/libvirt.pm +++ b/Osstest/Toolstack/libvirt.pm @@ -93,17 +93,22 @@ sub saverestore_check ($) { sub migrate ($) { my ($self,$gho,$dst,$timeout) = @_; - die "Migration is not yet supported on libvirt."; + my $ho = $self->{Host}; + my $gn = $gho->{Name}; + target_cmd_root($ho, "virsh migrate $gn $dst", $timeout); } sub save ($$$$) { my ($self,$gho,$f,$timeout) = @_; - die "Save is not yet supported on libvirt."; + my $ho = $self->{Host}; + my $gn = $gho->{Name}; + target_cmd_root($ho, "virsh save $gn $f", $timeout); } sub restore ($$$$) { my ($self,$gho,$f,$timeout) = @_; - die "Restore is not yet supported on libvirt."; + my $ho = $self->{Host}; + target_cmd_root($ho, "virsh restore $f", $timeout); } 1;