VirtualBox

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

VirtualBox

Postby chsims1 » Mon Apr 02, 2007 11:25

For those of you using virtualbox out there, have you come across this problem? Everything seems to emerge OK, but when I try & run the program, I get:

Code: Select all
Error: vboxdrv kernel module is not loaded...
Please load the module before starting VirtualBox.


If I then modprobe vboxdrv I get the following error.

Code: Select all
FATAL: Module vboxdrv not found.


Looking on other forums, the only advice offered was "depmod -a", but this does not remedy the problem in my case.

I have tried emerging both virtualbox & virtualbox-bin, but the error is the same in each case.

Any ideas please?
chsims1
Growing Hen
 
Posts: 128
Joined: Wed Mar 07, 2007 8:53
Location: UK

Postby dave_p_b » Mon Apr 02, 2007 17:04

Hi

Are you sure that you have emerged virtualbox-modules. That's the package that contains the vboxdrv module?

I use virtualbox svn version on SL3.30 64-bit and everything runs fine here.

Cheers

Dave
User avatar
dave_p_b
Old Dear Hen
 
Posts: 607
Joined: Fri Dec 15, 2006 1:39
Location: Exeter, UK

Postby chsims1 » Mon Apr 02, 2007 17:35

yep, virtualbox-modules is installed too.
chsims1
Growing Hen
 
Posts: 128
Joined: Wed Mar 07, 2007 8:53
Location: UK

Postby dave_p_b » Mon Apr 02, 2007 20:57

Hi

Just remembered another thing you have to do.
If you open the file /boot/grub/grub.conf

You need to add nmi_watchdog=0 to the end of the line that starts kernel.

Reboot the machine and try to load the module again.

Cheers

Dave
User avatar
dave_p_b
Old Dear Hen
 
Posts: 607
Joined: Fri Dec 15, 2006 1:39
Location: Exeter, UK

Postby chsims1 » Mon Apr 02, 2007 21:38

Thanks for the reply Dave, but still no joy ..... what does nmi_watchdog=0 do anyway?

One of the things which mystifies me as a SL/Gentoo newbie is how apparently doing the same thing (emerge blah_blah) produces such different results on different PCs. Especially with emerging binaries. Oh well, it's all a learning process, if a little frustrating at times.
chsims1
Growing Hen
 
Posts: 128
Joined: Wed Mar 07, 2007 8:53
Location: UK

Postby dave_p_b » Mon Apr 02, 2007 23:23

Hi

What version of Sabayon are you using? i.e. the mini or DVD versions?

Cheers

Dave
User avatar
dave_p_b
Old Dear Hen
 
Posts: 607
Joined: Fri Dec 15, 2006 1:39
Location: Exeter, UK

Postby chsims1 » Tue Apr 03, 2007 8:30

Mini .... am I likely to be missing some essential package/s?
chsims1
Growing Hen
 
Posts: 128
Joined: Wed Mar 07, 2007 8:53
Location: UK

Postby wolfden » Tue Apr 03, 2007 8:37

emerge virtualbox-bin

should install 3 packages I believe -verify they are installed
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby chsims1 » Tue Apr 03, 2007 11:41

With a bit more fiddling I notice that the virtualbox-modules uses a gentoo kernel source during compilation:

Code: Select all
Found sources for kernel version:
 *     2.6.20-gentoo-r4
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-1.3.8.tar.bz2 to /var/tmp/portage/app-emulation/virtualbox-modules-1.3.8/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-emulation/virtualbox-modules-1.3.8/work/vboxdrv-1.3.8 ...
 * Preparing vboxdrv module
  Building modules, stage 2.
>>> Source compiled.
>>> Test phase [not enabled]: app-emulation/virtualbox-modules-1.3.8

>>> Install virtualbox-modules-1.3.8 into /var/tmp/portage/app-emulation/virtualbox-modules-1.3.8/image/ category app-emulation
 * Installing vboxdrv module
>>> Completed installing virtualbox-modules-1.3.8 into /var/tmp/portage/app-emulation/virtualbox-modules-1.3.8/image/

strip: i586-pc-linux-gnu-strip --strip-unneeded
>>> Merging app-emulation/virtualbox-modules-1.3.8 to /
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.20-gentoo-r4/
--- /lib/modules/2.6.20-gentoo-r4/misc/
>>> /lib/modules/2.6.20-gentoo-r4/misc/vboxdrv.ko


Now, my kernel from uname -r is 2.6.20-sabayon-r3 .... presumably this is the problem, but what is the solution? The gentoo-r4 appears from when I was trying to recompile my kernel a few days ago & I managed to end up with that one somehow. I recompiled correctly, and as I said above is reported as sabayon-r3 now. So, do I simply remove the gentoo-r4 files, or is this going to get me into deep trouble?
chsims1
Growing Hen
 
Posts: 128
Joined: Wed Mar 07, 2007 8:53
Location: UK

Postby wolfden » Tue Apr 03, 2007 11:58

check your kernel you are actually using -

Code: Select all
uname -r


than see what kernel u are set to
Code: Select all
eselect kernel list


if the * is on the wrong kernel change it to the right one

Code: Select all
eselect kernel set 1


or whatever the number is for your kernel than recompile
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Next

Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 1 guest