[pve-devel] [PATCH container 1/2] add 'pct extractconfig'
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue May 24 12:43:53 CEST 2016
---
Note: this requires both the patches to pve-storage and pve-manager
src/PVE/CLI/pct.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/CLI/pct.pm b/src/PVE/CLI/pct.pm
index ca87229..4d6a1b7 100755
--- a/src/PVE/CLI/pct.pm
+++ b/src/PVE/CLI/pct.pm
@@ -555,6 +555,7 @@ our $cmddef = {
create => [ 'PVE::API2::LXC', 'create_vm', ['vmid', 'ostemplate'], { node => $nodename }, $upid_exit ],
restore => [ 'PVE::API2::LXC', 'create_vm', ['vmid', 'ostemplate'], { node => $nodename, restore => 1 }, $upid_exit ],
+ extractconfig => [ 'PVE::API2::VZDump', 'extractconfig', ['volume'], {node => $nodename}, sub { my $config = shift; print "$config\n"; }],
start => [ 'PVE::API2::LXC::Status', 'vm_start', ['vmid'], { node => $nodename }, $upid_exit],
suspend => [ 'PVE::API2::LXC::Status', 'vm_suspend', ['vmid'], { node => $nodename }, $upid_exit],
--
2.1.4
More information about the pve-devel
mailing list