LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2009, 08:09 AM   #1
Do7AN
LQ Newbie
 
Registered: Nov 2006
Location: philadelphia, PA
Distribution: Slackware current
Posts: 27

Rep: Reputation: 15
Installing VirtualBox from SlackBuild - Slackware 12 - vboxdrv problem


I have installed the following packages

virtualbox-kernel-2.0.6_2.6.27.7_smp-i486-1_SBo.tgz
virtualbox-kernel-addons-2.0.6_2.6.27.7_smp-i486-1_SBo.tgz
virtualbox-ose-2.0.6-i486-2_SBo.tgz
virtualbox-ose-addons-2.0.6-i486-2_SBo.tgz
xalan-c-1.10.0-i486-2_SBo.tgz
xalan-c-1.10.0-i486-2_SBo.tgz
acpica-20080829-i486-1_SBo.tgz

qt3.3.8b installed with 12.2

I added the following to rc.local
Code:
# Start vboxdrv
if [ -x /etc/rc.d/rc.vboxdrv ]; then
. /etc/rc.d/rc.vboxdrv start
fi

# Start vboxnet
if [ -x /etc/rc.d/rc.vboxnet ]; then
. /etc/rc.d/rc.vboxnet start
fi
when I run /etc/rc.d/rc.vboxdrv setup I get the following:

Code:
root@jdslack:/etc/rc.d# /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)
The log tells me that there is a problem with line 255 of rc.vboxdrv

which looks like this
Code:
255 if ! $BUILDINTMP install > $LOG 2>&1; then
256        failure "Look at $LOG to find out what went wrong"
257 fi
Does anyone know what is wrong with my install?

Thank you - please let me know if I did not provide enough information
 
Old 01-22-2009, 11:44 AM   #2
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Quote:
Originally Posted by Do7AN View Post
when I run /etc/rc.d/rc.vboxdrv setup I get the following:

Code:
root@jdslack:/etc/rc.d# /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)
I just installed VirtualBox yesterday with no trouble. Why are you doing

Code:
/etc/rc.d/rc.vboxdrv setup
in the first place?

I never gave the setup argument on my system and everything works just fine.
 
Old 01-22-2009, 12:17 PM   #3
Do7AN
LQ Newbie
 
Registered: Nov 2006
Location: philadelphia, PA
Distribution: Slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
when I run VirtualBox3 from a terminal I get this message

Code:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.27.7-smp) 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.
Also on startup I get this message

Code:
Starting VirtualBox kernel module ...failed!
  (No suitable module for running kernel found)

Last edited by Do7AN; 01-22-2009 at 12:43 PM.
 
Old 01-22-2009, 12:40 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Although you have added the start code blocks to rc.local, double check to be sure that /etc/rc.d/rc.vboxdrv and /etc/rc.d/rc.vboxnet are both executable, and if not set them to be.

I suspect the message about running 'setup' may be misleading you and the problem is simply that the start scripts have not been run because the kernel module is not loaded, as it says.

What happens if you run the start scripts from the command line as root?

Code:
/etc/rc.d/rc.vboxdrv start
/etc/rc.d/rc.vboxnet start
 
Old 01-22-2009, 12:45 PM   #5
Do7AN
LQ Newbie
 
Registered: Nov 2006
Location: philadelphia, PA
Distribution: Slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by astrogeek View Post
Although you have added the start code blocks to rc.local, double check to be sure that /etc/rc.d/rc.vboxdrv and /etc/rc.d/rc.vboxnet are both executable, and if not set them to be.

I suspect the message about running 'setup' may be misleading you and the problem is simply that the start scripts have not been run because the kernel module is not loaded, as it says.

What happens if you run the start scripts from the command line as root?

Code:
/etc/rc.d/rc.vboxdrv start
/etc/rc.d/rc.vboxnet start
I get this
Code:
root@jdslack:/home/john# /etc/rc.d/rc.vboxdrv start
Starting VirtualBox kernel module ...failed!
  (No suitable module for running kernel found)
root@jdslack:/home/john# /etc/rc.d/rc.vboxnet start
Starting VirtualBox host networking ...done.
 
Old 01-22-2009, 12:45 PM   #6
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Here is what worked for me.

I compiled/installed the acpica package.

I compiled/installed the virtualbox-ose package (created the vboxusers group and added myself to it).

I compiled/installed the virtualbox-kernel package (after installing the virtualbox-ose package).

I edited rc.local and rc.local_shutdown as suggested, made rc.vboxdrv and rc.vboxnet executable and ran the start-up commands I just added to rc.local.

I didn't use the add-on packages since it appeared they were only needed for slackware guest sessions.
 
Old 01-22-2009, 12:55 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It looks that the slackbuild you have installed is for a different kernel (2.6.27.7) that the one you're using, or you don't have kernel sources installed.
You can d/l and install the binary from virtualbox.org that will detect your kernel version during installation and compile the appropriate vbox module.
 
Old 01-22-2009, 01:36 PM   #8
Do7AN
LQ Newbie
 
Registered: Nov 2006
Location: philadelphia, PA
Distribution: Slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you for your help. it is working!!!!!!! Your guys Rock!!!

I can only run VirtualBox3 when i'm root can I change that after compiling?

I have my user account added to vboxusers group but its not allowing me to start VirtualBox

Last edited by Do7AN; 01-22-2009 at 01:50 PM.
 
Old 01-22-2009, 01:51 PM   #9
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Quote:
Originally Posted by Do7AN View Post
Thank you for your help. it is working!!!!!!! Your guys Rock!!!

I can only run VirtualBox3 when i'm root can I change that?
Yes. Make sure you have the group vboxusers in /etc/group and then add yourself to that group.

You edited while I was posting. Did you add the group as per the README file in the Slackbuild first? If not, I would uninstall, rebuild and reinstall.

Before doing that, log out and log back in. That's what I had to do the first time.

Last edited by statguy; 01-22-2009 at 01:55 PM.
 
Old 01-22-2009, 01:58 PM   #10
Do7AN
LQ Newbie
 
Registered: Nov 2006
Location: philadelphia, PA
Distribution: Slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by statguy View Post
Yes. Make sure you have the group vboxusers in /etc/group and then add yourself to that group.

You edited while I was posting. Did you add the group as per the README file in the Slackbuild first? If not, I would uninstall, rebuild and reinstall.

Before doing that, log out and log back in. That's what I had to do the first time.
Thank you, Ill give that a try.
 
  


Reply



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
VirtualBox.SlackBuild problems joegumbo Slackware 2 09-01-2008 01:44 PM
problem with virtualbox and vboxdrv driver shifter Ubuntu 2 06-08-2008 11:10 AM
problem with virtualbox and vboxdrv driver shifter Linux - Software 1 06-07-2008 11:14 AM
Problem installing mad-wifi slackbuild on new kernel der_11 Slackware 2 08-07-2007 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:48 PM.

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