Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-07-2009, 05:26 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
Exclamation 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
Old 02-07-2009, 07:53 PM   #2
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Originally Posted by SamInside View Post
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.
Old 02-08-2009, 06:11 AM   #3
LQ Newbie
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Last edited by SamInside; 02-08-2009 at 06:59 AM.
Old 02-08-2009, 07:32 AM   #4
LQ Newbie
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Yeah, I've updated the kernel to 2.6.17 and now it works!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Success/failure reports installing Windows 7 beta in VirtualBox on Slackware 12.2 ? Didier Spaier Slackware 8 03-27-2009 04:46 AM
Installing VirtualBox from SlackBuild - Slackware 12 - vboxdrv problem Do7AN Slackware 9 01-22-2009 01:58 PM
Resolution problems with Slackware as VirtualBox guest zoran119 Slackware 7 08-25-2008 08:40 PM
VirtualBox and Slackware guest (problems resizing desktop) gmartin Slackware 10 07-20-2008 10:41 AM
Permission problems after installing virtualbox . minkynink Linux - Newbie 2 04-30-2008 11:00 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration