VMware

Cpu Namespace

The Cpu namespace provides commands for configuring the CPU settings of a virtual machine.

List of commands:



Get Command

dcli com vmware vcenter vm hardware cpu get

Description

Returns the CPU-related settings of a virtual machine.

Options

Option Name Type Required Description
vm string Yes Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine.

Example

dcli com vmware vcenter vm hardware cpu get --vm testId


Update Command

dcli com vmware vcenter vm hardware cpu update

Description

Updates the CPU-related settings of a virtual machine.

Options

Option Name Type Required Description
vm string Yes Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine.
count int No 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.
cores‑per‑socket int No 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.
hot‑add‑enabled bool No Flag indicating whether adding CPUs while the virtual machine is running is enabled. This option may only be modified if the virtual machine is powered off. If unset, the value is unchanged.
hot‑remove‑enabled bool No Flag indicating whether removing CPUs while the virtual machine is running is enabled. This option may only be modified if the virtual machine is powered off. If unset, the value is unchanged.

Example

dcli com vmware vcenter vm hardware cpu update --vm testId