Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


Search this Thread
Old 04-20-2013, 12:06 PM   #1
Registered: Apr 2012
Distribution: Slackware
Posts: 41

Rep: Reputation: 2
Have to issue /etc/rc.d/rc.vboxdrv start every time I start virtual machine

I have set the executable bit for /etc/rc.d/rc.vboxdrv. But every time I start virtual machine, I have to start the service first. Or VirtualBox would give a message saying it failed to open a session for the virtual machine and that my kernel driver was not installed.

I am using -current and virtualbox 4.2.10 in the slackbuilds.

Would someone help me fix this? thanks.

Last edited by lihongwu; 04-21-2013 at 01:06 AM. Reason: marked problem as solved.
Old 04-20-2013, 12:18 PM   #2
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 301

Rep: Reputation: 47
Put a line "sh /etc/rc.d/rc.vboxdrv start" into /etc/rc.d/rc.local
Old 04-20-2013, 12:23 PM   #3
Senior Member
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
Did you do this?

from the README.SLACKWARE included with the slackbuild;

You'll need to add the following lines to /etc/rc.d/rc.local:

        # Start vboxdrv
        if [ -x /etc/rc.d/rc.vboxdrv ]; then
          /etc/rc.d/rc.vboxdrv start

This will load the support kernel module for VirtualBox.

You'll then need to add the following lines to /etc/rc.d/rc.local_shutdown:

        # Stop vboxdrv
        if [ -x /etc/rc.d/rc.vboxdrv ]; then
          /etc/rc.d/rc.vboxdrv stop

Last edited by mrclisdue; 04-21-2013 at 08:29 AM. Reason: c & p error
1 members found this post helpful.
Old 04-20-2013, 01:51 PM   #4
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
For years I have had the following in my rc.local:

  # Is this box providing virtualbox host services?
  # VirtualBox driver.
  if [ -x /etc/rc.d/rc.vboxdrv ] && [ ! -e /lib/modules/`uname -r`/misc/vboxadd.ko ]; then
    if [ -e /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then
      /etc/rc.d/rc.vboxdrv start
      /etc/rc.d/rc.vboxdrv setup
  # VirtualBox network.
  if [ -x /etc/rc.d/rc.vboxnet ] && [ ! -e /lib/modules/`uname -r`/misc/vboxadd.ko ]; then
    /etc/rc.d/rc.vboxnet start
Old 04-21-2013, 01:04 AM   #5
Registered: Apr 2012
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 2
Thank you all for the informative post. Problem solved by adding specific commands to /etc/rc.d/rc.local :-)



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
cant start vboxdrv, no permission Pluribootent Slackware 2 06-03-2010 12:57 PM
Can't start the Java Virtual Machine - memory problem? the182guy Debian 5 04-03-2009 01:16 PM
virtualbox's virtual machine start on boot paul_mat Linux - Server 1 03-06-2008 07:56 AM
Unable to start virtual machine satimis Linux - Server 7 12-20-2007 12:08 AM
Can I gett KPPP to start when I start a browser on a network machine? duffboygrim Linux - Networking 0 03-25-2004 05:49 PM

All times are GMT -5. The time now is 07:50 AM.

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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration