How to increase Resolution in VirtualBox for Ubuntu 9.04

      Comments Off on How to increase Resolution in VirtualBox for Ubuntu 9.04

vbox_logo2_gradientToday i need to install a VirtualMachine for testing some routing problems. Of course because im not very “standart thinking” boy i tryed something.

On my work PC based on Windows 2008 x64 SP2 i installed a VirtualBox machine, i used ago some year, whet this little german company is not part of the Sun. Some nice surprize with the configuration interface, stability and others.

I what to install Ubuntu 9.04 x64, its no probelm i started the install and after 30 minuts i have a full installed OS.

I try to use my virtualized Ubuntu with COMPIZ anmd for my SURRPRIZE its works.(Use for video memory allocation 128 Mb  and 3D support. ;))

Probelms with RESOLUTION

Ah yeeh of course nothings can works correctly. I need a 1280×1024 resolution, the OS recognized max resolution is 800×600.

So the recipe for repars:


1. Select the VirtualBox Drivers

On the virtualBox windows go to DEVICE->Install Guest Additions… menu. Now probably you have mounted in linux. In my case its not works, i need to reboot, but after i have mounted.

2. Install the VirtualBox drivers

Select a terminal (Big Black Screen with a Little Withe Letters – BBS&LWL) nad install a VirtualGuest additions for your sytem.

[code lang=”bash”]
cd /media/cdrom
sudo ./VBoxLinuxAdditions-amd64.run
[/code]

Some minuts for configure the kernel and the script install the drivers

3. Change the resolutions

No you are need to edit the /etc/X11/xorg.conf file
[code lang=”bash”]
sudo vi /etc/X11/xorg.conf
[/code]

You are need to add the following line in Section “Screen”
[code lang=”bash”]
DefaultDepth 24
SubSection “Display”
Modes “1280×1024” “1280×800” “1024×768” “800×600″
[/code]

Finally your config with modification:

[code lang=”bash”]
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type “man xorg.conf” at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section “Device”
Identifier “Configured Video Device”
EndSection

Section “Monitor”
Identifier “Configured Monitor”
Option “DPMS”
EndSection

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Modes “1280×1024” “1280×800” “1024×768” “800×600”
EndSubSection
EndSection
[/code]

4. Restart the OS

Ok that`s all, reboot to apply the modification and enjoy the big resolution.