Enabling CPU Hotplug for Virtual MachinesIf a guest operating system supports the CPU hotplug functionality, you can enable this functionality for the virtual machine. Once the CPU hotplug functionality is turned on, you can configure the number of CPUs available to your virtual machines even if they are running. Currently, the following systems come with the CPU hotplug support: Linux (both x86 and x64 versions)
By default, the CPU hotplug support is disabled for all newly created virtual machines. To enable this functionality, you can use the
# pctl set MyVM --cpu-hotplug on set cpu hotplug: 1 The VM has been successfully configured.
Once the functionality is enabled, you can configure the number of CPUs in the
# pctl set MyVM --cpus 3 set cpus(4): 3 The VM has been successfully configured.
To disable the CPU hotplug support in the
# pctl set MyVM --cpu-hotplug off set cpu hotplug: 0 The VM has been successfully configured. The changes will come into effect on the next virtual machine start. |
||||
|