[pve-devel] [PATCH 2/4] Add suspend/resume support to pvectl
Daniel Hunsaker
danhunsaker at gmail.com
Fri Oct 3 20:58:54 CEST 2014
From: Dan Hunsaker <danhunsaker at gmail.com>
Now that the API supports CT suspend/resume, it makes sense to have pvectl
support it, too. It *does* use different names than vzctl does, but it
seems to make sense to be consistent with the API naming in a PVE utility.
Signed-off-by: Dan Hunsaker <danhunsaker at gmail.com>
---
bin/pvectl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bin/pvectl b/bin/pvectl
index f8ae3ad..9e9a797 100755
--- a/bin/pvectl
+++ b/bin/pvectl
@@ -74,6 +74,8 @@ my $cmddef = {
}],
start => [ 'PVE::API2::OpenVZ', 'vm_start', ['vmid'], { node => $nodename }, $upid_exit],
+ suspend => [ 'PVE::API2::OpenVZ', 'vm_suspend', ['vmid'], { node => $nodename }, $upid_exit],
+ resume => [ 'PVE::API2::OpenVZ', 'vm_resume', ['vmid'], { node => $nodename }, $upid_exit],
shutdown => [ 'PVE::API2::OpenVZ', 'vm_shutdown', ['vmid'], { node => $nodename }, $upid_exit],
stop => [ 'PVE::API2::OpenVZ', 'vm_stop', ['vmid'], { node => $nodename }, $upid_exit],
mount => [ 'PVE::API2::OpenVZ', 'vm_mount', ['vmid'], { node => $nodename }, $upid_exit],
--
1.9.1
More information about the pve-devel
mailing list