How to adjust screen resolutions under VirtualBox for Linux

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to adjust screen resolutions under VirtualBox for Linux

Post by Saman » Sat May 08, 2010 3:24 am

VirtualBox is one of the many virtualization softwares available online. In Nutshell, virtualization software helps you to try out different Operating system without affecting your original operating system.

This article shows how to increase screen resolution of Linux distributions (Tested on Ubuntu and CentOS) in VirtualBox. (By default, VirtualBox only shows two screen resolutions).
  1. Start Virtual box and log into Linux.
  2. Hit the right ctrl key so you can get your mouse pointer outside the virtual machine.
  3. Go to top of virtual window, click on devices then select "Install Guest Additions"
    You will see a window pop up inside Linux showing you that there are some new files mounted in a virtual CDROM drive. One of those files should be VBoxLinuxAdditions.run
  4. Click inside the Linux screen again then go to Applications - Accessories then Terminal. The terminal window is where you will run the file from, but first we must navigate to the correct directory.
  5. Type this... cd /media/cdrom0 (then hit enter, there is a space after cd!)
  6. Next type... dir (You should see amongst the files displayed VBoxLinuxAdditions.run)
  7. Now type... sudo sh ./VBoxLinuxAdditions.run (yes, that is a full stop before the slash!) after you hit enter and it has done its stuff, the files are now accessible from Linux.
  8. You now need to reboot the virtual machine or press Ctrl+Alt+backspace.
  9. Log onto the Linux desktop and this time go to System - Preferences then Screen Resolution. You should now have more options.
Post Reply

Return to “Linux”