Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the dynamically change the window size with Ubuntu on VirtualBox [closed]

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

like image 971
Evolve Avatar asked Nov 27 '09 09:11

Evolve


People also ask

How do I enable auto-resize guest display in VirtualBox Ubuntu?

In addition to ensuring that guest additions is actually installed in the guest machine you should also check the 'Auto-Resize Guest Display' option in the 'View' menu in Virtuablbox (on the host machine). This is a useful tip for me.

How do I fix screen scaling in VirtualBox Ubuntu?

Scroll down through the left menu bar and click on the Display settings. In the display settings section, click on the resolution drop-down menu. From the drop-down menu, simply choose the resolution of your choice.

How do I resize a window in VirtualBox?

In the VM Window menu, go to View and make sure that the Auto-resize Guest Display option is enabled. Move the mouse pointer over the corner of the VM window, push the left mouse button and change the size of the VM window.


3 Answers

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 binary guest additions from the devices menu of your VirtualBox window instead. They have more functions than the OSE ones, but you need to install them manually. This is described at ubuntu-tutorials

Edit: updated Link to a newer article

like image 82
Hardcoded Avatar answered Oct 22 '22 12:10

Hardcoded


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.

like image 43
Igor Zinov'yev Avatar answered Oct 22 '22 13:10

Igor Zinov'yev


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.

like image 31
Evolve Avatar answered Oct 22 '22 11:10

Evolve