Opened 12 years ago
Last modified 8 years ago
#11277 new enhancement
CPU Hotplug prevents change in vCPU number
Reported by: | Max D | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.2.4 |
Keywords: | cpu hotplug | Cc: | |
Guest type: | all | Host type: | all |
Description
After setting up a VM with more than one vCPU and CPU hotplug off, then activating the CPU hotplug feature, it is not possible to reduce the amount of vCPU as long as hotplug is enabled.
Steps to reproduce :
- Create a VM with 2 or more CPUs
- Enable CPU hotplug via vboxmanage
- Start the VM then stop the VM
- Reduce the amount of CPUs using vboxmanage modifyvm VM --cpus x
- This will fail with the following code :
NS_ERROR_INVALID_ARG (0x80070057) There is still a CPU attached to socket x.Detach the CPU before removing the socket.
The only way to make this work is to disable the hotplug feature before setting the amount of vCPU.
IMO this error shouldn't popup as the VM is a PowerOff state and therefore hotunplugging a CPU doesn't make sense...
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
You have to use "VBoxManage modifyvm <VM name> --unplugcpu <x>" before reducing the amount of maxmimum CPUs the VM can have. This currently works as designed but I agree that we can make this a bit more userfriendly in the future by detaching the CPUs automatically.
comment:3 by , 8 years ago
Type: | defect → enhancement |
---|
Forum link for original support : https://forums.virtualbox.org/viewtopic.php?f=7&t=53033