VirtualBox consuming 100% CPU even when the guest is idle

23

2

I've tried all the solutions available on different forums. This is the configuration of my system:

  • Pentium Dual Core T230 (1.73 + 1.73), 2gb RAM
  • Oracle VM VirtualBox ver. 4.3.14 r95030

This is the configuration of my guest:

  • Windows 7 with 1gb of RAM assigned to it and 20gb of hdd

The task manager of my host shows 100% CPU activity even when the guest is idle.

I've also made a DOS machine which is suggested to do nothing and that reduces the CPU activity to about 56% but not as same as it should be when my host and guests are idle.

Another solution available to me was to set the affinity of VirtualBox to a single processor but I'm not able to do that, it denied the access. I'm logged in as administrator and have also checked "Show processes from all users".

Pradyumn Shrivastava

Posted 2014-09-09T18:14:30.873

Reputation:

are the guest additions installed on the VM? Are there any background processes that might be running that can cause issues? I have seen screen savers bring VM and their hosts to a halt. – Keltari – 2014-09-09T19:40:15.140

Answers

5

I had this issue with 2D Video Acceleration enabled. Once I disabled it in the Virtualbox machine settings, the host high CPU usage was gone.

Davor Josipovic

Posted 2014-09-09T18:14:30.873

Reputation: 472

5

also try this alternative where the guy disables "Nested Paging". It worked for me reducing 16% of cpu usage.

If you’re not familiar with this setting. Shut down your virtual machine so that you can edit the settings. Then go to the system tab, click on Acceleration and then uncheck the Enable Nested Paging checkbox. Click OK and start the virtual machine up and you should quickly notice some performance improvements.

Facundo Colombier

Posted 2014-09-09T18:14:30.873

Reputation: 171

1That worked perfectly on my set-up. I wish your answer was more detailed, but I admit this is the working solution (on my set-up, at least). – Clément – 2018-01-22T20:51:55.107

I've added a more detailed explanation from the source link – Facundo Colombier – 2018-01-23T21:44:39.917

2Perfect, thanks! I went to occasional 100% CPU load while idle to no more than ~20%! – Clément – 2018-01-24T15:31:49.843

2Just a warning, this is hardware dependent. On my host, disabling nested paging made the guest totally unusable. Both assigned CPU cores were pinned to 100% just trying to render the login screen and it sat like that for 5min until I shut it down and re-enabled this setting. – theferrit32 – 2019-04-22T19:27:12.887

5

Your processor does not offer hardware-assisted virtualization so VirtualBox is using software-based techniques, which will use more CPU time and make everything slow.

Read more about it here.

Giovanni Tirloni

Posted 2014-09-09T18:14:30.873

Reputation: 301

4even without virtualization support, it should not be using 100% of the processor – Keltari – 2014-09-09T19:39:20.517

I presume the OP meant a T2300, which does actually have VT-x. It's not a great chip, tho, otherwise. http://ark.intel.com/products/27233/Intel-Core-Duo-Processor-T2300-2M-Cache-1_66-GHz-667-MHz-FSB

– tu-Reinstate Monica-dor duh – 2016-10-31T04:00:49.847

This answer isn't so useful… It highlights a limitation, but does not offer a solution to this problem, even though solutions seem to exist. – Clément – 2018-01-22T20:53:30.280

1

There seem to be many different causes for high CPU use on the host.

In my case, with a Win7 guest, the solution was to disable the "VirtualBox Remote Desktop Extension".

Either in Settings -> Display -> Remote Display: unselect "Enable Server".

Or by starting the machine with the -vrde off option.

mivk

Posted 2014-09-09T18:14:30.873

Reputation: 2 270

0

If you've just set up the machine it's probably windows update. It can't be seen in the process list and is extremely CPU hungry. Had this problem multiple times.

Go to services, find windows update, stop it, see if it drops the CPU usage. If it does consider disabling it completely.

toster-cx

Posted 2014-09-09T18:14:30.873

Reputation: 181

Agreed that windows update could be the culprit on a new machine but let it finish, don't disable updates. That is a terrible idea if you plan the VM to persist more than a few days. – cornasdf – 2018-01-31T23:36:40.367

0

None of the above worked for me with an old Acer laptop, 2 x86 CPU cores; 3 gigs of RAM, running Win XP SP3 Host, and Win 7 guest (on VirtualBox 5.0.24). My "Acceleration" tab is disabled, so "Nested Paging" is not enabled. Also "Remote Display" was by default disabled. The VirtualBox panel had automatically disabled selection of any number of CPU cores, and was stuck on 1 CPU (although my Host system tray clearly shows the involvement of both CPU cores). Also the Windows Update of the guest machine was already disabled.

However, my guest machine took up at least 50% of CPU even when idle.

My solution? The problem solved only when I enabled both the 2D and 3D accelerations in "Settings -> Display -> Screen" and then increased the "Video Memory" in the same tab ("Settings -> Display -> Screen") to the maximum 256 meg allowed.

Once the guest machine received a good deal of video memory from the RAM, the CPU usage dropped to a nice 10% to 20%.

Vic

Posted 2014-09-09T18:14:30.873

Reputation: 139