📖 How to Fix Slow Ubuntu in VirtualBox

Solve laggy performance, slow graphics, and choppy animations in Ubuntu on VirtualBox.

Top 7 Fixes to Speed Up Ubuntu on VirtualBox

If Ubuntu runs sluggishly inside Oracle VirtualBox, follow these tested configuration fixes in order:

1. Install VirtualBox Guest Additions

Guest Additions provides optimized video drivers and direct hardware acceleration:

$ sudo apt update
$ sudo apt install -y build-essential dkms linux-headers-$(uname -r)
# Then click 'Devices' menu in VirtualBox -> 'Insert Guest Additions CD image...'

2. Enable 3D Acceleration

  1. Shut down the Ubuntu VM.
  2. Open VirtualBox Settings → Display → Screen.
  3. Check the box for Enable 3D Acceleration.

3. Maximize Video Memory (128 MB)

In the same Display settings tab, drag the Video Memory slider all the way to the right to 128 MB.

4. Allocate At Least 2–4 CPU Cores

By default VirtualBox assigns only 1 CPU core, bottlenecking Ubuntu desktop. Go to Settings → System → Processor and increase processors to at least 2 or 4 CPUs. Ensure Execution Cap is set to 100%.

5. Set Graphics Controller to VMSVGA

Under Display → Screen, change Graphics Controller to VMSVGA (the recommended controller for modern Linux guest OSes).

6. Allocate Sufficient RAM

Under System → Motherboard, ensure base memory is at least 4096 MB (4 GB) for Ubuntu 22.04 / 24.04 LTS.

7. Disable Desktop Animations in Ubuntu

Run this command inside Ubuntu terminal to turn off heavy GNOME window animations:

$ gsettings set org.gnome.desktop.interface enable-animations false