Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242
Rep:
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'.)
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242
Original Poster
Rep:
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
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242
Original Poster
Rep:
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.
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
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.
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.