Ubuntu runs very slowly inside of VirtualBox.

How do I run Ubuntu with unity or enabled transparency smoothly with VirtualBox?


Graphic/performance fix for Ubuntu was tested with Ubuntu 13.04, 12.10, and 12.04. Part of this solution applies where aero / transperancy is used including d3d games.

RAM requirements

Recommended graphic memory or virtual ram for aero based operating systems is 256 MB min.ram -768 MB for 13.04

Virtual machine settings

  1. enable 3d support in virtualbox 3d settings

  2. terminal commands:

    /usr/lib/nux/unity_support_test -p 

    (Not software rendered:no, unity 3d support:No)

    uname -r
    sudo apt-get install linux-headers-$(uname -r)
    sudo apt-get autoremove
    sudo apt-get install build-essential

    now insert vitualbox guest iso from devices and to install manually follow

    cd /media
    cd username
    cd VBOX*
    sudo ./VBoxLinuxAdditions.run
    sudo gedit /etc/modules

    add "vboxvideo" in the next line after lp means loop>lp>vboxvideo like this click save and file quit

  3. restart the machine

  4. now open the terminal to checkunity 3d is enabled or not

    /usr/lib/nux/unity_support_test -p
  5. after this shut down the machine lets increase the virtual ram

  6. close virtual machine and virtual box

  7. follow this path C:\Users\Username\VirtualBox VMs\ubuntu 13.04

  8. now look for ".vbox" extension file and open it with temporarily with wordpad

  9. look for the following lines and replace these in following manner

    Display VRAMSize="128" monitorCount="1" accelerate3D="true" accelerate2DVideo="false"/>


    Display VRAMSize="256" monitorCount="1" accelerate3D="true" accelerate2DVideo="false"/>
  10. now you can set 256 mb virtual memory for this operating system.

  11. any OS can be provided with desired vram this way

Reference and sources::

babarehner @ e-wrench.com and youtube

sanct on http://ubuntuforums.org/forum.php

rpxmac on forums.virtualbox.org

Related questions on Ask Ubuntu

How do I install Guest Additions in a VirtualBox VM?
How do I enable hardware virtualization technology (VT-x) for use in Virtualbox?
Ubuntu installation in VirtualBox - not using base memory in RAM

  • 3
    FYI, you can change those VRAM and other settings through the VirtualBox UI now. – ashes999 Aug 19 '14 at 14:07
  • Can't find VBoxLinuxAdditions.run anywhere? – Santosh Kumar Nov 28 '15 at 11:53
  • 2
    @ashes999 But only to 128MB – Sebi2020 Oct 27 '17 at 21:09

Make sure you enable 3D support on Virtualbox, and on guest Ubuntu virtualbox setting. Also give your virualbox enough RAM and cpu cores. Having dedicated VGA will help virtualbox performance as well. How to fix slow performance ubuntu 13.04 running in virtualbox

protected by Community Jun 6 '13 at 1:35

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.