modprobe vboxdrv failed

Discussions related to using VirtualBox on Linux hosts.
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

modprobe vboxdrv failed

Post by benke »

Hi all.

Sorry for bothering you but I just downloaded VirtualBox-2.0.0-36011-Linux_x86.run but having problem with kernel module. When I issue /etc/rc.d/rc.vboxdrv setup it says

Code: Select all

Stopping VirtualBox kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...done.
Starting VirtualBox kernel module ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
The last line got with dmesg is

Code: Select all

vboxdrv: Unknown symbol register_cpu_notifier
If I try to start VirtualBox, I get this message:

Code: Select all

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.20.3) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
I am using VectorLinux 5.8, kernel is 2.6.20.3. Thank you in advance.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

I assume you didn't have a previous version of VB running, else there might be some residual config that is causing this problem. Have you already tried a reboot? If you don't really need the added features of 2.0, use the maintenance release 1.6.6 instead.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

Post by benke »

Thank you for fast reply.

No, I didn't had previous version running. I uninstalled 2.0.0 and now I am downloading 1.6.6...
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

More Infos.

CPU?
Distribution 32 Bit or 64 Bit?
Kernel-source/Header installed in same version than kernel?
gcc installed?

And try this: "sudo /etc/init.d/vboxdrv setup"

If failing, post thge messages in the logfile (path and name in the message).
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

Post by benke »

CPU is Sempron 2500, VectorLinux 5.8 is 32 bit distribution, gcc is installed and kernel source version is same as kernel - 2.6.20.3. vboxdrv goes to /etc/rc.d (it's Slackware-like):

Code: Select all

/etc/rc.d/rc.vboxdrv setup

Stopping VirtualBox kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...done.
Starting VirtualBox kernel module ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)

tail -f /var/log/vbox-install.log

  Building modules, stage 2.
make -f /usr/src/linux-2.6.20.3/scripts/Makefile.modpost
  scripts/mod/modpost   -i /usr/src/linux-2.6.20.3/Module.symvers -I /tmp/vbox.0/Module.symvers -o /tmp/vbox.0/Module.symvers -w  /tmp/vbox.0/vboxdrv.o
WARNING: "register_cpu_notifier" [/tmp/vbox.0/vboxdrv.ko] undefined!
  gcc -m32 -Wp,-MD,/tmp/vbox.0/.vboxdrv.mod.o.d  -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/3.4.6/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i586  -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1  -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -Wdeclaration-after-statement     -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxdrv.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -DMODULE -c -o /tmp/vbox.0/vboxdrv.mod.o /tmp/vbox.0/vboxdrv.mod.c
  ld -m elf_i386 -m elf_i386 -r -o /tmp/vbox.0/vboxdrv.ko /tmp/vbox.0/vboxdrv.o /tmp/vbox.0/vboxdrv.mod.o
make[1]: Leaving directory `/usr/src/linux-2.6.20.3'
1.6.6 works, with lsmod I can see that module is loaded...
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Dont know Vector Linux. For Suse there is a package called "kernel-syms" needed.

Probably here failing something like that?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

1.6.6 works, with lsmod I can see that module is loaded...
So does it also work?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

Post by benke »

Yes, 1.6.6 works just fine, just started Slax ISO under VectorLinux.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

register_cpu_notifier is part of the SMP support in the Linux kernel. I guess that this is missing from the VectorLinux 2.6.20 kernel. Well as long as 1.6.6 works.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

Post by benke »

With make xconfig I can see that it have 'Y' under 'Symmetric multi-processing support (SMP)'...
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

Re: modprobe vboxdrv failed

Post by benke »

Code: Select all

vboxdrv: Unknown symbol register_cpu_notifier
appeared upon installation of VirtualBox 3.0.0 too :-(
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

Re: modprobe vboxdrv failed

Post by benke »

VirtualBox 3.0.0 works under VectorLinux 6.0 which works under VirtualBox 1.6.6 under VectorLinux 5.8 :D

Image

Looks like it's time for OS upgrade...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: modprobe vboxdrv failed

Post by Sasquatch »

Benke, Starting VB is one thing, running a VM will really test the module and you can't do that inside a VM (nested won't work). Did you run the command the TS used?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: modprobe vboxdrv failed

Post by TerryE »

Gosh, I am not sure that I would get any work done with the distraction of that desktop :lol:

As S says, installing and running the VirtualBox GUI is one thing. Running a nested VM is entirely another. If that works I'd be surprised and interested to know.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
benke
Posts: 13
Joined: 6. Sep 2008, 16:08

Re: modprobe vboxdrv failed

Post by benke »

Okay, will try to run Slax, Puppy or something like this to be sure that it really works. Thanks for pointing me but kernel module is loaded...
Post Reply