One of four kext not loading

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Nutellinoit
Posts: 7
Joined: 20. Feb 2018, 11:53

One of four kext not loading

Post by Nutellinoit »

Hi everyone, i'm struggling to install virtualbox on Mac OS 10.13.3. It was working 10 days ago, then i got error when using vagrant with network reconfiguration

Code: Select all

VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
I tried reinstalling, with brew, uninstalling, installing with latest version dmg, uninstalling. The output of kextstat shows 3 extensions loaded but no org.virtualbox.kext.VBoxNetAdp

Code: Select all

$ kextstat | grep virtualbox
  211    2 0xffffff7f839ed000 0x63000    0x63000    org.virtualbox.kext.VBoxDrv (5.2.6) C32CCC8B-7E44-3974-BEC0-9C1FA570690D <7 5 4 3 1>
  212    0 0xffffff7f8394d000 0x8000     0x8000     org.virtualbox.kext.VBoxUSB (5.2.6) A60E8437-734A-3C07-8488-5885145AEE0C <211 170 19 7 5 4 3 1>
  213    0 0xffffff7f83955000 0x5000     0x5000     org.virtualbox.kext.VBoxNetFlt (5.2.6) 552BD757-0D66-3F90-9A20-C6C7881F4A2F <211 7 5 4 3 1>
When loading extensions with this script

Code: Select all

echo "Loading Kernel Extentions"
        sudo kextload "/Library/Application Support/VirtualBox/VBoxDrv.kext" -r "/Library/Application Support/VirtualBox/"
        sudo kextload "/Library/Application Support/VirtualBox/VBoxNetAdp.kext" -r "/Library/Application Support/VirtualBox/"
        sudo kextload "/Library/Application Support/VirtualBox/VBoxNetFlt.kext" -r "/Library/Application Support/VirtualBox/"
        sudo kextload "/Library/Application Support/VirtualBox/VBoxUSB.kext" -r "/Library/Application Support/VirtualBox/"
only sudo kextload "/Library/Application Support/VirtualBox/VBoxNetAdp.kext" -r "/Library/Application Support/VirtualBox/" fails

What i'm missing?
socratis
Site Moderator
Posts: 27329
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: One of four kext not loading

Post by socratis »

Nutellinoit wrote:when using vagrant
Vagrant is a program that relies on VirtualBox but modifies its configuration files in unknown ways to us. It is not supported on these VirtualBox user forums, they have their own Vagrant support channels. If you are having this problem with a standalone version of VirtualBox, then we can continue this discussion.
Nutellinoit wrote:I tried reinstalling, with brew
What does brew have to do with it? If you start including widely system modifying tools (brew, macports, etc.) be aware that we can't easily reproduce your setup, nor figure out exactly what fails...
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.
Nutellinoit
Posts: 7
Joined: 20. Feb 2018, 11:53

Re: One of four kext not loading

Post by Nutellinoit »

Ok, I removed vagrant from system and uninstalled (using VirtualBox_Uninstall.tool) and reinstalled virtualbox using the official installer (VirtualBox-5.2.6-120293-OSX.dmg).

The problem remains the same, 3 kext loaded but VBoxNetAdp.kext fails
socratis
Site Moderator
Posts: 27329
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: One of four kext not loading

Post by socratis »

Try the "kextload" with the highest verbosity level and see what it comes out with. Or try "kextutil" (man kextutil). I don't remember seeing this single point of failure before. Usually its all or none...

And I'm not sure if uninstalling VirtualBox undid "whatever" your modifications have done to the system.
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.
Nutellinoit
Posts: 7
Joined: 20. Feb 2018, 11:53

Re: One of four kext not loading

Post by Nutellinoit »

Dmesg

Code: Select all

VBoxAdp: failed to register control device.VBoxAdpDrv: failed to initialize device extension (rc=-117)
Kext org.virtualbox.kext.VBoxNetAdp start failed (result 0x5).
Kext org.virtualbox.kext.VBoxNetAdp failed to load (0xdc008017).
Failed to load kext org.virtualbox.kext.VBoxNetAdp (error 0xdc008017).
Kextload with -v

Code: Select all

sudo kextload "/Library/Application Support/VirtualBox/VBoxNetAdp.kext" -r "/Library/Application Support/VirtualBox/" -v
Requesting load of /Library/Application Support/VirtualBox/VBoxNetAdp.kext.
/Library/Application Support/VirtualBox/VBoxNetAdp.kext failed to load - (libkern/kext) kext (kmod) start/stop routine failed; check the system/kernel logs for errors or try kextutil(8).
Kextutil -v 6

Code: Select all

$ sudo kextutil "/Library/Application Support/VirtualBox/VBoxNetAdp.kext" -r "/Library/Application Support/VirtualBox/" -v 6
Password:
Kext user-space log filter changed from 0xff2 to 0xfff.
Kext kernel-space log filter changed from 0xff2 to 0xfff.
Kext library architecture set to x86_64.
Can't stat /AppleInternal - No such file or directory.
Defaulting to kernel file '/System/Library/Kernels/kernel'
Kext library recording diagnostics for: validation authentication dependencies warnings.
Reading loaded kext info from kernel.
(kernel) User-space log flags changed from 0x0 to 0xfff.
(kernel) Received 'Get Loaded Kext Info' request from user space.
(kernel) Returning loaded kext info.
Loaded kext info:
{
}

/Library/Application Support/VirtualBox/VBoxNetAdp.kext appears to be loadable (not including linkage for on-disk libraries).
Reading loaded kext info from kernel.
(kernel) User-space log flags changed from 0x0 to 0xfff.
(kernel) Received 'Get Loaded Kext Info' request from user space.
(kernel) Returning loaded kext info.
Loaded kext info:
{
}

Loading /Library/Application Support/VirtualBox/VBoxNetAdp.kext.
Reading load info for 7 kexts.
Reading loaded kext info from kernel.
(kernel) User-space log flags changed from 0x0 to 0xfff.
(kernel) Received 'Get Loaded Kext Info' request from user space.
(kernel) Returning loaded kext info.
Loaded kext info:
{
"com.apple.kpi.mach" = {
    "OSBundleWiredSize" = 16176
    "CFBundleIdentifier" = "com.apple.kpi.mach"
    "OSBundleUUID" = <bb0461d0 6403457c a497fc54 c684f9ab>
    "OSBundleLoadAddress" = -551890616320
    "OSBundleLoadTag" = 5
    "OSBundleStarted" = true
    "OSBundleCompatibleVersion" = "8.0.0d0"
    "OSKernelResource" = true
    "CFBundleVersion" = "17.4.0"
    "OSBundlePath" = "/System/Library/Extensions/System.kext/PlugIns/Mach.kext"
    "OSBundleRetainCount" = 151
    "OSBundlePrelinked" = true
    "OSBundleIsInterface" = true
    "OSBundleLoadSize" = 16176
}
"com.apple.kpi.unsupported" = {
    "OSBundleWiredSize" = 24224
    "CFBundleIdentifier" = "com.apple.kpi.unsupported"
    "OSBundleUUID" = <20ed6d95 e54b4969 ad7db271 f9816a0e>
    "OSBundleLoadAddress" = -551890132992
    "OSBundleLoadTag" = 7
    "OSBundleStarted" = true
    "OSBundleCompatibleVersion" = "8.0.0b1"
    "OSKernelResource" = true
    "CFBundleVersion" = "17.4.0"
    "OSBundlePath" = 
        "/System/Library/Extensions/System.kext/PlugIns/Unsupported.kext"
    "OSBundleRetainCount" = 95
    "OSBundlePrelinked" = true
    "OSBundleIsInterface" = true
    "OSBundleLoadSize" = 24224
}
"org.virtualbox.kext.VBoxDrv" = {
    "OSBundleWiredSize" = 405504
    "CFBundleIdentifier" = "org.virtualbox.kext.VBoxDrv"
    "OSBundleStarted" = true
    "OSBundleCPUType" = 16777223
    "OSBundleCompatibleVersion" = "5.2.6"
    "OSBundleUUID" = <c32ccc8b 7e443974 bec09c1f a570690d>
    "OSKernelResource" = false
    "CFBundleVersion" = "5.2.6"
    "OSBundleLoadTag" = 240
    "OSBundleLoadAddress" = -551842557952
    "OSBundleDependencies" = (
        1
        5
        3
        7
        4
    )
    "OSBundlePath" = 
        "/Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxDrv.kext"
    "OSBundleRetainCount" = 2
    "OSBundleCPUSubtype" = 3
    "OSBundlePrelinked" = false
    "OSBundleIsInterface" = false
    "OSBundleLoadSize" = 405504
}
"com.apple.kpi.iokit" = {
    "OSBundleWiredSize" = 135520
    "CFBundleIdentifier" = "com.apple.kpi.iokit"
    "OSBundleUUID" = <2457c686 f73c4b25 bda8ff83 70404836>
    "OSBundleLoadAddress" = -551890546688
    "OSBundleLoadTag" = 3
    "OSBundleStarted" = true
    "OSBundleCompatibleVersion" = "7.0"
    "OSKernelResource" = true
    "CFBundleVersion" = "17.4.0"
    "OSBundlePath" = 
        "/System/Library/Extensions/System.kext/PlugIns/IOKit.kext"
    "OSBundleRetainCount" = 158
    "OSBundlePrelinked" = true
    "OSBundleIsInterface" = true
    "OSBundleLoadSize" = 135520
}
"com.apple.kpi.libkern" = {
    "OSBundleWiredSize" = 54112
    "CFBundleIdentifier" = "com.apple.kpi.libkern"
    "OSBundleUUID" = <c26198ed 8e534a8a 99e513e8 8a1eca4a>
    "OSBundleLoadAddress" = -551890673664
    "OSBundleLoadTag" = 4
    "OSBundleStarted" = true
    "OSBundleCompatibleVersion" = "8.0.0d0"
    "OSKernelResource" = true
    "CFBundleVersion" = "17.4.0"
    "OSBundlePath" = 
        "/System/Library/Extensions/System.kext/PlugIns/Libkern.kext"
    "OSBundleRetainCount" = 170
    "OSBundlePrelinked" = true
    "OSBundleIsInterface" = true
    "OSBundleLoadSize" = 54112
}
"com.apple.kpi.bsd" = {
    "OSBundleWiredSize" = 40496
    "CFBundleIdentifier" = "com.apple.kpi.bsd"
    "OSBundleUUID" = <0cf188c3 f3fb4fff 8cf1f839 27ecea70>
    "OSBundleLoadAddress" = -551890714624
    "OSBundleLoadTag" = 1
    "OSBundleStarted" = true
    "OSBundleCompatibleVersion" = "8.0.0b1"
    "OSKernelResource" = true
    "CFBundleVersion" = "17.4.0"
    "OSBundlePath" = 
        "/System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext"
    "OSBundleRetainCount" = 128
    "OSBundlePrelinked" = true
    "OSBundleIsInterface" = true
    "OSBundleLoadSize" = 40496
}
}

/System/Library/Extensions/System.kext/PlugIns/Libkern.kext (version 17.4, UUID C26198ED-8E53-4A8A-99E5-13E88A1ECA4A) is loaded.
/System/Library/Extensions/System.kext/PlugIns/Libkern.kext (version 17.4): is started.
setting load address of /System/Library/Extensions/System.kext/PlugIns/Libkern.kext to 0xffffff7f80c0a000
/Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxDrv.kext (version 5.2.6, UUID C32CCC8B-7E44-3974-BEC0-9C1FA570690D) is loaded.
/Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxDrv.kext (version 5.2.6): is started.
setting load address of /Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxDrv.kext to 0xffffff7f839ed000
/System/Library/Extensions/System.kext/PlugIns/Mach.kext (version 17.4, UUID BB0461D0-6403-457C-A497-FC54C684F9AB) is loaded.
/System/Library/Extensions/System.kext/PlugIns/Mach.kext (version 17.4): is started.
setting load address of /System/Library/Extensions/System.kext/PlugIns/Mach.kext to 0xffffff7f80c18000
/System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext (version 17.4, UUID 0CF188C3-F3FB-4FFF-8CF1-F83927ECEA70) is loaded.
/System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext (version 17.4): is started.
setting load address of /System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext to 0xffffff7f80c00000
/System/Library/Extensions/System.kext/PlugIns/Unsupported.kext (version 17.4, UUID 20ED6D95-E54B-4969-AD7D-B271F9816A0E) is loaded.
/System/Library/Extensions/System.kext/PlugIns/Unsupported.kext (version 17.4): is started.
setting load address of /System/Library/Extensions/System.kext/PlugIns/Unsupported.kext to 0xffffff7f80c8e000
/System/Library/Extensions/System.kext/PlugIns/IOKit.kext (version 17.4, UUID 2457C686-F73C-4B25-BDA8-FF8370404836) is loaded.
/System/Library/Extensions/System.kext/PlugIns/IOKit.kext (version 17.4): is started.
setting load address of /System/Library/Extensions/System.kext/PlugIns/IOKit.kext to 0xffffff7f80c29000
Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/Libkern.kext from mkext for kernel load.
Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/Unsupported.kext from mkext for kernel load.
Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/IOKit.kext from mkext for kernel load.
Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/Mach.kext from mkext for kernel load.
Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext from mkext for kernel load.
Omitting loaded kext /Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxDrv.kext from mkext for kernel load.
Adding /Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxNetAdp.kext to mkext.
/Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxNetAdp.kext added 25424-byte noncompressed executable to mkext.
Created mkext for architecture x86_64 containing 1 kexts.
Loading /Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxNetAdp.kext.
(kernel) User-space log flags changed from 0x0 to 0xfff.
(kernel) Received kext load request from user space.
(kernel) Received request from user space to load kext org.virtualbox.kext.VBoxNetAdp.
(kernel) Loading kext org.virtualbox.kext.VBoxNetAdp.
(kernel) Kext com.apple.kpi.libkern is already loaded.
(kernel) Kext org.virtualbox.kext.VBoxDrv is already loaded.
(kernel) Kext org.virtualbox.kext.VBoxDrv sending 1 personality to the IOCatalogue and starting matching.
(kernel) Kext com.apple.kpi.mach is already loaded.
(kernel) Kext com.apple.kpi.bsd is already loaded.
(kernel) Allocated link buffer for kext org.virtualbox.kext.VBoxNetAdp at 0xffffff7fa255a000 (28672 bytes).
(kernel) Kext org.virtualbox.kext.VBoxNetAdp executable loaded; 7 pages at 0xffffff7f8395a000 (load tag 245).
(kernel) Kext org.virtualbox.kext.VBoxNetAdp calling module start function.
(kernel) Kext org.virtualbox.kext.VBoxNetAdp did not start (return code 0x5).
(kernel) Kext org.virtualbox.kext.VBoxNetAdp start failed (result 0x5).
(kernel) Kext org.virtualbox.kext.VBoxNetAdp failed to load (0xdc008017).
(kernel) Failed to load kext org.virtualbox.kext.VBoxNetAdp (error 0xdc008017).
(kernel) Kext org.virtualbox.kext.VBoxNetAdp unloading.
(kernel) Kext org.virtualbox.kext.VBoxNetAdp unwiring and unmapping linked executable.
(kernel) Kext org.virtualbox.kext.VBoxNetAdp unloaded.
(kernel) Kext org.virtualbox.kext.VBoxNetAdp removing all personalities naming it from the IOCatalogue.
Kernel error handling kext request - (libkern/kext) kext (kmod) start/stop routine failed.
Failed to load /Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxNetAdp.kext - (libkern/kext) kext (kmod) start/stop routine failed.
Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext - (libkern/kext) kext (kmod) start/stop routine failed.
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: One of four kext not loading

Post by michaln »

The error message "VBoxAdp: failed to register control device." means that the cdevsw_add() call failed. Which in turns means that the OS is out of available slots for devices. You need to complain to Apple about that (seriously).

OS X has a pretty low limit on the number of character device nodes which can be registered. The limit hasn't changed in ages but Apple keeps adding kexts to the OS which use up more and more slots. So once you install 2-3 third party packages, you're out of available slots and out of luck. Rebooting the host may or may not help. Uninstalling 3rd party packages which register their own character device drivers will help.

To be clear, this is something no one but Apple can solve.
Nutellinoit
Posts: 7
Joined: 20. Feb 2018, 11:53

Re: One of four kext not loading

Post by Nutellinoit »

Thank you michaln. I will try to uninstall the programs that load kext. they are not too many

Code: Select all

kextstat | grep -v apple
Index Refs Address            Size       Wired      Name (Version) UUID <Linked Against>
   25    0 0xffffff7f812bd000 0x41000    0x41000    com.logitech.manager.kernel.driver (6.72.1) A732FB9D-FD43-30B5-A891-1CE84334F39B <24 21 20 19 5 4 3>
  145    0 0xffffff7f80f65000 0x7000     0x7000     com.kairos.driver.DuetDisplay (2) ACE0314B-69A7-3100-9155-3B4B6C96B2EC <110 5 4 3>
  156    0 0xffffff7f83911000 0x7000     0x7000     com.parallels.virtualsound (1.0.36 36) E9131806-D073-8482-AC46-B4AAE55EA6FE <126 5 4 3 1>
  157    0 0xffffff7f81403000 0x7000     0x7000     net.sf.tuntaposx.tun (1.0) 95DD963D-E23D-3B0F-8DE8-A4D2F6BFA5CC <7 5 4 1>
  158    0 0xffffff7f80d1f000 0x7000     0x7000     net.sf.tuntaposx.tap (1.0) 23FDB715-3D0D-3A26-ACBA-E3794C231CB7 <7 5 4 1>
  159    0 0xffffff7f83918000 0x16000    0x16000    com.intel.kext.intelhaxm (6.1.1) 86D6923C-EFE8-32E3-89BE-95C6A5EC5611 <7 5 4 3 1>
  168    0 0xffffff7f83991000 0x7000     0x7000     com.zerotier.tap (1.0) 8BA59C0A-B3A7-3418-BFF5-B4914CE7734A <7 5 4 1>
  169    0 0xffffff7f83998000 0x5000     0x5000     com.parallels.virtualhid (1.0.3 3) B0C355DF-4268-359B-9654-0A67F4305F7B <20 5 4 3 1>
  246    2 0xffffff7f839ed000 0x63000    0x63000    org.virtualbox.kext.VBoxDrv (5.2.6) C32CCC8B-7E44-3974-BEC0-9C1FA570690D <7 5 4 3 1>
  247    0 0xffffff7f8394d000 0x8000     0x8000     org.virtualbox.kext.VBoxUSB (5.2.6) A60E8437-734A-3C07-8488-5885145AEE0C <246 170 19 7 5 4 3 1>
  248    0 0xffffff7f83955000 0x5000     0x5000     org.virtualbox.kext.VBoxNetFlt (5.2.6) 552BD757-0D66-3F90-9A20-C6C7881F4A2F <246 7 5 4 3 1>
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: One of four kext not loading

Post by michaln »

Right, not too many. But we're talking about maybe a dozen or fewer device slots available for all 3rd party software. Then every single one can make a difference.
Nutellinoit
Posts: 7
Joined: 20. Feb 2018, 11:53

Re: One of four kext not loading

Post by Nutellinoit »

Find one culprit

Code: Select all

sudo kextunload -b com.intel.kext.intelhaxm
I think this was a leftover from a previus vmware fusion install. I don't understand why everything was working 10 days ago
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: One of four kext not loading

Post by michaln »

Most likely because some other kext wasn't loaded. To be clear, only loaded kexts matter, not what's installed on disk.
Nutellinoit
Posts: 7
Joined: 20. Feb 2018, 11:53

Re: One of four kext not loading

Post by Nutellinoit »

Nutellinoit wrote:Find one culprit

Code: Select all

sudo kextunload -b com.intel.kext.intelhaxm
I think this was a leftover from a previus vmware fusion install. I don't understand why everything was working 10 days ago
Errata corrige, this is a kext used by android studio emulator...
Post Reply