Ubuntu – Higher screen resolution in VirtualBox

resolutionvirtualbox

I've just installed Ubuntu 10.04 into VirtualBox on Windows 7.

Unfortunately the only options showing for screen resolution are 640×480 and 800×600 and the monitor is showing as 'Unknown'.

How would I go about upping the resolution to 1280×1024 (I'm on a 1600×1200 monitor)?

Update
I tried mounting the VirtualBox 'Guest Additions' ISO (from the VBox 'Devices' menu) and doing sudo sh ./VBoxLinuxAdditions-x86.run
from the mounted drive, which gave 2 new listed resolutions after a reboot (1024×768 and the 16:9 version of that resolution). These worked when I selected them but disappeared when I switched back to another resolution. I tried rebooting and running VBoxLinuxAdditions-x86.run again but onlu the 2 low res options listed this time.
I think I'm going to reinstall…

Seems to be a VBox problem rather than an Ubuntu problem as after reinstalling 10.4 overwriting the original virtual partition, sudo sh ./VBoxLinuxAdditions-x86.run now has no affect at all.

Best Answer

You need to install the VBox guest utilities to add support for the virtualised graphics hardware.

sudo apt-get install virtualbox-guest-utils virtualbox-guest-x11 virtualbox-guest-dkms

Previously you might have needed the "ose" versions:

sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms