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
  • Planned
  • Attach files
  • Travis Brock commented
    5 Sep, 2017 08:47pm

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

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

  • Travis Brock commented
    5 Sep, 2017 08:40pm
    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)
  • Adam Chandler commented
    31 Aug, 2017 06:55pm

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