vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
163 stars 104 forks source link

cpu hotadd doesn't work, needs powered off #561

Open zyxep opened 2 years ago

zyxep commented 2 years ago

Hi,

I was trying to add more cpu's to a running VM with vcd vm update --cpu 2 <app> <vm>

But i get this error:

Error: Status code: 400/BAD_REQUEST, [ 4a87fb87-146b-4891-9757-b430fc43d4fe ] The number of cores per socket can only be changed for the virtual machine "vm-yyyy-001" when powered off. (request id: 4a87fb87-146b-4891-9757-b430fc43d4fe)

I can easily add more cpu through the interface when it's turned on but not through the CLI.

I checked the settings of the VM through CLI and i basically got this:

➜  ~ sudo vcd vm list-vm-capabilities app vm
property               value
-------------------  -------
CpuHotAddEnabled           1
MemoryHotAddEnabled        1