vm_reconfigure
Change a VMware VM's CPU count and memory. Specify only the values to update; omitted fields remain unchanged. Supports hot-add when enabled on running VMs.
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). Audited to ~/.vmware/audit.db.
Args: vm_name: Exact name of the VM to reconfigure. cpu: New vCPU count; omit to leave unchanged. memory_mb: New memory in MB; omit to leave unchanged. target: vCenter/ESXi target name from config.yaml; omit to use the default target.
Returns: Status string describing the applied change, or a VM-not-found error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | ||
| target | No | ||
| vm_name | Yes | ||
| memory_mb | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |