I have had no success with Guest Additions in Ubuntu 12.04. Last night I decided to go through Software Center and just follow the prompts. When I try to run the script VBoxLinuxAdditions.run the terminal returns:
I understand from searching that it suggests a problem with the linux kernel headers not matching between host and guest. I have tried uninstalling and installing linux-headers as well as dkms but still come up with the above failure. Any ideas would be appreciated.
Code:
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.12 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.2.16 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxguest failed)
Installing the Window System drivers
Installing X.Org Server 1.11 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.