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

Share  submit to reddit    


virtual box guest additions ubuntu  increase screen size resolutoin intro 0 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.

virtual box guest additions ubuntu  increase screen size resolutoin 0 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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.

virtual box guest additions ubuntu  increase screen size resolutoin 1 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 2 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 3 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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.

virtual box guest additions ubuntu  increase screen size resolutoin 4 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

Now click Run.

virtual box guest additions ubuntu  increase screen size resolutoin 5 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 6 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 7 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

Now reboot Ubuntu for the new files to load properly.

virtual box guest additions ubuntu  increase screen size resolutoin 8 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 9 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 10 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 12 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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

virtual box guest additions ubuntu  increase screen size resolutoin 11 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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.

virtual box guest additions ubuntu  increase screen size resolutoin 13 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

At the Bash prompt ($) type:

cd /media/cdrom0

Hit Enter.

virtual box guest additions ubuntu  increase screen size resolutoin 14 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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.

virtual box guest additions ubuntu  increase screen size resolutoin 15 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

Type:

sudo sh autorun.sh

Hit Enter.

virtual box guest additions ubuntu  increase screen size resolutoin 16 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

The autorun.sh file should automatically change the proper permissions to run and install the vboxadditions file that will work on your OS.

virtual box guest additions ubuntu  increase screen size resolutoin 17 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux

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.

virtual box guest additions ubuntu  increase screen size resolutoin 7 How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux


Related Posts:


Posted on October 13, 2009 at 9:56 pm(PST)
Tags: | | | | | | | | | | | | |


10 Responses to “How to Increase Screen Size or Resolution in Virtualbox for Ubuntu or Linux”

  1. RS says:

    Great tutorial!
    This is only solution published that actually works.
    Keep up the good work

    Thanks :)

  2. Lloyd says:

    for those that say it didn’t work. For that matter anybody. After rebooting there is no need to go back to the Display app. Because if your window is still at the 800×600 then the display app will not reflect any new resolution sizes and you be have been deceived into believing the steps outlined here didn’t work for you. So just skip that part and turn on auto resize then resize your window with your mouse or just full screen it. Hope that helps.

  3. JrGiant says:

    Made programing in Java on netbeans so much eaiser

  4. McLovin says:

    Thanks for this post, it helped me get my screen size bigger.

    @Mark , If you don’t get extra screen resolution options, go to Machine -> Auto-Resize Guest Display and then choose Full Screen Mode.

  5. Marko says:

    Thank you for the clear instruction! Screen size went right after step “On the Virtualbox File Menu click on Machine -> Fullscreen Mode.”

  6. Frank Gilroy says:

    Yea it didn’t add any new resolutions for me either. I seem to have the problem more often on laptop video cards. Not sure why.

  7. Mark says:

    I tried this one but it didnt work for me, help! It didnt add anymore screen resolutions.

  8. Nodir says:

    Very clear and very helpful!
    Thanks!

  9. Cybo says:

    Thanks Nerdgrind. Clear and effective.

  10. Clint says:

    This was the only tutorial I found that worked. It was also one of the only ones that made sense. Thanks!!!

Leave a Reply

© Copyright Nerd Grind 2009 - 2010. All rights reserved.