Page 1 of 2

Dynamically allocation of VCPUs

Posted: 30. May 2013, 08:46
by M.Fazel
Hi all,
Is there any mechanism that we can allocate VCPUs to the VMs dynamically?

Thanks and Regards.

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 10:43
by noteirak
Do you mean manually add or remove vCPUs to the VM? or given some perf monitoring, add or remove CPUs?

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 12:09
by M.Fazel
noteirak wrote:Do you mean manually add or remove vCPUs to the VM? or given some perf monitoring, add or remove CPUs?
I am looking for an auto approach that we can dynamically add or remove VCPUs while VMs running. some thing like elastically up and down number of VCPUs of guest OS.

Regards.

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 13:03
by noteirak
If you want automatic, that's not implemented within Virtualbox itself. Maybe a 3rd party, but I am not aware of any.

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 13:06
by mpack
I'm not sure the guest OS would be keen on CPUs that seem to appear and then disappear. Not what your typical guest OS expects I would think.

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 13:20
by noteirak
Definitly - it requires server version of Windows (specific ones AFAIK), for Linux it requires some commands in the guest if I remember correctly, so definitly not a "out of the box" feature :)

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 13:28
by M.Fazel
noteirak wrote:Definitly - it requires server version of Windows (specific ones AFAIK), for Linux it requires some commands in the guest if I remember correctly, so definitly not a "out of the box" feature :)
Thanks, do you have any references?

Regards.

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 13:32
by M.Fazel
And thanks for all.

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 13:35
by noteirak
You have the Advanced Topic chapter of the user manual.

For Windows, look on Microsoft website for the feature of each Server edition. I believe you need something higher than Standard edition to support hot plug.
For Linux, you have the command line in the user manual, and you'll have to look if your kernel supports it.
Finally, quite a few things on Google with "virtualbox cpu hot plug" as search

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 13:57
by M.Fazel
noteirak wrote:You have the of the user manual.

For Windows, look on Microsoft website for the feature of each Server edition. I believe you need something higher than Standard edition to support hot plug.
For Linux, you have the command line in the user manual, and you'll have to look if your kernel supports it.
Finally, quite a few things on Google with "virtualbox cpu hot plug" as search
Thanks alot, I have checked hot plug with VMware but not with virtualbox. I will search and give you feedback.

Regards.

Re: Dynamically allocation of VCPUs

Posted: 30. May 2013, 15:04
by Perryg
CPU hot-plug works fine in Linux (that has support for hot-plug) I didn't try Windows because it can only add CPUs and not take them away unlike Linux which can do both.

Note: Guest monitoring devices are not going to like this. (system monitor)

Re: Dynamically allocation of VCPUs

Posted: 31. May 2013, 04:55
by M.Fazel
Perryg wrote:CPU hot-plug works fine in Linux (that has support for hot-plug) I didn't try Windows because it can only add CPUs and not take them away unlike Linux which can do both.

Note: Guest monitoring devices are not going to like this. (system monitor)
Thank you very much.

Re: Dynamically allocation of VCPUs

Posted: 31. May 2013, 07:55
by M.Fazel
noteirak wrote:You have the of the user manual.

For Windows, look on Microsoft website for the feature of each Server edition. I believe you need something higher than Standard edition to support hot plug.
For Linux, you have the command line in the user manual, and you'll have to look if your kernel supports it.
Finally, quite a few things on Google with "virtualbox cpu hot plug" as search
Is there any approach to allocate which jobs run under which VCPUs?

Re: Dynamically allocation of VCPUs

Posted: 31. May 2013, 08:46
by noteirak
With Virtualbox? No. That's the OS job, so any regular system tool that can do that would.

Re: Dynamically allocation of VCPUs

Posted: 31. May 2013, 11:15
by M.Fazel
noteirak wrote:With Virtualbox? No. That's the OS job, so any regular system tool that can do that would.
yes, and what about allocating jobs to VCPUs after adding? Is it automatically? for example consider that during VM is running, application is imported into that and one VCPU is allocated to that and after any execution finishes another application is imported and started execution.

Regards,
Fazel.