LinuxQuestions.org
Visit Jeremy's Blog.
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 04-20-2013, 11:06 AM   #1
lihongwu
LDteam
 
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 12:06 AM. Reason: marked problem as solved.
 
Old 04-20-2013, 11:18 AM   #2
kite
Member
 
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, 11:23 AM   #3
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,047

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

from the README.SLACKWARE included with the slackbuild;

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

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
        fi
cheers,

Last edited by mrclisdue; 04-21-2013 at 07:29 AM. Reason: c & p error
 
1 members found this post helpful.
Old 04-20-2013, 12:51 PM   #4
Woodsman
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:

Code:
  # 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
    else
      /etc/rc.d/rc.vboxdrv setup
    fi
  fi
  # VirtualBox network.
  if [ -x /etc/rc.d/rc.vboxnet ] && [ ! -e /lib/modules/`uname -r`/misc/vboxadd.ko ]; then
    /etc/rc.d/rc.vboxnet start
  fi
 
Old 04-21-2013, 12:04 AM   #5
lihongwu
LDteam
 
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 :-)
 
  


Reply

Tags
virtualbox


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


All times are GMT -5. The time now is 08:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration