LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2017, 03:18 PM   #1
Myra Mayns
LQ Newbie
 
Registered: Apr 2017
Location: Keller, TX
Posts: 6

Rep: Reputation: Disabled
Question Virtual Box Error


i am trying to set up a vm for windows on my laptop. the initial setup went fine. when i try to start the vm, i get this:

kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

i have run both the string above and attempted to install the dkms package, and both abort.

as a newbie, what am i missing?
 
Old 04-16-2017, 03:23 PM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Myra Mayns View Post
i am trying to set up a vm for windows on my laptop. the initial setup went fine. when i try to start the vm, i get this:

kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

i have run both the string above and attempted to install the dkms package, and both abort.

as a newbie, what am i missing?
Are you running the above command as root/superuser?

As, it needs to be run as root/superuser, for it to work.
 
1 members found this post helpful.
Old 04-16-2017, 06:56 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Hi Myra,

Welcome to LQ! Which distribution are you running? How new are you to Linux?
 
Old 04-16-2017, 10:45 PM   #4
Myra Mayns
LQ Newbie
 
Registered: Apr 2017
Location: Keller, TX
Posts: 6

Original Poster
Rep: Reputation: Disabled
VBoz issues

i'm running Mint 18.0.

and i'm an intel troop attempting to learn linux. so far, so good, but i want to have a windows VM to work from as well.
 
Old 04-16-2017, 10:45 PM   #5
Myra Mayns
LQ Newbie
 
Registered: Apr 2017
Location: Keller, TX
Posts: 6

Original Poster
Rep: Reputation: Disabled
and yes, i was running as root.

but i am also confused about root. i installed some app called root, and once i did i could not get out of it back to the standard command prompt other than killing the terminal window...but that's another issue...

Last edited by Myra Mayns; 04-16-2017 at 10:47 PM.
 
Old 04-16-2017, 11:29 PM   #6
DVOM
Member
 
Registered: Nov 2010
Posts: 223

Rep: Reputation: 48
For both Virtualbox and VMware, you need to be sure to have "make" and "gcc" installed. And you need to have the "kernel-headers" installed that match the version of your kernel.

That was for Debian/Ubuntu distros, some distros, maybe fedora?, need "kernel-devel" installed in place of "kernel-headers".

With these programs installed, virtualbox will be able to build the kernel modules.
 
Old 04-18-2017, 09:46 PM   #7
Myra Mayns
LQ Newbie
 
Registered: Apr 2017
Location: Keller, TX
Posts: 6

Original Poster
Rep: Reputation: Disabled
i'll go back to the drawing board...thanks.
 
Old 04-19-2017, 01:21 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
1) don't be root.
2) the error you posted is maybe the single most posted newbie virtualbox error out there. please search a) your distro's forums and b) virtualbox documentation and c) virtualbox forums for same error.
 
Old 04-19-2017, 05:02 AM   #9
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by ondoho View Post
1) don't be root.
ondoho, You need to run the /etc/init.d/vboxdrv setup command as root (as the error message states), otherwise it will not be able to build the kernel module.
 
1 members found this post helpful.
Old 04-19-2017, 09:05 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
1) don't be root.
Guessing they meant "don't run Virtualbox as root".

Code:
sudo /etc/init.d/vboxdrv setup
in a terminal is necessary to comply with Vbox's "instructions".

Just sayin'
 
Old 04-19-2017, 12:20 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
Quote:
Originally Posted by jsbjsb001 View Post
ondoho, You need to run the /etc/init.d/vboxdrv setup command as root (as the error message states), otherwise it will not be able to build the kernel module.
i'm very sorry, i largely misread the op for lack of quote/code tags.
 
Old 04-19-2017, 03:38 PM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
dkms is not required by Virtualbox5.1 and up.

I'd start over using authentic sources:
https://www.virtualbox.org/wiki/Linux_Downloads

http://download.virtualbox.org/virtu...nial_amd64.deb
 
Old 04-23-2017, 03:03 PM   #13
Myra Mayns
LQ Newbie
 
Registered: Apr 2017
Location: Keller, TX
Posts: 6

Original Poster
Rep: Reputation: Disabled
i'm going to blow it away and start over. i need to run some updates, apparently.

thanks all.
 
  


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
Virtual Box error kkazia Linux - Newbie 3 12-18-2015 09:46 AM
[SOLVED] Virtual Box error sachit Linux - Newbie 11 07-15-2015 08:32 AM
[SOLVED] Issues trying to install Virtual Box Guest Additions on RHEL v6.5 in Virtual Box JockVSJock Linux - Virtualization and Cloud 4 07-13-2015 09:14 PM
virtual box gives error deathalele Linux - Software 5 01-26-2009 12:22 PM
virtual box error Mr.mick-duck Mandriva 4 03-16-2008 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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