How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

When a new Virtual Machine, or Virtual PC, is setup in Virtualbox for Ubuntu, or another Linux flavor, the screen size and screen resolution may be fixed smaller than your maximum resolution setting. This problem can be fixed by installing Guest Additions.
Guest Additions comes with Virtualbox, but is installed after you setup your Virtual Machine, or Guest OS, to add features such as increased screen size or screen resolution. On the test PC for this example the maximum resolution is 1280 x 1024. After loading Ubuntu under Virtualbox bring up the Display Preference by going into System -> Preferences -> Display. The maximum resolution option listed is 800 x 600.

Installing Guest Additions from Gnome Desktop
To get a bigger screen resolution we will need to install Guest Additions. On the Virtualbox File Menu click on Devices -> Install Guest Additions.

You should now see a vboxadditions_x file now located on your Ubuntu desktop.

To open the vboxadditions file either double click on the file, or right-click and then click Open.

Now double click the autorun.sh file. The vboxadditions file contains installation choices for a few different Linux versions including both 32 bit and 64 bit versions. By using the autorun.sh file you allow the script to automatically detect, and install the right software for your OS.

Now click Run.

The autorun.sh will open a Shell window and begin installing the files.

Once the autorun.sh file has completed installing the Guest Additions software all you have to do is hit Enter to close the Window.

Now reboot Ubuntu for the new files to load properly.

After you return to the Ubuntu desktop click System -> Preferences -> Display.

Under Display Preferences you will see the resolution is at 1152 x 864, which is still not the maximum resolution.

On the Virtualbox File Menu click on Machine -> Fullscreen Mode.

Once in Fullscreen Mode go to System -> Preferences -> Display again, and you will now see the maximum screen resolution is 1280 x 1024.

Installing Guest Additions from the Command Line Terminal Window
To install Guest Addtions from the Terminal window Command Line in Ubuntu click Applications -> Accessories -> Terminal.

At the Bash prompt ($) type:
cd /media/cdrom0
Hit Enter.

Now type:
dir
Hit Enter. This will give you a listing of all the files in the vboxadditions file directory. We want to run the autorun.sh so that script can install the right files for us.

Type:
sudo sh autorun.sh
Hit Enter.
![]()
The autorun.sh file should automatically change the proper permissions to run and install the vboxadditions file that will work on your OS.

The autorun.sh will open a Shell window and begin installing the files. Once the autorun.sh file has completed installing the Guest Additions software all you have to do is hit Enter to close the Window.

Related Posts:
20 Responses to “How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux”
Leave a Reply
© Copyright Nerd Grind 2009 - 2010. All rights reserved.

Very nice.
Thanks for this! It enabled me to get Ubuntu 10.04 running under VirtualBox on a Windows 7 laptop.
The only small change I have is that in Ubuntu 10.04, System –> Preferences –> Display has become System –> Preferences –> Monitors.
After performing the procedure, Ubuntu 10.04 automatically set the display to fit my laptop display.
Cheers & thanks ‘gain!
Hello, this was a very useful tutorial.
I was almost frustrated to find how to increase the screen size of the window.
By the way, you can also select the “Adjust the Screen size” in the left most menu option.
Thank u very much!!!
I tried this for a Fedora 13 guest OS (in a Ubuntu host OS) with VirtualBox 3.2.6. The VirtualBox guest additions gave me trouble, the autorun refusing to run. After manually invoking the correct .run script, the VirtualBox window spontaneously grew to 1024×768. But switching to full screen and rebooting the virtual machine did not allow me to get any higher.
I now suspect this was because I had not completed the preparatory steps (preparing the guest to build external kernel modules) which are well-hidden in VirtualBox’s help…I’ll try that later today.
Thanks, this was a big help. This made Ubuntu 10.04 LTS display correctly. However, it did require a restart. Note: The display is now set in System->Preferences->Monitors.
Thanks a lot, worked for me !!!
Fantastic post! Thank you so much.
Aah! The trick was to be in full screen mode and then go to display settings!
It worked for me. Fantastic!
Such a helpful tutorial.Worked exactly what I wanted
Thank you
How to remove ou uninstall this package.
Because i have a ati9600xt and this bot work.
I get to start with low resolution option for this section.
How i do to uninstall, plese help.