Error "The number of cores per socket can only be changed for the virtual machine when powered off" when attempting to modify vCPUs for a virtual machine in Cloud Director
search cancel

Error "The number of cores per socket can only be changed for the virtual machine when powered off" when attempting to modify vCPUs for a virtual machine in Cloud Director

book

Article ID: 428954

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Unable to increase Cores per socket on the virtual machine in Cloud Director.
  • Although CPU hot-add is enabled, attempt to modify the Cores per socket configuration fails with the error:

The number of cores per socket can only be changed for the virtual machine when powered off.

Environment

Cloud Director 10.x

Cause

Enabling CPU hot-add only allows increasing the vCPU count for a Powered-On VM. 

Changing the "Cores per socket" value is not supported while the VM is operational. A VM power-off is required for hardware re-initialization.

Resolution

Cores Per Socket can only be changed when the VM is Powered-Off.

Steps:

1) Power Off the VM:

    • Log into the Guest OS to initiate a shutdown. 
    • Alternatively, use the Actions > Power > Shut Down option within the Cloud Director tenant portal.

2) Edit VM Configuration:

    • Navigate to Data Centers > Compute > Virtual Machines.
    • Select the specific VM and click Details.
    • Under the Hardware section, select Compute, click Edit, and adjust the Cores Per Socket value.
    • Click Save to apply.

3) Power-On the VM:

    • Power-On the virtual machine to initialize the new hardware settings.