Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

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

@zyxep

Description

@zyxep

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions