How to change the screen resolution in Sun's virtual box
- Make sure that the assigned graphics memory to the virtual box is at least 12MB. This you find in the configuration of virtual box -> General -> Basic.
- Go to "Devices" and choose "Install Guest Additions"
- Boot up Ubuntu
- Change to the cdrom directory
VBoxLinuxAdditions.run as sudo
This creates the file
sudo sh ./VBoxLinuxAdditions.run
/etc/X11/xorg.conf so that it looks like this:
You can insert any mode you like in "Modes".
Identifier "Configured Video Device"
Identifier "Configured Monitor"
Identifier "Default Screen"
Device "VirtualBox graphics card"
Monitor "Generic Monitor"
Modes "1280x800" "1024x768"
- Restart X by pressing CTRL+ALT+BACKSPACE.