insmod okay but modprobe and thus /etc/init.d/ script not working as intended

Asked by GaryW

root@ad2k1g:/var/lib/dpkg/info# modprobe -n -v vboxdrv
FATAL: Module vboxdrv not found.
root@ad2k1g:/var/lib/dpkg/info# man insmod
root@ad2k1g:/var/lib/dpkg/info# insmod /lib/modules/$(uname -r)/misc/vboxdrv.ko
root@ad2k1g:/var/lib/dpkg/info# lsmod | grep vbox
vboxdrv 61104 0

if Gutsy should have an /etc/modules.conf then mine is missing
Not sure otherwise how to help modprobe find this .ko file

Any help appreciated,
Gary.

root@ad2k1g:/var/lib/dpkg/info# grep vbox *.list
libgtk2.0-dev.list:/usr/include/gtk-2.0/gtk/gtkvbox.h
virtualbox-ose.list:/etc/vbox
virtualbox-ose.list:/etc/vbox/vbox.cfg
virtualbox-ose.list:/usr/bin/vboxmanage
virtualbox-ose.list:/usr/bin/vboxsdl
virtualbox-ose-modules-2.6.22-14-generic.list:/lib/modules/2.6.22-14-generic/misc/vboxdrv.ko
virtualbox-ose-modules-2.6.22-14-generic.list:/etc/init.d/vboxdrv

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu virtualbox-ose Edit question
Assignee:
No assignee Edit question
Solved by:
GaryW
Solved:
Last query:
Last reply:
Revision history for this message
Old_Soldier (charles.davis) said :
#1

 try sudo /etc/init.d/vboxdrv setup

Revision history for this message
GaryW (gnubyexample) said :
#2

The problem is more general I think in that either the module is in a non-standard place or the search path for modprobe is incomplete.

Both of these inserts were made and one of them seems to have done the trick.
To clarify: modprobe seems not to find the module but using insmod and specifying full path did the trick.

useri@ad2k1g:/etc/init.d$ diff vboxdrv .vboxdrv~1
69,70d68
< #echo "$KDIR/$MODNAME.ko" # Warrk! Stupidhack!
< /sbin/insmod "$KDIR/$MODNAME.ko" # Warrk! Stupidhack!
72,73d69
< #echo "$KDIR/$MODNAME.ko" # Warrk! Stupidhack!
< #insmod /lib/modules/$(uname -r)/misc/vboxdrv.ko # Warrk! Stupidhack!
useri@ad2k1g:/etc/init.d$

# Modified for Ubuntu by dAniel hAhler:
# - Removed "setup" action
# - Removed "/lib/lsb/init-functions"-conditional