VMware PowerCLI

The Best User Interface for your VMware Datacenter!

Managing cpu/mem hot-add for VMs

Currently there isn't a good way to configure VM memory hot-add and cpu hot-add via PowerCLI. These seem like good options for Set-VM.

  • Damien Solodow
  • Aug 31 2017
  • Attach files
  • Adam Chandler commented
    August 31, 2017 18:55

    Managing the values or even the ability to enable/disable the setting.

  • Travis Brock commented
    September 05, 2017 20:40
    This does it. But not as intuitive as some might want.

    $VM = Get-VM MyVM $spec = New-Object VMware.Vim.VirtualMachineConfigSpec $spec.memoryHotAddEnabled = $true $spec.cpuHotAddEnabled = $true $VM.ExtensionData.ReconfigVM_Task($spec)
  • Travis Brock commented
    September 05, 2017 20:47

    And if you're just looking to query the info...

    $VM.ExtensionData.Config | Select Name,CpuHotAddEnabled,MemoryHotAddEnabled