Virtualbox fails to run.. kernel driver not loaded

Discussions related to using VirtualBox on Mac OS X hosts.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: Virtualbox fails to run.. kernel driver not loaded

Post by ChipMcK »

Alwyn wrote:Can't somebody adapt Virtual Box so that it works as it did before Mavericks came along?
Check out V4.3.2, but be advise that you need to
  1. use the Uninstall tool, from the .dmg file
  2. Open SysPrefs Security & Privacy General tab, select Anywhere
  3. Install V4.3.2
  4. After successful installl. you should reset Anywhere
marksoft
Posts: 2
Joined: 12. Sep 2013, 01:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows XP, 7, 8, Windows Server 2003 R2, 2008 R2, 2012, Ubuntu 12, Xubuntu
Location: Queensland, Australia
Contact:

Re: Virtualbox fails to run.. kernel driver not loaded

Post by marksoft »

Not sure if this is related, but possibly useful for troubleshooting this issue...

I installed (clean) OS X 10.9 Mavericks. I have now installed VirtualBox 4.3.2 (fresh install). Upon completion, I am presented with the following dialogue boxes:
Kernel extension is not from an identified developer
The kernel extension at "/Library/Application Support/VirtualBox/VBoxDrv.kext" is not from an identified developer but will still be loaded.
Please contact the kernel extension vendor for updated software.
Kernel extension are not from identified developers
The following kernel extensions are not from identified developers but will still be loaded.
/Library/Application Support/VirtualBox/VBoxUSB.kext
/Library/Application Support/VirtualBox/VBoxNetFlt.kext
/Library/Application Support/VirtualBox/VBoxNetAdp.kext
Please contact the kernel extension vendor for updated software.
I hope this helps someone. It looks like Oracle hasn't signed the kernel extensions, although Mavericks states it will still use them. My VirtualBox installation does seem to be okay, although I haven't tested different network configs, etc, yet.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: Virtualbox fails to run.. kernel driver not loaded

Post by michaln »

marksoft wrote:I hope this helps someone. It looks like Oracle hasn't signed the kernel extensions, although Mavericks states it will still use them. My VirtualBox installation does seem to be okay, although I haven't tested different network configs, etc, yet.
We will sign the kexts as soon as we can. As far as we are aware, the lack of the special kext signature does not cause any harm beyond triggering the warning dialog you saw.
bronxzou
Posts: 1
Joined: 19. Nov 2013, 03:06

Re: Virtualbox fails to run.. kernel driver not loaded

Post by bronxzou »

Sorry, total rookie here, can someone explain in more depth? Do I save it as a text file and change the extension? Any chance I can get some screen shots?
aegirth wrote:for Google's sake, thought I'd add here some code I found on Github that fixes this for me. It's a shell script that unloads all the Virtualbox kernel extensions and reloads them.

Code: Select all

!/bin/bash

unload() {
        kextstat | grep "org.virtualbox.kext.VBoxUSB" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxUSB
        kextstat | grep "org.virtualbox.kext.VBoxNetFlt" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetFlt
        kextstat | grep "org.virtualbox.kext.VBoxNetAdp" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetAdp
        kextstat | grep "org.virtualbox.kext.VBoxDrv" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxDrv
}

load() {
        sudo kextload /Library/Extensions/VBoxDrv.kext -r /Library/Extensions/
        sudo kextload /Library/Extensions/VBoxNetFlt.kext -r /Library/Extensions/
        sudo kextload /Library/Extensions/VBoxNetAdp.kext -r /Library/Extensions/
        sudo kextload /Library/Extensions/VBoxUSB.kext -r /Library/Extensions/
}

case "$1" in
        unload|remove)
                unload
                ;;
        load)
                load
                ;;
        *|reload)
                unload
                load
                ;;
esac
If you have this problem, save this to a file somewhere on your hard drive, chmod -x it to make it executable, and then run it.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtualbox fails to run.. kernel driver not loaded

Post by socratis »

bronxzou wrote:Sorry, total rookie here, can someone explain in more depth?
aegirth wrote:save this to a file somewhere on your hard drive, chmod -x it to make it executable, and then run it.
1) Save the code. As anything you want. Let's call it "VBoxFix".
2) Open "Terminal".
3) Change the directory to where you saved the file.
4) Type "chmod -x VBoxFix" (that makes the file executable).
5) Type "./VBoxFix".
If you want more info, send me a PM.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
R.D. Labs
Posts: 1
Joined: 26. Mar 2014, 23:50

Re: Virtualbox fails to run.. kernel driver not loaded

Post by R.D. Labs »

hi,

i have a Mac OS X 10.9.2. host, debian linux guest, virtualbox 4.3.8. For me,

VBoxDrv.kext, VBoxNetAdp.kext, VBoxNetFlt.kext load OK but for VBoxUSB.kext I get

Code: Select all

# kextutil -s ~/scratch -e -d /System/Library/Extensions/System.kext -d ./VBoxDrv.kext/ ./VBoxUSB.kext
Notice: Using running kernel architecture x86_64 to generate symbols.
./VBoxUSB.kext - no dependency found for com.apple.iokit.IOUSBFamily.
./VBoxUSB.kext - no dependency found for com.apple.iokit.IOUSBUserClient.
./VBoxUSB.kext - no dependency found for com.apple.iokit.IOUSBFamily.
./VBoxUSB.kext - no dependency found for com.apple.iokit.IOUSBUserClient.
./VBoxUSB.kext - no dependency found for com.apple.iokit.IOUSBFamily.
./VBoxUSB.kext - no dependency found for com.apple.iokit.IOUSBUserClient.
Diagnostics for ./VBoxUSB.kext:
Warnings:
    The booter does not recognize symbolic links; confirm these files/directories aren't needed for startup:
        /Library/Application Support/VirtualBox/VBoxUSB.kext/Contents/CodeDirectory
        /Library/Application Support/VirtualBox/VBoxUSB.kext/Contents/CodeRequirements
        /Library/Application Support/VirtualBox/VBoxUSB.kext/Contents/CodeResources
        /Library/Application Support/VirtualBox/VBoxUSB.kext/Contents/CodeSignature
 
Dependency Resolution Failures:
    No kexts found for these libraries:
        com.apple.iokit.IOUSBFamily
        com.apple.iokit.IOUSBUserClient
the strange thing is, IOUSBFamily and IOUSBUserClient are loaded, it just doesn't see them.

Code: Select all

# kextstat | grep IOUSB
   34   15 0xffffff7f81139000 0x61000    0x61000    com.apple.iokit.IOUSBFamily (675.4.0) <11 7 5 4 3 1>
   46    0 0xffffff7f811ba000 0x3000     0x3000     com.apple.iokit.IOUSBUserClient (660.4.2) <34 7 5 4 3 1>
   58    1 0xffffff7f811a6000 0x11000    0x11000    com.apple.iokit.IOUSBMassStorageClass (3.6.0) <57 34 15 5 4 3 1>
   62    3 0xffffff7f81294000 0x9000     0x9000     com.apple.iokit.IOUSBHIDDriver (660.4.0) <34 29 5 4 3 1>
Any suggestions to get the dependencies to resolve and get VBoxUSB.kext loaded?
dmcnish
Posts: 2
Joined: 1. Apr 2014, 21:56

Re: Virtualbox fails to run.. kernel driver not loaded

Post by dmcnish »

Posting the solution that worked for me.
iMac late 2009, Snow Lion, VB-4.1
upgraded to VM 4.3.10
no issues running W7 or XP machines
Then did in-place Mavericks upgrade 10.9.2
Started receiving the kernel driver not loaded messages on both machine types (W7 & XP)
Tried simply re-downloading and re-installing VB 4.3.10
No issues since. Hope this is helpful to someone else.
LinkRaider
Posts: 16
Joined: 16. Jan 2015, 18:09

Re: Virtualbox fails to run.. kernel driver not loaded

Post by LinkRaider »

I'm getting errors too :(
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtualbox fails to run.. kernel driver not loaded

Post by socratis »

Oh, I see... Unless you want some help. would you mind sharing the details? In detail.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

I too suddenly get this error. I tried reinstalling the latest Virtualbox 4.3.20, but the installation failed as well. No clue on what went wrong there.

I'm on OSX 10.10.2. I have pretty many "boxes" but all used to work fine until just recently.

Is there an updated Virtualbox version coming soon? I need it to run my billing in Windows :P
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

AndersD wrote:I too suddenly get this error. I tried reinstalling the latest Virtualbox 4.3.20, but the installation failed as well. No clue on what went wrong there.

I'm on OSX 10.10.2. I have pretty many "boxes" but all used to work fine until just recently.

Is there an updated Virtualbox version coming soon? I need it to run my billing in Windows :P
See Minimum information needed for assistance.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

Apple iMac i7 (Late 2009), 12GB RAM
OSX Yosemite 10.10.2

Vbox OSX: 4.3.20r96996

Prior trying to reinstall VirtualBox (latest version) I could at least open it and see my VMs in the app. After the failed reinstall ("Installation failed. ... contact Oracle") I cannot even start VirtualBox (due to failed installation probabaly).

Code: Select all

/Applications/VirtualBox.app/Contents/MacOS ] $ ./VBoxManage-x86 list extpacks
VBoxManage-x86: error: Failed to create the VirtualBox object!
VBoxManage-x86: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
VBoxManage-x86: error: Most likely, the VirtualBox COM server is not running or failed to start.
I have installed the Guest addons for more or less all my virtual machines.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

@AndersD, make sure you run the VirtualBox_Uninstall.tool before you try and install a new version. Other than that, run repair disk permissions from Disk Utility then try and reinstall VirtualBox.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

Just ran the unistall tool and then repaired disk permissions. The installation still fails. It's in the "checking package" part of the installer, just at the end.

Anything else I can do? I include the last 1000 rows from my install.log from /var/log. Perhaps there's anything useful there.
Attachments
vbox.log.zip
(9.3 KiB) Downloaded 27 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

I still think it's a permission problem. There was a recent link posted here about fixing disk permissions that aren't fixed by Disk Utility. If you can locate it that might help.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply