Code: Select all
# apt-get update
# apt-get install dkms
# apt-get install bzip2
# apt-get install build-essential linux-headers-generic
# apt-get upgrade
Code: Select all
# mount /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom
# sh ./VBoxLinuxAdditions-x86.run
Code: Select all
# sh ./VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.6 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules ...fail!
(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers ...fail!
(Could not find the X.Org or XFree86 Window System.)
Code: Select all
# cat /var/log/vboxadd-install.log
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.
Code: Select all
# uname -r
2.6.24-27-virtual