Page 1 of 1

[Resolved] VBoxDrv.kext failed to load

Posted: 12. Feb 2019, 15:54
by Ryan.Watson
Ive read all the posts but still cant resolve this issue. during the installation I have gone to security & Privacy but there is no option to "Allow Oracle" that appears either before during or after installation.

Im running Mac OS High Sierra, its a fairly new machine and im a bit of a novice so bear with me.

I downloaded virtual box and attempted to install. but I get the Installation failed message. during the installation Ive looked in the security & Preferences but where people have referred to a message asking me to allow the installation from Oracle There is nothing there. No I have had this message for another piece of software I installed but for some reason it does not appear during the installation of VirtualBox.
I have attached my installation log.

Any help would be appreciated.
Thanks

Re: VBoxDrv.kext failed to load

Posted: 13. Feb 2019, 20:24
by socratis
@Ryan.Watson
It seems that you have a permissions problem with your setup:
Feb 12 06:03:42 DMI27s-MBP installd[496]: ./postflight: /Library/Application
	Support/VirtualBox/VBoxDrv.kext failed to load - (libkern/kext) authentication
	failure (file ownership/permissions); check the system/kernel logs for errors or
	try kextutil(8).
Why exactly is that? Have you willingly modified some system permissions? Anything system-wide-modifying installed? Post the output of the command:

Code: Select all

ls -laed@ \
  / \
  /Applications \
  /Applications/VirtualBox.app \
  /Applications/VirtualBox.app/Contents/MacOS/VirtualBox \
  /Applications/VirtualBox.app/Contents/MacOS/VirtualBoxVM \
  /Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib \
  /Library/Application\ Support/VirtualBox \
  /private \
  /private/etc \
  /private/etc/sudoers \
  /private/tmp
PS. I've removed your duplicate post. According to the forum rules, duplicate posts are not allowed.

Re: VBoxDrv.kext failed to load

Posted: 14. Feb 2019, 14:20
by Ryan.Watson
I honestly don't know why that it, I may have done something inadvertently but Im a bit of a novice. Below is the result of the command
drwxr-xr-x  29 root  wheel       928 13 Feb 08:09 /
drwxrwxr-x+ 44 root  admin      1408 14 Feb 04:17 /Applications
 0: group:everyone deny delete
drwxr-xr-x   3 root  admin        96 25 Jan 10:45 /Applications/VirtualBox.app
-rw-r--r--   1 root  admin   5903952 25 Jan 10:46 /Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib
-rwxr-xr-x   1 root  admin  33067904 25 Jan 10:46 /Applications/VirtualBox.app/Contents/MacOS/VirtualBox
-rwsr-xr-x   1 root  admin    157264 25 Jan 10:46 /Applications/VirtualBox.app/Contents/MacOS/VirtualBoxVM
drwxr-xr-x   7 root  wheel       224 14 Feb 04:17 /Library/Application Support/VirtualBox
drwxr-xr-x   6 root  wheel       192 27 Mar  2018 /private
drwxr-xr-x  88 root  wheel      2816 13 Feb 07:49 /private/etc
-r--r-----   1 root  wheel      1563 12 Feb  2018 /private/etc/sudoers
drwxrwxrwt  14 root  wheel       448 14 Feb 04:17 /private/tmp

Re: VBoxDrv.kext failed to load

Posted: 15. Feb 2019, 06:10
by socratis
The permissions look fine. I will need you to list the output of a couple more commands:

Code: Select all

ls -laed@ \
  /Library \
  /Library/Application\ Support \
  /Library/Application\ Support/VirtualBox

ls -ale@ /Library/Application\ Support/VirtualBox

ls -ale@ /private/tmp
Something is definitely not right with the permissions. The question is "what". I'd hate to force you to re-install OSX just because of a small glitch...

Re: VBoxDrv.kext failed to load

Posted: 15. Feb 2019, 13:41
by Ryan.Watson
Thanks for this. I haven't really set much up on my device so I can do a re-install if necessary.
Thanks

Code: Select all

DMI27s-MacBook-Pro:~ DIIU27$ ls -laed@ \
>   /Library \
>   /Library/Application\ Support \
>   /Library/Application\ Support/VirtualBox
drwxr-xr-x+ 62 root  wheel  1984 14 Feb 17:50 /Library
 0: group:everyone deny delete
drwxr-xr-x  14 root  admin   448 14 Feb 16:58 /Library/Application Support
drwxr-xr-x   7 root  wheel   224 14 Feb 16:58 /Library/Application Support/VirtualBox
DMI27s-MacBook-Pro:~ DIIU27$ 
DMI27s-MacBook-Pro:~ DIIU27$ ls -ale@ /Library/Application\ Support/VirtualBox
total 0
drwxr-xr-x   7 root  wheel  224 14 Feb 16:58 .
drwxr-xr-x  14 root  admin  448 14 Feb 16:58 ..
drwxr-xr-x   4 root  wheel  128 25 Jan 18:45 LaunchDaemons
drwxr-xr-x   3 root  wheel   96 25 Jan 18:45 VBoxDrv.kext
drwxr-xr-x   3 root  wheel   96 25 Jan 18:45 VBoxNetAdp.kext
drwxr-xr-x   3 root  wheel   96 25 Jan 18:45 VBoxNetFlt.kext
drwxr-xr-x   3 root  wheel   96 25 Jan 18:45 VBoxUSB.kext
DMI27s-MacBook-Pro:~ DIIU27$ 
DMI27s-MacBook-Pro:~ DIIU27$ ls -ale@ /private/tmp
total 0
drwxrwxrwt  5 root    wheel  160 15 Feb 11:29 .
drwxr-xr-x  6 root    wheel  192 28 Mar  2018 ..
drwx------  3 DIIU27  wheel   96 15 Feb 11:29 com.apple.launchd.GZY54GUMZ3
drwx------  3 DIIU27  wheel   96 15 Feb 11:29 com.apple.launchd.sMlBg8Lqoq
drwxr-xr-x  2 root    wheel   64 15 Feb 11:29 powerlog
DMI27s-MacBook-Pro:~ DIIU27$ 

Re: VBoxDrv.kext failed to load

Posted: 15. Feb 2019, 17:48
by socratis
Again, everything looks appropriate, permissions set as they should. I don't know what might be wrong here. Sorry about that...

Re: VBoxDrv.kext failed to load

Posted: 15. Feb 2019, 19:25
by andyp73
In Terminal.app Can you try running the following:
sudo kextutil -v -t /Library/Application\ Support/VirtualBox/VBoxDrv.kext
If it reports anything we don't already know then post it here.

-Andy.

Re: VBoxDrv.kext failed to load

Posted: 18. Feb 2019, 11:35
by Ryan.Watson
Ive done a re-install of MaxOS and it has now worked. Thanks for you help.

Re: VBoxDrv.kext failed to load

Posted: 18. Feb 2019, 11:50
by socratis
Well, I'm not sure we helped at all, if you had to reinstall at the end to get things going. It would have been a good learning experience if we had gotten to the bottom of the failure. Oh, well...

Marking as [Resolved].