LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-27-2016, 10:38 AM   #1
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Rep: Reputation: Disabled
VirtualBox not installed in kernel


On 64 bit Ubuntu 14.04, I have two virtual machines installed with Oracle
VirtualBox Version 5.0.20 r106931 that I have used for quite some time.
Several days ago, I attempted to load a virtual machine by pointing to an iso file on my hard drive based on instructions in a magazine.

That, by the way, was unsuccessful, and I deleted the dregs of this (at least I believe I did anyway). Since then, however, each time I reboot, a system error dialog box pops up once I log in to the desktop. When I attempt to run the VirtualBox Manager, I get the following error message:

==============================================================================
VirtualBox - Error in suplibOsInit
------------------------------------------------------------------------------
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
'sbin/rcvboxdrv setup'
as root ... et cetera, and ending with
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (rc=-1908) -
The support driver is not installed. On linux, open returned ENOENT.
==============================================================================

Being an obedient and trusting sort, I run 'sudo sbin/rcvboxdrv setup' in a
terminal, enter my password and, after thinking about things for a while, the
prompt returns and all is well with my virtual machines.

I've looked at everything I can think of, and can find no "permission problems"
so I'm at a loss as to what to look for now.

Does anyone know what I'm missing? Thanks for any pointers.

(NOTE: I don't believe this is related to Steven G's posting on 26 May
2016, since I don't recall having a kernel update since the last time I used VirtualBox, but who knows? Just for the record, I'm using kernel 3.19.0-59-generic according to 'uname -r'.)
 
Old 05-27-2016, 10:42 AM   #2
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Original Poster
Rep: Reputation: Disabled
Also, I should mention that lsmod gives the following lines after running the rcvboxdrv setup:
Module Size Used by
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
vboxdrv 450560 3 vboxnetadp,vboxnetflt,vboxpci

... just in case.
 
Old 05-28-2016, 10:57 AM   #3
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 197

Rep: Reputation: Disabled
Do you have a recent backup of 'VirtualBox VMs' from before the changes?

Last edited by WFV; 05-28-2016 at 11:49 AM. Reason: modprobe maybe not applicable to Ubuntu ~ sudo rcvboxdrv setup
 
Old 05-28-2016, 05:41 PM   #4
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Original Poster
Rep: Reputation: Disabled
I do have backups of all the VirtualBox VMs, but I'm trying to understand what I did to "break" VirtualBox. The existing VMs (I didn't restore the backups) work fine after I execute the [sudo sbin/rcvboxdrv setup]. As far as I know the kernel module this command adds is attached to my host OS, not any of the virtual OSs (if that's not true I'm very confused).

the command: lsmod | grep vbox gives the following after running the setup:
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
vboxdrv 450560 3 vboxnetadp,vboxnetflt,vboxpci

... nothing shows up when I first boot, so I don't think the problems are with the VMs themselves.
 
Old 05-28-2016, 06:00 PM   #5
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 197

Rep: Reputation: Disabled
Apologies CVAlkan, I thought that is what you were after, after having already posted my premature mention of backups. I don't know that you "broke" anything in VBox by removing the iso that wouldn't launch. Acc'd to Virtualbox it is supposed to be possible to boot an iso and create a vdi on bare metal. I have also at times had to reload the modules (modprobe in Arch) after removing a vm from VirtualBox to get the others to work. Perhaps you can try the install again, then run debugging when you uninstall it to see what happens. There may be information in one of the VirtualBox logs already as to what happened why vboxdrv had to be reloaded.

Last edited by WFV; 05-30-2016 at 03:11 PM. Reason: metal
 
Old 06-02-2016, 01:27 PM   #6
DVOM
Member
 
Registered: Nov 2010
Posts: 223

Rep: Reputation: 48
One thing I have done when getting a permissions problem like this is to open thunar (or whatever your file manager is) with "sudo thunar". Then navigate to 'sbin/rcvboxdrv setup' and make sure the permissions are set so anyone can "read/write" and that ought to take care of it.
 
Old 06-03-2016, 09:53 AM   #7
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Original Poster
Rep: Reputation: Disabled
Thanks much. I think my problem turned out to be that I needed to shut down all the VMs for the kernel change to take effect permanently. I'm not sure I understand why that is, but once I shut down the one machine I had left "powered on," and then re-booted, things went back to normal.
 
  


Reply

Tags
kernel, ubuntu 14.04, virtualbox



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help please, installed Virtualbox now can't login actinide Linux - Newbie 18 11-25-2015 02:50 PM
VirtualBox installed in Linux hosting Windows ?? bmrzmr2 Linux - Software 1 11-09-2015 12:10 AM
[SOLVED] which linux can be installed on virtualbox shravee Linux - Software 8 11-29-2012 07:53 AM
problem with installing centos in virtualbox (Kernel driver not installed (rc=-1908) chintu00001 Linux - Virtualization and Cloud 2 05-15-2012 11:45 AM
Virtualbox Error - Kernel driver not installed (rc=-1908) callumacrae Linux - Software 11 10-28-2009 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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