Thursday, April 2, 2009

VirtualBox 2.1.4 and Ubuntu 9.04

When you try to install Guest Additions in Ubuntu 9.04 after executing the installer:
sudo sh ./ 
You will get the following error message: Warning: unknown version of the X Window System installed. Not installing X Window System drivers. What should you do? One work around for this problem Mount the VirtualBox Guest Additions CD. enter the following command in terminal:
$cd /media/cdrom/ 
Extract the installer: (Choose which file to extract ('x86' or 'amd64') and which directory will be target directory '/vbox').
sudo ./ --target /vbox
cd /vbox 
Open file with gedit editor:
sudo gedit 
In Line 415 change '1.5.99.* | 1.6 )' to '1.5.99.* | 1.6.0 )' Save and exit the file Now run installer:
sudo ./
Reboot your system.