I am running Ubuntu in a virtual machine and I'd like to add CPU and RAM without rebooting the device. How can I hotplug this new virtual hardware?
|
These can be enabled through the use of the For the CPU, you change the For the RAM, you find the state in the files The script below will turn all CPU and RAM online for you.
|
|||||||||||||
|
|
Instead of operating the kernel parameters, you can automatically enable hotplugged CPU or memory by using udev rules: /etc/udev/rules.d/94-hotplug-cpu-mem.rules
Tested on CentOS 6/7, Ubuntu 14. Debian 7 crashed for unknown reason. Further testing would be required. |
|||||
|