Installing Ubuntu 9.04 in VirtualBox

I downloaded the latest Ubuntu (version 9.04) and installed it on my laptop the other day.  So I figured wtf? lets loaded it up into VirtualBox on the Mac.

The install went pretty smoothly, pointed VB at the Ubuntu .iso image, installed pretty quickly.  Trying to get the “Guest Add-ons” installed were another story.

So, it seems that the “Guest Add-ons” (GA) support X.org version 1.5.99 and 1.6 … Ubuntu 9.04 ships with 1.6.0.  That trailing .0 makes a difference to the installer.

Here is how to fix :

Mount the add-ons image (Devices -> Install Guest Additions).

You should have a cd icon show up on the ubuntu desktop.

Fire up the terminal window – Applications -> Accessories -> Terminal

george@glaw-desktop:~#  sudo su – <type your login password>

Lets see what parameters the GA support :
root@glaw-desktop:~# bash /media/cdrom/VBoxLinuxAddititions-x86.run –help

Lets extract the installer :
root@glaw-desktop:~# bash /media/cdrom/VBoxLinuxAddititions-x86.run –target /tmp/vb –noexec
root@glaw-desktop:~# cd /tmp/vb

We need to patch the install.sh script so that it will accept Xorg 1.6.0

root@glaw-desktop:~# vi install.sh

Go to line 415, :415 <enter>

change 1.6 to 1.6.0,arrow out to the space after 1.6, hit i to put vi into INSERT mode, then type .0, then hit <esc> to exit INSERT mode.  Line 415 should now read :

1.5.99.* | 1.6.0 )

Save your changes :   : wq <enter> (thats a colon wq) 

root@glaw-desktop:~#

then run the installer

root@glaw-desktop:~# bash install.sh

Reboot and cross your fingers.

root@glaw-desktop:~#  reboot

On the reboot you should have the ability to resize the window, as well as mousing in and out of VB without having to use the host key

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *