Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have VirtualBox instance of Centos 5. The screen size is quite small (800*600) and I'd like to increase it to 1280*1080. Under the Gnome preferences for "Screen Resolution" I only get the option for 600*800 or 640*480.

I've tried editing my xorg.conf (based on this tutorial http://paulsiu.wordpress.com/2008/09/08/creating-and-managing-centos-virtual-machine-under-virtualbox/) but it doesn't seem to have made a difference. Here is a snippet from the edited section:

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes   "1280x800"

Does anyone know how to do this?

share|improve this question
How much video memory have you allocated to the graphics card in VB? Have you installed guest additions? – Gilles Nov 23 '11 at 23:42
According to the Device Manager it's the VirtualBox Graphics Adapter - looking into this now. EDIT - it looks like it may be an option under the Guest Additions (virtualbox.org/manual/ch04.html#idp11274368), so I'm looking into that now - thank you for the tip. – Aaron Newton Nov 23 '11 at 23:45
This seems to have solved my problem. For those looking for the ISO it is available here as VBoxGuestAdditions_4.1.6.iso - download.virtualbox.org/virtualbox/4.1.6. I mounted this using the VirtualBox Devices > CD/DVD > Choose DVD Disk File menu and ran "sh VboxLinuxAdditions.run" from the media/<nameofdisk> directory – Aaron Newton Nov 24 '11 at 1:31
up vote 12 down vote accepted

A maximum resolution of 800x600 suggests that your X server inside the virtual machine is using the SVGA driver. SVGA is the highest resolution for which there is standard support; beyond that, you need a driver.

VirtualBox emulates a graphics adapter that is specific to VirtualBox, it does not emulate a previously existing hardware component like most other subsystems. The guest additions include a driver for that adapter. Insert the guest additions CD from the VirtualBox device menu, then run the installation program. Log out, restart the X server (send Ctrl+Alt+Backspace from the VirtualBox menu), and you should have a screen resolution that matches your VirtualBox window. If you find that you still need manual tweaking of your xorg.conf, the manual has some pointers.

There's a limit to how high you can get, due to the amount of memory you've allocated to the graphics adapter in the VirtualBox configuration. 8MB will give you up to 1600x1200 in 32 colors. Going beyond that is mostly useful if you use 3D.

share|improve this answer
Thank you - marked as the correct answer as installing the VirtualBox Guest additions seems to have solved my problem. See my note above if you don't have the installation CDs. – Aaron Newton Nov 24 '11 at 1:55

I had the same problems with different setup:

Host OS: Linux Mint 17 Cinnamon 64-bit Guest OS: Centos 6.6 Virtualbox: Oracle VM VirtualBox Manager 4.3.10_Ubuntu

Solution which worked for me:

  1. Install Virtualbox --> Devices, Insert Guest Additions CD image

Code: Select all Expand view [root@centos6 ~]# cd /media/VBOXADDITIONS_4.3.10_93012/ ./VBoxLinuxAdditions.run

  1. get custom resolution string:

Code: Select all Expand view [root@centos6 ~]$ cvt 1600 900 # 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync

  1. set custom resolution string:

Code: Select all Expand view [root@centos6 ~]$ xrandr Screen 0: minimum 64 x 64, current 1024 x 768, maximum 16384 x 16384 VBOX0 connected 1024x768+0+0 0mm x 0mm 1024x768 60.0*+ 60.0* 1600x1200 60.0 1440x1050 60.0 1280x960 60.0 800x600 60.0 640x480 60.0

    [root@centos6 ~]$ xrandr --newmode "1600x900_60.00" 118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync

    [root@centos6 ~]$ xrandr --addmode VBOX0 "1600x900_60.00"
  1. use normal system administration config dialog to change resolution to 1600 x 900 which was not available before.

HTH, Magnus

share|improve this answer
Please set your profile name, and remove the signature under your answer, that is the recommended way to "identify" yourself on this site. (I.e. keep Answers and Questions crisp) – Anthon Jan 3 '15 at 19:43
in centos 6 - after restarting the guest additional size options appeared and were made available to use successfully without adding a custom resolution. – Ross Dec 31 '15 at 4:57

You need Virtual Box guest extensions.

In order to install them you first need the RPMForge repository added for yum, follow these instructions:


Then run this command in a terminal:

yum install dkms
share|improve this answer
Thank you, but I already marked this as the answer last November. – Aaron Newton May 2 '13 at 12:49
@AaronNewton, I totally understand. I just had to go through more research to get it working for me. If I have to do that, I usually post. Not to answer your question as much to maybe help out someone else that comes along and has the same questions with the accepted answer as I did. – Beachhouse May 2 '13 at 15:17

In my case (virtualbox 5 + centos 7), all I did is install the "Guest additional cd image", then restart the vm, and make it full screen when start, it automatically take the biggest resolution.

I think u might forget to reboot or didn't full screen it via host + F.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.