vm_reconfigure
Adjust a VM's vCPU count and memory, updating only the resources you specify. For hot-add, enable CPU/memory addition and ensure the guest is running; otherwise, power off the VM first.
Instructions
[WRITE] Change a VM's vCPU count and/or memory.
Pass only the fields you want to change; omitted fields are left untouched. Hot-add of CPU/memory requires it to be enabled on the VM and a running guest; otherwise power the VM off first (vm_power_off).
Returns: Status string describing the applied change, or a VM-not-found error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | New vCPU count; omit to leave unchanged. | |
| target | No | vCenter/ESXi target name from config.yaml; omit to use the default target. | |
| vm_name | Yes | Exact name of the VM to reconfigure. | |
| memory_mb | No | New memory in MB; omit to leave unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |