vm_clone
Clone a virtual machine to a new VM ID. Supports dry-run preview to verify changes before cloning.
Instructions
[WRITE] Clone a VM to a new vmid. Returns the task UPID. Inverse: vm_delete(newid).
Cloning is asynchronous — poll completion with task_status, do not re-issue. Pass dry_run=True to preview.
Args: vmid: Source VM id to clone from. newid: New (unused) VM id for the clone. name: Optional name for the clone. dry_run: If True, preview without cloning. target: Proxmox target name from config. node: Node name; omit to auto-locate the source VM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| node | No | ||
| vmid | Yes | ||
| newid | Yes | ||
| target | No | ||
| dry_run | No |