Virtualbox upgrade problem (SOLVED)

Questions about applications and software
Forum rules
Before you post please read how to get help

Virtualbox upgrade problem (SOLVED)

Postby Fornhamfred on Sun Oct 26, 2008 3:04 pm

I had virtualbox 2.0.2 installed and working fine when A message was displayed saying that 2.0.4 was ready to download. I downloaded the file from sun and package installer attempted to install it. This was not successful and I then uninstalled 2.0.4 and downloaded the old version 2.0.2 for hardy.

When this attempts to install the following message is given:

VirtualBox will not start until this problem is fixed. Please consult /var/log/vbox-install.log to find out why the kernel module does not compile. Most probably the kernel sources were not found. Install them and execute

/etc/init.d/vboxdrv setup

as root

It also suggested that DKMS should be installed , which I did. I checked that the correct kernel source was installed 2.6.24-16 generic and the ran the script as above.

The log then gave the following:

Attempting to install using DKMS
removing old DKMS module vboxdrv version

Error! Invalid number of parameters passed.
Usage: remove -m <module> -v <module-version> --all
or: remove -m <module> -v <module-version> -k <kernel-version>

------------------------------
Deleting module version: 2.0.2
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/2.0.2/source ->
/usr/src/vboxdrv-2.0.2

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.24-16-generic cannot be found at
/lib/modules/2.6.24-16-generic/build or /lib/modules/2.6.24-16-generic/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:142: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

Can anyone tell me how to carry out this instruction or where I may have gone wrong please.
Last edited by Fornhamfred on Mon Nov 03, 2008 1:35 pm, edited 1 time in total.
Fornhamfred
Level 6
Level 6
 
Posts: 1141
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Linux Mint is funded by ads and donations.
 

Re: Virtualbox upgrade problem

Postby Mastering Mint on Wed Oct 29, 2008 3:39 am

I have had the exact same problem. This happens when you update your linux kernal, the virtual box kernal must be rebuilt for the new kernal. the command is:

Code: Select all
sudo /etc/init.d/vboxdrv setup


This will go through three short steps and rebuild the VB kernal.
Mastering Mint
Level 1
Level 1
 
Posts: 2
Joined: Wed Oct 29, 2008 3:28 am

Re: Virtualbox upgrade problem

Postby Fornhamfred on Wed Oct 29, 2008 3:29 pm

Thanks for your reply.

I have tried your suggestion but no joy.

The terminal output is as follows:

wilf@Mint-Elyssa ~ $ sudo /etc/init.d/vboxdrv setup
[sudo] password for wilf:
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong
wilf@Mint-Elyssa ~ $ sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong
wilf@Mint-Elyssa ~ $

The log file has no new entries just those listed in the previous post.

I have checked the /lib/modules/2.6.24-16-generic file and there is no build or source file in the directory. This appears to be the problem but I do not know how to solve it.

If I try to run virtualbox it boots OK but trying to start on of the distros results in a spawning session but this locks the application at 0%.
Fornhamfred
Level 6
Level 6
 
Posts: 1141
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox upgrade problem

Postby Mastering Mint on Sat Nov 01, 2008 1:48 am

I cant help you anymore than i already have, sorry :(

Try the UBUNTU FORUMS and Mint is based on Ubuntu, maby some help there
Mastering Mint
Level 1
Level 1
 
Posts: 2
Joined: Wed Oct 29, 2008 3:28 am

Re: Virtualbox upgrade problem

Postby Fornhamfred on Sat Nov 01, 2008 3:40 am

Thanks.

I have searched the Ubuntu forums and found what seems to be the problem, but the solutions suggested have had no effect. All I can think of is a complete removal of virtualbox and re-installing but having tried this without success I am lost. Does anyone know if there any other files which should be removed after complete removal through synaptic?
Fornhamfred
Level 6
Level 6
 
Posts: 1141
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox upgrade problem (SOLVED)

Postby Fornhamfred on Mon Nov 03, 2008 1:48 pm

Update.

After full removal with synaptic and removing all files I could identify following these instructions:
Take note of the files installed (depending on installation method).
Remove using the removal tool (depending on installation method).
Check for leftovers and, in particular the files in /etc/init.d, in /etc/rc[0123456s].d and (most importantly!) in /etc/network/if-post-down.d/, /etc/network/if-pre-up.d/ and /etc/udev/rules.d/.
Reboot.
Re-install
After installation I had to install the linux headers for my kernel from the repros and then recompile the kernel module with
sudo /etc/init.d/vboxdrv setup
Fornhamfred
Level 6
Level 6
 
Posts: 1141
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 11 guests