views:

782

answers:

3

Ive installed Ubuntu inside of a Sun VirtualBox. When I maximise the VirtualBox window the Ubuntu window stays the same size and does not dynamically grow with the size of the VirtualBox window.

Ive seen this done before. How do I set it up? (And no Im not just looking for how to increase the screen resolution)

Thanks

+1  A: 

You need to install Virtualbox Additions inside the guest OS. It can be done by selecting "Devices -> Install Virtualbox Additions".

This will mount the install CD image to the guest machine cdrom if the additions are available for Ubuntu. If they are not, you can install them by following some of the tutorials found on Google. For example, this one.

Igor Zinov'yev
+2  A: 

You need to install the VirtualBox Guest Additions.
Go to Synaptics an mark the packages:

virtualbox-ose-guest-utils
virtualbox-ose-guest-x11

or go to the console and type:

sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-x11

This will enable most of the VirtualBox drivers in your system. If you need USB support, you need to install the guest additions from the devices menu of your VirtualBox window. This is described at ubuntu-tutorials

Hardcoded
Installed the above packages, then went 'Devices' >'Install Guest Additions', after which it mapped a CDROM onto the desktop.Inside the files did not match the tutorial, instead it had a readme file..
Evolve
README:Sun VirtualBox Guest AdditionsWhere have the Windows drivers gone?- The Windows Guest Additions drivers were removed from this directory to save space on your hard drive. To get the files you have to extract them from the Windows Guest Additions installers: To extract the 32-bit drivers to "C:\Drivers", do the following: VBoxWindowsAdditions-x86 /extract /D=C:\DriversI ran the above command 'VBoxWindowsAdditions-x86 /extract /D=C:\Drivers' and got the error 'VBoxWindowsAdditions-x86: command not found'.. what next?
Evolve
You need just one of them, either the packages mentioned above, or the guest additions from the devices menu.You have to make sure your OS-settings are correct for your virtual machine (They have Ubuntu as an option). Then call "install guest additions" and run "./VBoxLinuxAdditions-x86.run" at the mounted CD.
Hardcoded
A: 

Fixed the above problem with regards to 'The Windows Guest Additions drivers were removed from this directory to save space on your hard drive'

Seems there's a bug in using 'Devices' > 'Install Guest Additions' when the os is loaded and that the image this mounts is incomplete and does not include all the necessary files (infact it had about 4 files and a readme)

Went back to the VirtualBox manager and picked 'Guest Additions' as the mountable CDROM drive there, that exposed the correct mounted drive and all worked per the earlier provided tutorial instructions.

Evolve