VmHardwareCpuUpdateSpec

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


Properties

Required Property Name Type Description
optional cores_per_socket integer

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.

optional count integer

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.

optional hot_add_enabled boolean

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.

optional hot_remove_enabled boolean

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?