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
  • Delivered
  • Attach files
  • Guest commented
    August 23, 2022 04:13
    (roles/redis.editor)
  • Kamen Nikolov commented
    January 13, 2022 15:08

    Shipped in PowerCLI 12.5

  • 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

  • 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)
  • Adam Chandler commented
    August 31, 2017 18:55

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