You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NewVMIDint// The (unique) ID of the target VM (if not set, the next available VMID will be used).
867
+
BWLimitint// Override I/O bandwidth limit (in KiB/s).
868
+
Descstring// Description for the Container.
869
+
Fullbool// Create a full copy of all disks. This is always done when you clone a normal CT. For CT templates, we try to create a linked clone by default.
870
+
Hostnamestring// Set a host name for the container.
871
+
Poolstring// Add the VM to the specified pool.
872
+
Snapnamestring// The name of the snapshot.
873
+
Storagestring// Target storage for full clone.
874
+
Targetstring// Target node. Only allowed if the original VM is on shared storage.
875
+
}
876
+
877
+
// Clone creates a clone or copy of an existing LXC container.
878
+
//
879
+
// POST /nodes/{node}/lxc/{vmid}/clone needs 'VM.Clone' permissions
880
+
// on /vms/{vmid}, and 'VM.Allocate' permissions on /vms/{newid}
881
+
// (or on the VM pool /pool/{pool}). You also need
882
+
// 'Datastore.AllocateSpace' on any used storage, and 'SDN.Use'
0 commit comments