deploy_vm_from_template
Deploy a new VM from a vSphere template, with optional CPU, memory, datastore, snapshot, and power-on settings. Requires an existing template; use vm_clone for running source VMs.
Instructions
[WRITE] Deploy a new VM by cloning from a vSphere template.
Returns a status string. Use for VMs marked as templates; for a running source VM use vm_clone. Requires an existing template — convert_vm_to_template makes one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template_name": "<template_name>",
"new_name": "<new_name>"
},
"name": "deploy_vm_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | Override CPU count (optional). | |
| target | No | Optional vCenter/ESXi target from config. | |
| new_name | Yes | Name for the new VM. | |
| power_on | No | Power on after deployment. | |
| memory_mb | No | Override memory in MB (optional). | |
| snapshot_name | No | Snapshot the new VM with this name. | |
| template_name | Yes | Source vSphere template name. | |
| datastore_name | No | Target datastore (template's own if omitted). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |