hi all. I'm using VBox 4.1.12 on a low power Windows machine - 4GB RAM, with a 2core+HT atom cpu. No hardware virtualization is supported.
Although this is a slow cpu, it can run very light/basic VMs fairly smoothly.
The problem is that it's very easy for the VM to max out the available CPU resources, even though they never get past 25% of the actual physical cpu - this happens because the number of cpus that this version of VBox allows one to allocate to a VM when the host lacks hardware virtualization support is 1 cpu.
Is there any way to increase this number? Do more recent versions allow this?
thanks for your help.
Zeca
How to allocate more than 1 CPU
-
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: How to allocate more than 1 CPU
AFAIK, without hardware virtualization, it is not possible to have more than one virtual CPU.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
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: How to allocate more than 1 CPU
And in any case, with a dual core CPU you need to leave one core for the host.
Re: How to allocate more than 1 CPU
The host OS "sees" 4 CPUs, even though there are only 2 physical CPUs, and 2 from HT.
The problem with only allocating 1 CPU to the virtual machine, is that the host never lets the VM get more than 25% of the CPU resources - that is the maximum load, with the VM's CPU at 100%.
The problem with only allocating 1 CPU to the virtual machine, is that the host never lets the VM get more than 25% of the CPU resources - that is the maximum load, with the VM's CPU at 100%.
-
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: How to allocate more than 1 CPU
Hyperthreading doesn't count in this context - search for previous discussions of that. Proceed as if you have one CPU, two cores.
The percentage load is just a number reported by the OS, and yours sounds like it is reporting it wrong. You only have 2 cores, so if one is maxed out then it should be reported as 50% (or 100% of that core). 25% is a bug caused, as you say, by the CPU claiming to the OS that it has more cores than it actually has.
In any case this discussion is moot. As Noteirak has said, you need VT-x in order to assign multiple cores to a guest.
The percentage load is just a number reported by the OS, and yours sounds like it is reporting it wrong. You only have 2 cores, so if one is maxed out then it should be reported as 50% (or 100% of that core). 25% is a bug caused, as you say, by the CPU claiming to the OS that it has more cores than it actually has.
In any case this discussion is moot. As Noteirak has said, you need VT-x in order to assign multiple cores to a guest.