E-Mail:

Increasing Screen Resolution in Ubuntu under VirtualBox

If you’re like me, you run Windows, but want to try out a new operating system. For me, I decided to try Ubuntu running in a virtual machine via Sun VirtualBox. The installation of Ubuntu in a virtual machine went very smoothly and I had no hiccups whatsoever. However, once Ubuntu was completley installed, I couldn’t increase the screen resolution over 800×600. This was a major inconvenience to me as I couldn’t use full screen or “Seamless” mode. After digging through the web I found a solution and thought that I’d share it to prevent others’ struggles.

First, go to the “Devices” menu and choose “Install Guest Additions”. This should mount a CD in Ubuntu. Next, open up a terminal window and type the following commands:
cd /media/cdrom0(This changes the directory to the CD drive. There is a space after cd)
dir(This list the files found in the directory.)
sudo sh ./VBoxLinuxAdditions.run(This gives Admin privileges so that the VBoxLinuxAdditions.run file can be installed; you will be prompted for you password. Remember that Linux is case sensitive, so type the exact case you see here.)

Now, restart the virtual machine and the problem should be solved. There are similar procedures for Windows as well, except I don’t believe you need to do anything on the command line. This solved my resolution issues with Ubuntu, and I can now use it flawlessly.

Hit me up with a comment below, Email me, or see the Contact Me page for more ways to get a hold of me.

13 Comments

i tried exactly the same thing that you told , but it doesnt seem to work. Please let me know if there are other solutions

Pradip, if you still read this, I tried the same thing and it didn’t work for me. It told me that I needed the build and headers for the kernel. I found this site:
http://ubuntuforums.org/archive/index.php/t-25258.html
I tried this:
>> uname -r (to find out what kernel you have)
to get the header you can apt-get install them,
>> sudo apt-get install linux-headers-`uname -r` (where uname-r is your kernel version, without the ‘ ‘)
Now, for the buil, I did this:
>> sudo apt-get install build-essential
After that, I tried what was on this site, worked, rebooted the VM, and it WORKED! Hope it works for you, too!

It worked just fine for me. Thanks!
In my case it wasn’t necessary to type sh
just I typed sudo ./VBoxLinuxAdditions.run and it started to execute.

This is exactly the information that I was looking for. Thanks for sharing it!

Ethan, these directions were exactly what I needed. Thanks so much for this guide. Huge help!

Best Regards,
-Conjuror

It said ‘Detected unsupported x-86 environment’ and did not install after i did $ sudo sh ./VBoxLinuxadditions-x86.run

I have a pentium system.

Thank you, Ethan.
Pradip, if you managed installing the “VBoxLinuxAdditions.run”, you can just go to menu Control->fullscreen mode to enable a full screen resolution.

Great Information…Exactly What I was looking for…

Thanks a Lot Ethan.

Work great just that the exe is called VBoxLinuxadditions-x86.run
Thanks again

After I appeneded the terminal cmd with -x86 the install went fine (took me 30 minutes, 3 restarts, 2 ciggarettes to get to 6 seconds of inspecting the file names.) With that my first investigation into linux since madrake in the late 90’s has been fabulous; I’m running dual monitors, one page one landscape and Ultramon coordinating the two. Ubuntu in VB now perfectly fills one and the mouse transits seemlessly between the two OS/monitors. Thank you so much for taking the time Ethan. Cheers!

nice suggestion. It works!! thanks for the tips.

Thanks for this guide, it really helped me with my problem. Cheers and keep up this good work :)

Really helpful, wish i could write something like this!

What Do You Think?

 
53 queries / 0.223 seconds.