Vboxmanage: cpu: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
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..."
 
Onnowpurbo (talk | contribs)
 
(One intermediate revision by the same user not shown)
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


Line 27: Line 28:


* https://www.virtualbox.org/manual/ch09.html#cpuhotplug
* https://www.virtualbox.org/manual/ch09.html#cpuhotplug
==Pranala Menarik==
* [[VirtualBox]]

Latest revision as of 23:26, 15 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


Pranala Menarik