after installing 12.2 and getting it working I installed Vbox 4.2 with extensions. It did not leave an icon anywhere in kickoff, which it should. When I start it from command line I get a message saying the kernel needs to be recompiled, although Vbox does start. I can set up a virtual machine completely, but it won’t open, saying kernel needs recompiling.
When I recompile I get:
Stopping VirtualBox kernel modules done
Uninstalling old VirtualBox DKMS kernel modules done
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 3.4.6-2.10-desktop cannot be found at
/lib/modules/3.4.6-2.10-desktop/build or /lib/modules/3.4.6-2.10-desktop/source.
failed
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules failed
(Look at /var/log/vbox-install.log to find out what went wrong)
The log shows:
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.2.0
------------------------------
Deleting module version: 4.2.0
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/4.2.0/source ->
/usr/src/vboxhost-4.2.0
DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
I haven’t had a problem recompiling kernel before, assuming make, gcc, etc. were installed. Anybody know what to do here?