VMware

Memory Namespace

The Memory namespace provides commands for configuring the memory settings of a virtual machine.

List of commands:



Get Command

dcli com vmware vcenter vm hardware memory get

Description

Returns the memory-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 memory get --vm testId


Update Command

dcli com vmware vcenter vm hardware memory update

Description

Updates the memory-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.
size‑mib int No New memory size in mebibytes. The supported range of memory sizes is constrained by the configured guest operating system and virtual hardware version of the virtual machine. If the virtual machine is running, this value may only be changed if Memory.Info.hot-add-enabled is true, and the new memory size must satisfy the constraints specified by Memory.Info.hot-add-increment-size-mib and Memory.Info.hot-add-limit-mib. If unset, the value is unchanged.
hot‑add‑enabled bool No Flag indicating whether adding memory while the virtual machine is running should be enabled. Some guest operating systems may consume more resources or perform less efficiently when they run on hardware that supports adding memory while the machine is running. This option may only be modified if the virtual machine is not powered on. If unset, the value is unchanged.

Example

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