[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v3 04/13] toolstack/libvirt: guest migrate, save and restore support
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- v3: move this patch earlier in series --- Osstest/Toolstack/libvirt.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |