LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing VirtualBox from SlackBuild - Slackware 12 - vboxdrv problem (http://www.linuxquestions.org/questions/slackware-14/installing-virtualbox-from-slackbuild-slackware-12-vboxdrv-problem-699114/)

Do7AN 01-22-2009 08:09 AM

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

statguy 01-22-2009 11:44 AM

Quote:

Originally Posted by Do7AN (Post 3417332)
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.

Do7AN 01-22-2009 12:17 PM

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)


astrogeek 01-22-2009 12:40 PM

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


Do7AN 01-22-2009 12:45 PM

Quote:

Originally Posted by astrogeek (Post 3417618)
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.


statguy 01-22-2009 12:45 PM

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.

bathory 01-22-2009 12:55 PM

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.

Do7AN 01-22-2009 01:36 PM

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

statguy 01-22-2009 01:51 PM

Quote:

Originally Posted by Do7AN (Post 3417699)
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.

Do7AN 01-22-2009 01:58 PM

Quote:

Originally Posted by statguy (Post 3417710)
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.


All times are GMT -5. The time now is 06:59 PM.