deploy_linked_clone
Create a linked clone from a VM snapshot for rapid test/dev provisioning. Shares the source's base disk, uses copy-on-write delta disk for minimal storage.
Instructions
[WRITE] Create a linked clone from a VM snapshot — near-instant, minimal disk usage.
The clone shares the source's base disk and writes changes to a copy-on-write delta disk, so it depends on the source VM staying intact. Fastest provisioning method for test/dev fleets; use vm_clone or deploy_vm_from_template for fully independent copies. Requires the source VM to have the named snapshot — run vm_list_snapshots first; unknown names return the available list. Audited to ~/.vmware/audit.db.
Args: source_vm_name: Exact name of the source VM (must have at least one snapshot). snapshot_name: Snapshot on the source to use as the clone base (from vm_list_snapshots). new_name: Name for the new linked clone; must not already exist. cpu: Override vCPU count; omit to keep the source's value. memory_mb: Override memory in MB; omit to keep the source's value. power_on: True powers the clone on after creation (default False). baseline_snapshot: If set, creates a snapshot with this name on the new clone. target: vCenter/ESXi target name from config.yaml; omit to use the default target.
Returns: Status string with the new clone name, or a snapshot/VM-not-found error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_vm_name | Yes | ||
| snapshot_name | Yes | ||
| new_name | Yes | ||
| cpu | No | ||
| memory_mb | No | ||
| power_on | No | ||
| baseline_snapshot | No | ||
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |