Virtualbox fails to run.. kernel driver not loaded

Discussions related to using VirtualBox on Mac OS X hosts.

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

Postby wmackey73 » 16. Jun 2015, 23:16

Could someone please step by step how to chmod -x and "run" this code so I can fix this kernal problame pretty please? :)
wmackey73
 
Posts: 9
Joined: 10. Aug 2011, 01:56
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

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

Postby loukingjr » 16. Jun 2015, 23:22

I think you are going to have to explain in a bit more detail. :)
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8807
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

Postby aikidoka25 » 21. Jul 2015, 06:56

Has anyone had issue with VirtualBox on OS X Yosemite 10.10.4 hosts?
I cannot install version 4.3.30 or 5.0, the installation failed at the end.
From the console I notice the kexts were not loaded

2015-07-19 6:19:45.000 PM kernel[0]: VBoxDrv: Failed to open kernel symbols, rc=-226
2015-07-19 6:15:07.000 PM kernel[0]: Kext org.virtualbox.kext.VBoxDrv start failed (result 0x5).
2015-07-19 6:15:07.000 PM kernel[0]: Kext org.virtualbox.kext.VBoxDrv failed to load (0xdc008017).
2015-07-19 6:15:07.000 PM kernel[0]: Failed to load kext org.virtualbox.kext.VBoxDrv (error 0xdc008017).
2015-07-19 6:15:07.044 PM com.apple.kextd[43]: Failed to load /Library/Application Support/VirtualBox/VBoxDrv.kext - (libkern/kext) kext (kmod) start/stop routine failed.
2015-07-19 6:15:08.658 PM Installer[15823]: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

Prior to those versions VirtualBox is working. My workaround is reinstalling the old version VirtualBox-4.3.26-98988-OSX
aikidoka25
 
Posts: 3
Joined: 21. Jul 2015, 06:51

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

Postby loukingjr » 21. Jul 2015, 14:32

Did you use the VirtualBox_uninstall.tool to remove the previous version?

FWIW…
Installed VB 4.3.30 on a MBA running OSX 10.10.4 with no install issue
Installed VB 5.0 on a 2015 MacBook running OSX 10.10.4 with no install issue
Installed VB 5.0 on an iMac running OSX 10.11 with no install issue

You could try starting in Safe Mode and see if that helps.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8807
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

Postby aikidoka25 » 21. Jul 2015, 15:48

Yes I did try to uninstall first.
I even built version 5 from the source code. I remember seeing the kexts unloaded before loading the new ones.
Repairing permission also didn't solve the problem.

I am thinking to try installing VirtualBox on a fresh OSX installation and see how it goes.
aikidoka25
 
Posts: 3
Joined: 21. Jul 2015, 06:51

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

Postby aikidoka25 » 25. Jul 2015, 07:46

Problem solved by deleting a remnant of the kernel (mach_kernel) in the root (/) directory.
aikidoka25
 
Posts: 3
Joined: 21. Jul 2015, 06:51

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

Postby loukingjr » 25. Jul 2015, 10:38

Do you know where the "mach_kernel" came from? It hasn't been used since OSX 10.9 ( I think).
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8807
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

Postby manix37 » 11. Sep 2015, 02:57

I am getting the same error message after installing Yosemite 10.10.5 I guess I will uninstall and reinstall VB, however I have a very basic question...I have several programs on VB that contain data. If I reinstall VB, will I also need to reinstall these other programs and lose the work that I have done, or is just the OS reinstalled and I will be able to open the existing programs?
manix37
 
Posts: 2
Joined: 11. Sep 2015, 02:53

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

Postby manix37 » 11. Sep 2015, 03:01

I am running VBox 4.2.4 r18684. this has worked flawlessly for 3 years plus.
manix37
 
Posts: 2
Joined: 11. Sep 2015, 02:53

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

Postby noteirak » 11. Sep 2015, 17:01

manix37 wrote:I am getting the same error message after installing Yosemite 10.10.5 I guess I will uninstall and reinstall VB, however I have a very basic question...I have several programs on VB that contain data. If I reinstall VB, will I also need to reinstall these other programs and lose the work that I have done, or is just the OS reinstalled and I will be able to open the existing programs?

VMs and their content are program data and are not removed by VirtualBox on uninstall, just like all your documents are not deleted when you uninstall any kind of office suite.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5177
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

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

Postby loukingjr » 11. Sep 2015, 17:15

As mentioned in the above posts, the mach_kernel file may be left over from your 10.9 install. It needs to be removed if it still exists.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8807
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

Postby crj_lll » 20. Mar 2016, 22:24

I had this same problem.

I reran the VB update and it fixed everything.

Just wanted to share to help anyone having this issue.
crj_lll
 
Posts: 4
Joined: 20. Apr 2015, 03:11

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

Postby naresh_linux » 6. May 2016, 09:02

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   Expand viewCollapse view
!/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.



please use the below command to fix the issue

/etc/init.d/vboxdrv setup
naresh_linux
 
Posts: 1
Joined: 6. May 2016, 08:59

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

Postby drgreen » 10. Aug 2016, 21:15

Dear All (seasoned users of VB)

This may seem a long time after the last post.... but I have just upgraded my Mac laptop to El Capitan..... end result is that Virtualbox now will not start .... and I cannot access the Windows XP installation previously running..... solution? I have uninstalled the version of VB that was running VirtualBox-4.1.20-80170-OSX.dmg..... using the uninstall... and reinstalled..... this does not work for me and I get an error message about error in the install..... I tried another version I had already downloaded VirtualBox-4.2.18-88780-OSX.dmg ... same thing...... I realise this is an older version of VB - that was previously running ... but until I upgraded to El Capitan 10.11.4 everything worked fine....... is there a solution to this problem? Thanks in advance for any pointers you might be able to give me.... up until now I have had no problems with VB.. :(
drgreen
 
Posts: 3
Joined: 10. Aug 2016, 21:06

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

Postby loukingjr » 10. Aug 2016, 21:33

Yes, the solution would be to run a El Capitan version of VirtualBox, a 5.0.* version.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8807
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

PreviousNext

Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 28 guests