VmHardwareCpuUpdateSpec

The Cpu.UpdateSpec structure describes the updates to be made to the CPU-related settings of a virtual machine.


Properties

integer
cores_per_socket Optional

New number of CPU cores per socket. The number of CPU cores in the virtual machine must be a multiple of the number of cores per socket. If unset, the value is unchanged.


integer
count Optional

New number of CPU cores. The number of CPU cores in the virtual machine must be a multiple of the number of cores per socket. The supported range of CPU counts is constrained by the configured guest operating system and virtual hardware version of the virtual machine.

If the virtual machine is running, the number of CPU cores may only be increased if Cpu.Info.hot-add-enabled is true, and may only be decreased if Cpu.Info.hot-remove-enabled is true.

If unset, the value is unchanged.


boolean
hot_add_enabled Optional

Flag indicating whether adding CPUs while the virtual machine is running is enabled. This field may only be modified if the virtual machine is powered off.

If unset, the value is unchanged.


boolean
hot_remove_enabled Optional

Flag indicating whether removing CPUs while the virtual machine is running is enabled. This field may only be modified if the virtual machine is powered off.

If unset, the value is unchanged.

JSON Example

{
    "cores_per_socket": 0,
    "count": 0,
    "hot_add_enabled": false,
    "hot_remove_enabled": false
}
Feedback

Was this page helpful?