vm_clone
Clone a virtual machine or template to a new name, optionally specifying target host and datastore. Power on the clone after creation if needed.
Instructions
[WRITE] Clone a VM. Without to_host/to_datastore the clone lands on the source's host+datastore.
Args: vm_name: Source VM (or template) name. new_name: Name for the new clone. to_host: Target ESXi host name (default: source's host). to_datastore: Target datastore name (default: source's datastore). power_on: Power on the clone after creation. target: vCenter/ESXi target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| to_host | No | ||
| vm_name | Yes | ||
| new_name | Yes | ||
| power_on | No | ||
| to_datastore | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |