vboxdrv kernel module is not loaded
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 29
  1. #1
    Join Date
    Feb 2013
    Location
    UK
    Posts
    10

    Unhappy vboxdrv kernel module is not loaded

    Hi everyone

    I am very new here so apologies in advance if I don't get all the forum rules right. I would really appreciate your help on the following mater. (Any sort of feedback and help is appreciated)

    I am trying to get VirtualBox running on fedora 18 but I get following error message in the terminal

    'WARNING: The vboxdrv kernel module is not loaded. Either there is no module
    available for the current kernel (3.7.9-205.fc18.x86_64) or it failed to
    load. Reboot the computer or load the kernel module by executing

    '/etc/sysconfig/modules/VirtualBox.modules' (as root)
    You will not be able to start VMs until this problem is fixed.'[/I]

    I tried both but it would not work When installing VirtualBox i followed the rules on

    http://www.if-not-true-then-false.co...-red-hat-rhel/

    and I can not build the kernel modules as described in 5 ...
    I get following error message
    /etc/init.d/vboxdrv: No such file or directory

    ... when I look in my /etc/init.d I can't see the vboxdrv

    I tried to remove and reinstall virtualbox over yum but i didn't help

    after
    rpm -qa kernel |sort |tail -n 1
    and
    uname - r

    I got both times
    3.7.9-205.fc18.x86_64


    However when yum install VirtualBox Iget

    Package Arch Version Repository Size
    ================================================== ==============================
    Installing:
    VirtualBox x86_64 4.2.6-5.fc18 rpmfusion-free-updates 26 M
    Installing for dependencies:
    kmod-VirtualBox-3.6.10-4.fc18.x86_64
    x86_64 4.2.6-1.fc18.1 rpmfusion-free 200 k

    Transaction Summary
    ================================================== ==============================
    Install 1 Package (+1 Dependent package)


    I am not sure whether the kmod version has something to do with it but it says 3.6 there

    I have also tried
    yum -y install kernel-headers dkms gcc
    and got
    Package gcc-4.7.2-8.fc18.x86_64 already installed and latest version

    Can anyone help me or has any ideas what's going wrong?

    Thanks a lot.

  2. #2
    Join Date
    Oct 2012
    Location
    Fort Wayne, IN
    Posts
    1,133

    Re: vboxdrv kernel module is not loaded

    Run this script I just made. It should take care of the problem.
    Attached Files Attached Files

  3. #3
    Join Date
    Feb 2013
    Location
    UK
    Posts
    10

    Re: vboxdrv kernel module is not loaded

    Hi

    thanks for the script. I run the script but it also removes VirtualBox, when I then install virtualbox again I still have the same problem

  4. #4
    Join Date
    Oct 2012
    Location
    Fort Wayne, IN
    Posts
    1,133

    Re: vboxdrv kernel module is not loaded

    Did you run the script all the way through? It should have installed the un-broken VirtualBox package, along with some dependencies.

  5. #5
    Join Date
    Jan 2011
    Location
    Ohio
    Posts
    45

    Re: vboxdrv kernel module is not loaded

    Try:
    Code:
    yum install akmod-VirtualBox
    You could also install the kmod meta-package:
    Code:
    yum install kmod-VirtualBox
    Then, load the driver:
    Code:
    modprobe vboxdrv
    :C
    "Anybody who tells me I can't use a program because it's not open source, go suck on rms. I'm not interested. 99% of that I run tends to be open source, but that's _my_ choice, dammit." -- Linus Torvalds, 2004.

  6. #6
    Join Date
    Feb 2013
    Location
    UK
    Posts
    10

    Re: vboxdrv kernel module is not loaded

    @ihatewindows

    yea I think so. After I tried VirtualBox in the terminal but that's what I got

    bash: VirtualBox: command not found...

    Preparing, sit tight.
    Loaded plugins: langpacks, presto, refresh-packagekit
    No Match for argument: VirtualBox
    No Packages marked for removal
    Installing dependencies...
    Loaded plugins: langpacks, presto, refresh-packagekit
    Package dkms-2.2.0.3-4.fc18.noarch already installed and latest version
    Package gcc-4.7.2-8.fc18.x86_64 already installed and latest version
    Nothing to do
    Getting VBox...
    Retrieving http://download.virtualbox.org/virtu...a18-1.i686.rpm
    warning: /var/tmp/rpm-tmp.ihvgib: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
    error: Failed dependencies:
    libQtCore.so.4 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libQtGui.so.4 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libQtNetwork.so.4 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libQtOpenGL.so.4 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libSDL-1.2.so.0 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libXinerama.so.1 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libXmu.so.6 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libXt.so.6 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libcurl.so.4 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libdevmapper.so.1.02 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libdevmapper.so.1.02(Base) is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686
    libpython2.7.so.1.0 is needed by VirtualBox-4.2-4.2.8_83876_fedora18-1.i686

    Done!


    ---------- Post added at 10:23 PM ---------- Previous post was at 10:22 PM ----------

    @jswmcw

    after
    modprobe vboxdrv

    I got
    ERROR: could not insert 'vboxdrv': Required key not available

  7. #7
    Join Date
    Oct 2012
    Location
    Fort Wayne, IN
    Posts
    1,133

    Re: vboxdrv kernel module is not loaded

    Quote Originally Posted by jswmcw
    Try:
    Code:
    yum install akmod-VirtualBox
    You could also install the kmod meta-package:
    Code:
    yum install kmod-VirtualBox
    Then, load the driver:
    Code:
    modprobe vboxdrv
    Sheeeesh, don't go down that path!! You want to avoid the yum version; that's the *BAD* RPM that you *DO NOT* want!!

    ---------- Post added at 05:52 PM ---------- Previous post was at 05:48 PM ----------

    Run my script again, following through with the whole thing, until it says "Done!" Then, start your virtual machine(s).

  8. #8
    Join Date
    Feb 2013
    Location
    UK
    Posts
    10

    Re: vboxdrv kernel module is not loaded

    Hey Ihatewindows

    I run the script again... I tried to start VirtualBox by typing VirtualBox as before but nothing happens. I I typ vbox, I am prompted to enter a username and password
    ???
    Do I have to do something else to start virtualbox?

  9. #9
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    7,401

    Re: vboxdrv kernel module is not loaded

    What's wrong with just installing the virtualbox repository and install the official VirtualBox with yum?, I've always had luck with that one and it's much easier than all this rigmarole with scripts:

    https://www.virtualbox.org/wiki/Linux_Downloads

    go to the bottom of the page and read and follow the section after this text:
    Note that importing the key is not necessary for yum users (Oracle Linux/Fedora/RHEL/CentOS) when using one of the virtualbox.repo files from below as yum downloads and imports the public key automatically!
    and install the virtualbox.repo file they give here:

    http://download.virtualbox.org/virtu...irtualbox.repo

    into /etc/yum.repos.d

    and then just run
    yum install VirtualBox-4.2 dkms
    the critical step that makes the kernel specific vboxdrv.ko and other modules should be done automatically by the installation script in the rpm. But the extension pack is not in the repo, you'd get that from:
    https://www.virtualbox.org/wiki/Downloads

    Note also, in Linux and UNIX in general, it's very possible to install a new executable and find that running the command in a terminal results in "Command not found".
    This is because the shell's hash string is now stale and needs update to find the new command. If your shell is tcsh, you'd run "rehash" but the default shell in Fedora is
    bash which uses "hash" or you could just restart a fresh shell
    Last edited by marko; 1st March 2013 at 12:23 AM.

  10. #10
    Join Date
    Oct 2012
    Location
    Fort Wayne, IN
    Posts
    1,133

    Re: vboxdrv kernel module is not loaded

    Cudos. We each have our own way.

  11. #11
    Join Date
    Feb 2013
    Location
    UK
    Posts
    10

    Re: vboxdrv kernel module is not loaded

    Hi Marko

    Thanks for your reply

    I tried the above steps. Still no luck. When I start VirtualBox I get following error message

    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 tried

    '/etc/init.d/vboxdrv setup'

    which now at least partially works but I get following error message:

    $ /etc/init.d/vboxdrv setup

    Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modules/etc/init.d/vboxdrv: line 304: /var/log/vbox-install.log: Permission denied
    [ OK ]
    Removing old VirtualBox pci kernel module [ OK ]
    Removing old VirtualBox netadp kernel module [ OK ]
    Removing old VirtualBox netflt kernel module [ OK ]
    Removing old VirtualBox kernel module [ OK ]
    Trying to register the VirtualBox kernel modules using DKMS/etc/init.d/vboxdrv: line 329: /var/log/vbox-install.log: Permission denied
    [FAILED]
    (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules/etc/init.d/vboxdrv: line 337: /var/log/vbox-install.log: Permission denied
    [FAILED]
    (Look at /var/log/vbox-install.log to find out what went wrong)

    [~]$ VirtualBox
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module
    available for the current kernel (3.7.9-205.fc18.x86_64) or it failed to
    load. Please recompile the kernel module and install it by

    sudo /etc/init.d/vboxdrv setup

    You will not be able to start VMs until this problem is fixed.


    Do I need to register somewhere?

  12. #12
    Join Date
    Jan 2010
    Posts
    7,357

    Re: vboxdrv kernel module is not loaded

    I avoid all the VBox problems I see on this forum by not using the repos. Yes, it's a little more work, but seeing all the issues that people constantly have on these forums, I find it worth it.

    I go to www.virtualbox.org. I click downloads. I choose the rpm for Fedora. I store it somewhere. I then also download the extension pack (mentioned in second paragraph on the download page.) I install that.

    I make sure that I have kernel-devel installed. If one has a PAE kernel, they may have to install it with yum install kernel-pae-devel rather than kernel-devel, I haven't used it in awhile, so not sure if they fixed it or don't consider it a bug. Make sure your kernel-devel package matches your uname -r

    rpm -q kernel-devel (or kernel-PAE-devel)
    (Might show more than one, just make sure that at least one of the listed ones matches the output of uname -r.

    Now, go to where you downloaded the VirtualBox rpm.

    As root or with sudo

    yum install VirtualBox-whatever.rpm

    Yum should pull in whatever is needed.

    Now, /etc/init.d/vboxdrv setup should work.

    Assuming that does, start VBox once as root or with sudo

    sudo VirtualBox

    Click preferences, extensions, browse to where you put the extension pack and install it. Close it and run it as normal.

    If there's a newer version, it will notify you on startup. If you upgrade a kernel, you will have to once again run /etc/vboxdrv setup (or service vboxdrv setup, both work.)

    The disadvantage is that if you upgrade your kernel and forget to run vboxdrv setup you'll get an error and then have to run it. With akmod, if it works, it's transparent, but if it doesn't work, which, judging from these forums, seems to happen from time to time, at least you're not wasting time trying to figure out what's wrong.

  13. #13
    Join Date
    Feb 2013
    Location
    UK
    Posts
    10

    Re: vboxdrv kernel module is not loaded

    Hey smr54

    I still have the same problem. Also when I download and install the package I get

    VirtualBox-4.2-4.2.8_83876_fedora18-1.x86_64.rpm: does not update installed package.
    Error: Nothing to do


    I tried to yum remove VirtualBox but it got following error
    No Match for argument: VirtualBox
    No Packages marked for removal


    However when starting

    sudo /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modules [ OK ]
    Trying to register the VirtualBox kernel modules using DKMS[ OK ]
    Starting VirtualBox kernel modules [FAILED]
    (modprobe vboxdrv failed. Please use 'dmesg' to find out why)


    Any idea why I get a fail and why I can't remove the package?

    ps:
    [I]rpm -q kernel-devel
    kernel-devel-3.6.10-4.fc18.x86_64
    kernel-devel-3.7.9-205.fc18.x86_64
    uname -r
    3.7.9-205.fc18.x86_64

  14. #14
    Join Date
    Jul 2008
    Posts
    1,348

    Re: vboxdrv kernel module is not loaded

    Make sure you are removing/installing as root, either directly or through su/sudo.
    As to why you cannot remove, the actual package name is: VirtualBox-4.2
    Run "dkms autoinstall" to have dkms build and attempt to install the kernel modules.
    If it fails, it will tell you to check a log file. Check that log file to see what might be the problem.

  15. #15
    Join Date
    Feb 2013
    Location
    UK
    Posts
    10

    Red face Re: vboxdrv kernel module is not loaded

    Ok cheers

    Managed to remove it and then I followed smr54s instructions.

    However, after /etc/init.d/vboxdrv setup I get

    Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modules [ OK ]
    Trying to register the VirtualBox kernel modules using DKMS[ OK ]
    Starting VirtualBox kernel modules [FAILED]
    (modprobe vboxdrv failed. Please use 'dmesg' to find out why)


    I typed in dmesg and that's what I got (I don't really know what it means)



    I have also tried modprobe vboxdrv but it says
    ERROR: could not insert 'vboxdrv': Required key not available
    Attached Files Attached Files

Page 1 of 2 1 2 LastLast

Similar Threads

  1. VIrtualBox (vboxdrv) is either not loaded
    By pedenski in forum Using Fedora
    Replies: 15
    Last Post: 17th November 2014, 11:44 AM
  2. Replies: 0
    Last Post: 5th September 2011, 05:15 AM
  3. Replies: 20
    Last Post: 3rd November 2007, 10:48 PM
  4. USB to serial module loaded?
    By tomhammond in forum Hardware & Laptops
    Replies: 5
    Last Post: 27th February 2007, 01:05 AM
  5. Problems of loading a module from a loaded module.
    By bogado in forum Programming & Packaging
    Replies: 0
    Last Post: 28th December 2006, 01:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •