Multiple CPU cores in Virtual Box

2

When I was using Virtual Box in Windows 7, I could choose how many CPU cores to assign to the guest OS. Now I'm using Linux, and when I installed Virtual Box, I couldn't find that option. System Monitor shows that when the VM is busy only one CPU core goes to 100% while the rest are near 0%. How can I make Virtual Box in Linux use multiple CPU cores?

tony_sid

Posted 2010-07-28T11:08:16.950

Reputation: 11 651

I think you need a 64-bit host OS and hardware virtualization to present multiple cores to the guest. Does your Linux installation meet those requirements? – coneslayer – 2010-07-28T11:25:39.700

I'm using a 64-bit Linux. Hardware virtualization is turned on. – tony_sid – 2010-07-28T11:28:07.933

Answers

0

I found the solution. It turns out I was using an older version of Virtual Box. I upgraded to a newer version and I get the options for multiple CPU cores.

tony_sid

Posted 2010-07-28T11:08:16.950

Reputation: 11 651

4

I can simply set that in the VMs settings - change its details, go to the "System" tab, click on "Processor" and slide the slider to the right - done.

Did you check if the Host OS can actually see the correct number of cores?

You might want to check /proc/cpuinfo for that.

Picture of the settings tab / slider on OS X:

enter image description here

phrozen77

Posted 2010-07-28T11:08:16.950

Reputation: 101

Yes, all four CPU cores are seen. The Linux version of Virtual Box does not look like that. That's how the Windows version looks. – tony_sid – 2010-07-28T11:36:51.750

Actually, that's OS X ;) (admittedly with the settings displayed for a XP Guest).

Glad it now seems to work with your updated version :) – phrozen77 – 2010-07-30T07:04:01.747

Yeah I have it on OSX too and that's what it looks like. The newest version pretty much has the same features across Windows, OSX, and Linux. – tony_sid – 2010-07-31T12:33:21.803