Installing Guest Adds in Ubuntu, can't build kernel modules
Posted: 15. Apr 2010, 08:53
Hello, I am having trouble installing the Guest Additions into an appliance. I'm running VirtualBox 3.1.6 on Mac OS X 10.6.3 as my host and the LAMP/Symfony appliance from Turnkey Linux (v2009.10-2) (which is Ubuntu) is the guest. I've been trying to read the various instructions and hints, but I can't get the GAs to install. After downloading and installing the appliance (and confirming that networking and everything else is working), I perform the following:
I then rebooted the guest, mounted the Guest Additions and then ran VBoxLinuxAdditions-x86.run:
Here is the response I get:
Here is the content of log file:
This is my version of the Turnkey appliance:
I'm very new at this, so any pointers would be appreciated. Thanks.
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