Difference between revisions of "Vboxmanage: cpu"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "sumber: https://www.virtualbox.org/manual/ch09.html#cpuhotplug At this time, CPU hot-plugging requires using the VBoxManage command-line interface. First, hot-plugging needs...")
 
Line 3: Line 3:
 
At this time, CPU hot-plugging requires using the VBoxManage command-line interface. First, hot-plugging needs to be enabled for a virtual machine:
 
At this time, CPU hot-plugging requires using the VBoxManage command-line interface. First, hot-plugging needs to be enabled for a virtual machine:
  
 +
VBoxManage controlvm "VM name" acpipowerbutton
 
  VBoxManage modifyvm "VM name" --cpuhotplug on
 
  VBoxManage modifyvm "VM name" --cpuhotplug on
  

Revision as of 05:31, 16 December 2018

sumber: https://www.virtualbox.org/manual/ch09.html#cpuhotplug

At this time, CPU hot-plugging requires using the VBoxManage command-line interface. First, hot-plugging needs to be enabled for a virtual machine:

VBoxManage controlvm "VM name" acpipowerbutton
VBoxManage modifyvm "VM name" --cpuhotplug on

After that, the --cpus option specifies the maximum number of CPUs that the virtual machine can have:

VBoxManage modifyvm "VM name" --cpus 8

When the VM is off, you can then add and remove virtual CPUs with the modifyvm --plugcpu and --unplugcpu subcommands, which take the number of the virtual CPU as a parameter, like this:

VBoxManage modifyvm "VM name" --plugcpu 3
VBoxManage modifyvm "VM name" --unplugcpu 3

Note that CPU 0 can never be removed.

While the VM is running, CPUs can be added and removed with the controlvm plugcpu and unplugcpu commands instead:

VBoxManage controlvm "VM name" plugcpu 3
VBoxManage controlvm "VM name" unplugcpu 3



Referensi