vsphere_reconfigure_vm
Reconfigure a VMware VM's CPU count, memory size, or notes. Requires the VM to be powered off unless hardware hot-add is enabled. Changes only the specified properties.
Instructions
Change a virtual machine's CPU count, memory size or notes.
Unless CPU/memory hot-add is enabled on the guest, vSphere requires the VM to be powered off for resource changes and will reject the request otherwise. Only the supplied fields are changed.
Requires permission mode write or higher.
Args:
vm: VM name, managed object id, UUID or inventory path.
cpu_count: New total number of virtual CPUs.
cores_per_socket: Cores per virtual socket. Must divide cpu_count.
memory_mb: New memory size in MiB.
annotation: Replacement notes/annotation text.
wait: Wait for the reconfigure task to finish.
timeout_seconds: Override the default task timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| wait | No | ||
| cpu_count | No | ||
| memory_mb | No | ||
| annotation | No | ||
| timeout_seconds | No | ||
| cores_per_socket | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||