VirtualBox running Ubuntu is slow (Mac OS X host)

17

4

My MacBook Pro is generally a fast machine (3.06 Ghz Core 2 Duo, 8GB of RAM, 7200RPM hard drive) but VirtualBox 3.2.6 running Ubuntu 10.04 is just too slow compared to VMWare. What can I fiddle with to improve this? Within Ubuntu, I use Eclipse mostly but even booting and GNOME desktop accessories are slow...

Maroloccio

Posted 2010-08-07T00:04:19.743

Reputation: 397

Why not run Eclipse on OS X itself? – Chealion – 2010-08-07T00:10:24.380

1Chealion, for a number of reasons including: different key mappings, no desire to install all required software off of MacPorts (e.g. Fuse to use sshfs and file:/// based SVN, some Java libraries with native invocations, etc.) keeping productivity/development systems separate, etc.. – Maroloccio – 2010-08-07T00:14:45.950

I've noticed on my Linux Mint desktops that if you create a 64bit VM and run a 32bit Linux (Mint or Debian in my case) in it that it will be terribly slow. Like take 3 hours to install just a base system in Debian (no X, no desktop, just basic system utilities). – ivanivan – 2017-10-06T23:41:14.830

One can also diminish the screen resolution of the Macbook(System Preference/Display/Scaled), it seems to have an effect on the rendering time and the CPU load. – user778135 – 2017-10-06T21:56:12.807

Answers

10

The performance will become normal if you disable VTx and set it to use only one core of CPU. See the thread at http://forums.virtualbox.org/viewtopic.php?f=8&t=39368

Andy Li

Posted 2010-08-07T00:04:19.743

Reputation: 211

The bug reported on that thread has been fixed: http://www.virtualbox.org/ticket/8474.

But I still have problems with virtualization on VBox.

– another – 2018-03-12T11:24:15.557

Is this still true in 2018? – jocull – 2018-06-09T01:40:44.973

5

This is an observation: I use the end 2016 Macbook pro (15 inch), and run Virtualbox on it. As guest system, I have Win 7 and Linux Mint. Both show poor performance, which seems to be related to the graphics.

My observation: If I use an external screen (27 inch, resolution 2560 x 1440). The VBox guests are as smooth as you would expect.

Even moving the VBox window from the Macbook screen to the external screen and back shows that on the external screen, it is fast immediately, on the built-in screen it is slow -- even for non fullscreen mode.

Matthias

Posted 2010-08-07T00:04:19.743

Reputation: 51

That is exactly my problem as well. The performance is fine with the external display. Have you solved the problem? – beeender – 2019-07-09T05:45:31.437

2

Switching from Gnome to Unity (and installing VirtualBox Guest Additions) made a huge difference for me on Ubuntu 17.10, VirtualBox 5.2.8, OS X 10.13.3 High Sierra. Source: https://askubuntu.com/a/1017107/148598

jtpereyda

Posted 2010-08-07T00:04:19.743

Reputation: 2 079

Did you try Gnome + Guest Additions? Any other tweaks or things to take note of? VT-x settings? – jocull – 2018-06-09T01:45:30.453

@jocull sorry, can't recall – jtpereyda – 2018-06-09T02:23:16.623

2

This is more of a work-around than an answer. I was in the same boat, the Oracle-branded version 3.2.6 was bringing my Ubuntu VM to a crawl. So I just deleted 3.2.6 and installed version 3.1.8 and everything was fine. If you're just running Ubuntu I don't think there's much of a difference between 3.1 and 3.2.

Ryan W.

Posted 2010-08-07T00:04:19.743

Reputation: 21

1

Just throwing this up here as it may help others significantly.

I had Ubuntu VMs (guests) that i created on a Linux host install of Virtualbox, they ran fine on the Linux machine and were very slow once I moved them to my top of the line MacBook air 2012 (2ghz, 8gb ram) . I found i could make them extremely fast by increasing the cpu count (in the vm's settings) from 1 to 2. It made approximately a factor of 10 difference (a suite of phpunit tests went from 5 minutes to about 30 seconds). I'm not sure if the slowness had anything to do with the migration from Linux to OSX 10.8.2 or if the slowness would have been there even with guests that were created on an OSX install.

Mike Graf

Posted 2010-08-07T00:04:19.743

Reputation: 103

0

This seems to still be a problem in a Macbook pro 2018, Ubuntu runs really slow, however, the only option that I had to turn on was the 3D Acceleration and that did the trick, now the VM is really fast. Hope this helps.

drverboten

Posted 2010-08-07T00:04:19.743

Reputation: 1

Same for me on a MacBook Pro 2018. Going to VM > Settings > Display > Enable 3D Acceleration helped. The UI is a bit blurry but that's ok for me – Jan – 2018-12-16T19:46:24.360