-   Slackware (
-   -   Problems installing VirtualBox on Slackware 11.0 (

SamInside 02-07-2009 06:26 PM

Problems installing VirtualBox on Slackware 11.0
Hi. I've downloaded the "All distributions i386" VirtualBox version. On a website I've read this steps to follow:
1-Run the installer
2-Run /etc/rc.d/rc.vboxdrv setup to build the necessary kernel modules (it?s necessary to have the current kernel?s source on /usr/src/linux)
3-Add /etc/rc.d/rc.vboxdrv and /etc/rc.d/rc.vboxdrv to /etc/rc.d/rc.local to start on system boot
4-Add your user to the vboxusers group on /etc/group
I'm stuck at the secound step.

I do:

/etc/rc.d/rc.vboxdrv setup
and it gives me this output:

Root [~] --> /etc/rc.d/rc.vboxdrv setup
Stopping VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)

so I go to see the log file:

make KBUILD_VERBOSE=1 -C /lib/modules/ SUBDIRS=/tmp/vbox.4 SRCROOT=/tmp/vbox.4 modules
make -C  /tmp/vbox.4 CFLAGS="-D__KERNEL__ -I/usr/src/linux- -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time -DMODULE" MAKING_MODULES=1 modules
make[2]: *** No rule to make target `modules'.  Stop.
make[1]: *** [_mod_/tmp/vbox.4] Error 2
make: *** [vboxdrv] Error 2


If I try to launch VirtualBox, it says:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
        available for the current kernel ( 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.

then the program starts, but of course it doesn't work.
How can I complete the installation of this Virtual Machine? I have the kernel sources, as requested, at "/usr/src/linux/".

Useful info:

Root [~] --> cat /etc/slackware-version
Slackware 11.0.0


Root [~] --> uname -a
Linux localhost #1 Fri Sep 1 01:48:52 CDT 2006 i686 pentium4 i386 GNU/Linux

{BBI}Nexus{BBI} 02-07-2009 08:53 PM


Originally Posted by SamInside (Post 3435586)

This is the current kernel version you are currently running. What you need is the kernel-source or kernel-devel files that match this version. Check your package manager for the source/devel files and install it. Then start the install again. VirtualBox may be already available in your package manager, if so installing it from there will take care of all dependencies.

SamInside 02-08-2009 07:11 AM

You are right, but as I said I already have the Kernel Source installed.
But (I don't know why) I get problems launching "/etc/rc.d/rc.vboxdrv setup", as I posted.

SamInside 02-08-2009 08:32 AM

Yeah, I've updated the kernel to 2.6.17 and now it works!

All times are GMT -5. The time now is 09:34 AM.