LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2017, 05:52 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 419

Rep: Reputation: Disabled
virtualbox modules fail to start


I went to start my virtualbox Win7 guest today and virtualbox told me that I couldn't start the guest because vboxdrv was not loaded. So I tried to load the module:

Code:
root@caitlyn:~# /etc/rc.d/rc.vboxdrv start
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
root@caitlyn:~# dmesg | grep vboxdrv
root@caitlyn:~#
Am I searching dmesg for the wrong string? Why will this not load? Thanks in advance to anyone who can offer advice on dealing with this...
 
Old 05-21-2017, 06:09 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,406
Blog Entries: 27

Rep: Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406
This is a shot in the dark, but, if you have recently had a kernel update to the host system, the odds are that you need to rebuild the VirtualBox kernel to work with the new host kernel.

What distro/version are you using?

Last edited by frankbell; 05-21-2017 at 06:14 PM.
 
Old 05-21-2017, 08:30 PM   #3
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 419

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
This is a shot in the dark, but, if you have recently had a kernel update to the host system, the odds are that you need to rebuild the VirtualBox kernel to work with the new host kernel.

What distro/version are you using?
I'm using Slackware 14.2 64bit. I do my updates every Sunday, so that's probably when it happened. I'm running

Code:
michael@caitlyn ~ $ uname -a
Linux caitlyn 4.9.27 #2 SMP Tue May 9 15:04:33 CDT 2017 x86_64 Intel(R) Pentium(R) CPU G3250 @ 3.20GHz GenuineIntel GNU/Linux
 
Old 05-21-2017, 08:33 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,406
Blog Entries: 27

Rep: Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406
Try this, as root:

Code:
cd /etc/rc.d
./rc.vboxdrv setup
By the by, in the latest kernel on --current (4.9.28), the VirtualBox kernel was automatically updated on reboot.

Last edited by frankbell; 05-21-2017 at 08:35 PM.
 
1 members found this post helpful.
Old 05-21-2017, 08:40 PM   #5
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 419

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Try this, as root:

Code:
cd /etc/rc.d
./rc.vboxdrv setup
By the by, in the latest kernel on --current (4.9.28), the VirtualBox kernel was automatically updated on reboot.
Code:
root@caitlyn:~# cd /etc/rc.d
root@caitlyn:/etc/rc.d# ./rc.vboxdrv setup
Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead.
root@caitlyn:/etc/rc.d#
The Slackbuild it recommends will not build at the moment because of an error:
Code:
*** Building 'vboxdrv' module ***
make[1]: Entering directory '/tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv'
Makefile:194: *** Error: KERN_DIR does not point to a directory.  Stop.
make[1]: Leaving directory '/tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv'
make: *** [Makefile:40: all] Error 2
Any ideas on this one?
 
Old 05-21-2017, 08:54 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,406
Blog Entries: 27

Rep: Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406Reputation: 5406
I fear those errors are beyond my experience. That may be because I installed VB from the *.run file on the VirtualBox website, not from the Slackbuild.
 
Old 05-21-2017, 08:57 PM   #7
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 419

Original Poster
Rep: Reputation: Disabled
Thank you anyway for trying.
 
Old 05-21-2017, 08:59 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,148
Blog Entries: 4

Rep: Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232Reputation: 3232
The VirtualBox support forums might be a good resource for you to turn to now.

Please do report back here, however!
 
Old 05-21-2017, 09:16 PM   #9
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 419

Original Poster
Rep: Reputation: Disabled
I rebooted my computer with the new kernel I just installed this morning. After that, when I tried to sbopkg -i virtualbox-kernel, it gave me the failure about the ALIGN variable, which I know how to fix. I faced that exact error earlier last week. Since I still had my files extracted for that fix, I simply rebuild the slackbuild manually using the files I corrected last week. And now virtualbox is back. Thank you to all who helped me with this.
 
  


Reply


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
[SOLVED] Virtualbox pxe-boot client fail ChrisAbela Slackware 2 09-17-2012 03:17 PM
service ldap start on CentOS fail to start Frezier Linux - Newbie 1 08-15-2011 09:53 AM
Alsa modules fail to load lisa86 Gentoo 6 02-25-2010 03:29 PM
Gentoo Emerge fail (Virtualbox) nesrail Gentoo 1 02-19-2009 11:47 AM
eth0 make modules fail pibevalera Linux - Networking 9 11-28-2001 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:30 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