Re: 5.1.12 installer fails in OS X 10.13 High Sierra
Posted: 8. Oct 2017, 18:44
You're welcome.
End user forums for VirtualBox
https://forums.virtualbox.org/
You're getting the standard error due to the TeamID (Oracle, VirtualBox) not being authorized to install any kext on your system. Read the article from Apple that's been linked more times than I care to count. Take the appropriate action.Oct 8 19:02:53 Andrews-MBP Installer[5244]: Running OS Build: Mac OS X 10.13.1 (17B25c)
Oct 8 19:03:10 Andrews-MBP installd[731]: ./postflight: /Library/Application Support/VirtualBox/VBoxNetFlt.kext failed to load - (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).
Code: Select all
sudo kextload '/Library/Application Support/VirtualBox/VBoxDrv.kext'
sudo kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext' '/Library/Application Support/VirtualBox/VBoxUSB.kext'
sudo kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext' '/Library/Application Support/VirtualBox/VBoxNetFlt.kext'
sudo kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext' '/Library/Application Support/VirtualBox/VBoxNetAdp.kext'
Did you try rebooting the system? That would have the same effect.jbz wrote:The solution was to execute the last lines of the kext postflight script manually and with sudo
Code: Select all
2017-11-29 21:45:14+01 JBZs-MBP installd[495]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo={NSFilePath=./postflight, NSURL=file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg, PKInstallPackageIdentifier=org.virtualbox.pkg.vboxkexts, NSLocalizedDescription=An error occurred while running scripts from the package “VirtualBox.pkg”.} {
NSFilePath = "./postflight";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cVirtualBox.pkg\U201d.";
NSURL = "file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg";
PKInstallPackageIdentifier = "org.virtualbox.pkg.vboxkexts";
}
The installer does use sudo. That's why you're asked about your Admin password even if you are the Admin, otherwise you could just have dragged the application straight from the DMG, something similar to Firefox, Skype or any other program that doesn't need to install kernel extensions.jbz wrote:Not quite sure what happens, but to macOS security policy it seems to make a difference whether the kext is loaded by an Administrator user or by root (through sudo).
Code: Select all
spctl kext-consent add VB5E2TV963
Code: Select all
# kextload '/Library/Application Support/VirtualBox/VBoxDrv.kext'
/Library/Application Support/VirtualBox/VBoxDrv.kext failed to load - (libkern/kext) system policy prevents loading;
check the system/kernel logs for errors or try kextutil(8).
Version: Unknown Reason: No User Consent Date Disabled: UnknownClearly, this is wrong, because I have been attempting to provide consent all morning.
Code: Select all
spctl kext-consent add VB5E2TV963
spctlI was able to finish the installation and boot a centos image from my old Mac.
Code: Select all
# system_profiler -detailLevel mini > system_profiler.txt; kextstat | grep -v com.apple >> system_profiler.txt; gzip system_profiler.txt
Thanks for that and good luck.dsp_sd wrote:Another failure data point for you. After reading the apple technote and this thread and the kernel driver thread (viewtopic.php?f=8&t=84092), it's quite clear this is an apple problem.
I submitted an apple ticket with problemID=44233424