Page 1 of 1

Fail to install module in Linux Mint 6

Posted: 25. Dec 2008, 06:26
by azulmarino
Hello,

I've been unable to install Vbox kernel module permanently, I just can load it with "sudo modprobe vboxdrv"

I am using Linux Mint 6 (Felicia)
kernel linux 2.6.27-7-generic

Installed virtualbox packages (all version: 2.0.4-dfsg-0ubuntu1):
virtualbox-ose
virtualbox-ose-guest-source
virtualbox-ose-guest-utils
virtualbox-ose-source

Package virtualbox-ose-modules-2.6.27-7-generic is not available in the repos.

Tried to follow the instructions for module-assistant but get this error:
Build of the package virtualbox-ose-source failed!

Here is the terminal output:
<---------------------------------------------
$ sudo module-assistant auto-install virtualbox-ose-source

Updated infos about 1 packages
Getting source for kernel version: 2.6.27-7-generic
Kernel headers available in /usr/src/linux
Creating symlink...
Couldn't create the /usr/src/linux symlink!
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Done!
unpack
The source tarball could not be found!
Package virtualbox-ose-source not installed?
Running "m-a -f get virtualbox-ose-source" may help.
"/usr/share/modass/packages/default.sh" build KVERS=2.6.27-7-generic KSRC=/usr/src/linux-headers-2.6.27-7-generic KDREV=2.6.27-7.16 kdist_image
find: `/usr/src/modules/virtualbox*': No such file or directory
--------------------------->

I don't know what else to try. Your help is welcome. Cheers!

Posted: 26. Dec 2008, 14:25
by Sasquatch
Remove the Guest Utils, those aren't needed on the HOST.

For the creation of the kernel module, you need build-essential, the kernel headers and the VB source (which you already have). Now you should be able to build the kernel module.

Posted: 26. Dec 2008, 20:08
by azulmarino
Nope. I followed your tip, but I still have the same problem.

$ uname -a
Linux pablo-laptop 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux

I already have the following packages installed:
build-essential
linux-headers-2.6.27-7
linux-headers-2.6.27-7-generic

-------------
$ sudo module-assistant auto-install virtualbox-ose-source
Updated infos about 1 packages
Getting source for kernel version: 2.6.27-7-generic
Kernel headers available in /usr/src/linux-headers-2.6.27-7-generic
Creating symlink...
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
The following packages were automatically installed and are no longer required:
libsdl-ttf2.0-0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Done!
unpack
The source tarball could not be found!
Package virtualbox-ose-source not installed?
Running "m-a -f get virtualbox-ose-source" may help.
"/usr/share/modass/packages/default.sh" build KVERS=2.6.27-7-generic KSRC=/usr/src/linux KDREV=2.6.27-7.16 kdist_image
find: `/usr/src/modules/virtualbox*': No such file or directory
-------------------
:(

Posted: 27. Dec 2008, 21:19
by Sasquatch
Easier solution. Remove everything in your package manager from VirtualBox, go to the home page and download the installer from there. Install that and you should be good to go. No more need for those annoying OSE modules.

Posted: 27. Dec 2008, 21:50
by azulmarino
What you propose is not a solution but an alternative. I want to use the open source version.

So far, I have somehow avoid this mess by adding "sudo modprobe vboxdrv" to my Gnome session startup programs. I have sudo set up to work without password so that works.