Increasing Screen Size/Resolution on a VirtualBox Instance of Centos
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" EndSubSection EndSection
Does anyone know how to do this?
How much video memory have you allocated to the graphics card in VB? Have you installed guest additions?
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 (http://www.virtualbox.org/manual/ch04.html#idp11274368), so I'm looking into that now - thank you for the tip.
This seems to have solved my problem. For those looking for the ISO it is available here as VBoxGuestAdditions_4.1.6.iso - http://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/ directory
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+Backspacefrom 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.
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.
I just followed this answer to fix the same problem with CentOS 7. I had to install kernel headers before `autorun.sh` in the Guest Additions cd would work. The error message from `autorun.sh` gives the names of the packages to install with `yum`. After installing Guest Additions, I just restarted the VM, and the problem is magically fixed.