LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problems installing VirtualBox on Slackware 11.0 (https://www.linuxquestions.org/questions/slackware-14/problems-installing-virtualbox-on-slackware-11-0-a-703015/)

SamInside 02-07-2009 05: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:
Code:

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

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:
Code:

make KBUILD_VERBOSE=1 -C /lib/modules/2.4.33.3/build SUBDIRS=/tmp/vbox.4 SRCROOT=/tmp/vbox.4 modules
make -C  /tmp/vbox.4 CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.33.3/include -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:
Code:

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

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:
Code:

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

Code:

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


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

Quote:

Originally Posted by SamInside (Post 3435586)
2.4.33.3

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 06: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 07: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 04:05 PM.