Dynamically allocation of VCPUs

This is for discussing general topics about how to use VirtualBox.
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Dynamically allocation of VCPUs

Post by M.Fazel »

Hi all,
Is there any mechanism that we can allocate VCPUs to the VMs dynamically?

Thanks and Regards.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Dynamically allocation of VCPUs

Post by noteirak »

Do you mean manually add or remove vCPUs to the VM? or given some perf monitoring, add or remove CPUs?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Re: Dynamically allocation of VCPUs

Post 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.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Dynamically allocation of VCPUs

Post by noteirak »

If you want automatic, that's not implemented within Virtualbox itself. Maybe a 3rd party, but I am not aware of any.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Dynamically allocation of VCPUs

Post 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.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Dynamically allocation of VCPUs

Post 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 :)
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Re: Dynamically allocation of VCPUs

Post 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.
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Re: Dynamically allocation of VCPUs

Post by M.Fazel »

And thanks for all.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Dynamically allocation of VCPUs

Post 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
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Re: Dynamically allocation of VCPUs

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Dynamically allocation of VCPUs

Post 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)
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Re: Dynamically allocation of VCPUs

Post 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.
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Re: Dynamically allocation of VCPUs

Post 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?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Dynamically allocation of VCPUs

Post by noteirak »

With Virtualbox? No. That's the OS job, so any regular system tool that can do that would.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
M.Fazel
Posts: 16
Joined: 30. May 2013, 08:34

Re: Dynamically allocation of VCPUs

Post 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.
Post Reply