Installation fails on 10.13.x, 10.14.x (rc=-1908)

Discussions related to using VirtualBox on Mac OS X hosts.

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby rahxephon » 1. May 2019, 22:30

here is the log requested
Attachments
Installer Log 1-May-2019.txt.zip
(3.13 KiB) Downloaded 46 times
Last edited by socratis on 1. May 2019, 22:42, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
rahxephon
 
Posts: 3
Joined: 30. Apr 2019, 01:04

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby socratis » 1. May 2019, 22:49

I'm afraid it's still the same issue:
May  1 16:29:18 Jose-C-MBP installd[437]: ./postflight: /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).

Please try once again to follow the instructions of the first post in this thread. Shut down the computer, not Restart. When you press the power button again, hold Cmd+Opt+P+R (those piano lessons are really going to pay off now). See if that solves it...
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.
socratis
Site Moderator
 
Posts: 27379
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Ben85 » 7. May 2019, 10:34

Just curious whether the VirtualBox developers are planning to update the installer for MacOS? Obviously, the solution for allowing third-party kernel extensions to load is straight forward, but the installer still indicates installation failure. In reality, the installation itself was successful, but the kernel extension wasn't immediately loaded.

From the Apple Developer article referenced in the original post:

"Apps or installers that treat a KEXT load failure as a hard error will need to be changed to handle this new case."


Installers and applications that load kernel extensions may need to be revised to gracefully handle the kernel extension failing to load. Many products treat a KEXT loading failure as a hard failure. Some prompt the user to reinstall, some present a cryptic error message, and some simply don't function.

Starting with macOS High Sierra, installers and apps that load KEXTs should expect that KEXT loading will fail if the user hasn't approved their KEXT. Instead of treating this as an error, the user should be informed that they may need to approve the KEXT.

To determine if a KEXT has failed to load because it does not have user approval:
- If you are using kextutil or kextload, check for the exit code 27. In addition, kextutil will produce the error message System policy prevents loading the kernel extension.
- If you are using the KextManager APIs in IOKit/kext/KextManager.h, check for the result code kOSKextReturnSystemPolicy.


I understand there are likely more pressing issues for the developers to resolve. Due to this, if you can point me in the right direction, I'd be happy to take a look at resolving the issue.

As of VirtualBox 6.0.6 (r130049), the following still occurs (see attached screenshot, apologies about the scaling).
Attachments
VirtualBox_Installation_Error.jpg
VirtualBox 6.0.6 (r130049) Installation Error
VirtualBox_Installation_Error.jpg (114.35 KiB) Viewed 7716 times
Ben85
 
Posts: 5
Joined: 2. Mar 2016, 16:06

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby ted_chou12 » 13. May 2019, 12:49

Thank you for the previous posts.
I found the reason, seems like the newer Macbooks especially the Macbook 12inch and the Macbook Air doesn't have USB ports, so USB ports should be disabled in order not to cause software issues.
ted_chou12
 
Posts: 1
Joined: 13. May 2019, 12:48

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Jack Wang » 14. May 2019, 06:00

Still see the problem on an old 15" Macbook Pro with USB ports. It runs macOS 10.14.5 and the problem occurs right after a software update.
Both Virtualbox version 6.0.6 and version 5.2.28 fail to install. Oracle isn't showing up in Security preferences as being blocked at all.
The main problem is that I lose access to all my existing VMs!

It turns out that adding editor Oracle in the list of security kext manually works well for me.

Refer to stackoverflow questions/55004803/install-virtualbox-6-on-mac-10-14-mojave-failed-with-kernel-install-error. quoted below.

Install Virtual box on mac OS +10.3 with security kernel can failed. After you have this message :

Kernel driver not installed (rc=-1908)

because you have to add editor Oracle in the list of security kext.

If you have chance, you can see the ask for authorisation in Preference -> "Security and Privacy".

But it was not my case. I want to share the solution, because it was a really pain for me: Add Oracle editor in this authorization list.

Restart your mac in Recovery mode (cmd + R)

Then open a Terminal and enter : spctl kext-consent add VB5E2TV963

Restart your mac.

VB5E2TV963 is the code for oracle.

It's ok for me with Mojave and Virtual Box 6.
Jack Wang
 
Posts: 1
Joined: 14. May 2019, 05:38

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Sy » 14. May 2019, 09:16

Hello, Yesterday I downloaded VirtualBox 6 and tried to install on my iMAC which is running macOS Mojave 10.14.5, I've created a post on superuser, link below:

https://superuser.com/questions/1436347 ... nder-macos

Of the many posts I found online with how to solve this my Security & Privacy dialog does not give me the option to allow VirtualBox, how can I resolve this?

Thank you,
Kind Regards,
Sy
Sy
 
Posts: 33
Joined: 30. Oct 2017, 22:29
Location: United Kingdom
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby spacebug » 14. May 2019, 19:42

I'm also using Virtualbox 6.0.6 on macOS 10.14.5

I followed the posst from Jack Wang and I got it to work. Thank you!
spacebug
 
Posts: 2
Joined: 14. May 2019, 19:40

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Sy » 14. May 2019, 20:12

Sorry, I found the post and tried it...I got:

kext_consent: invalid API object reference

Also it would appear the instruction isn't quite correct either as I had to prefix add with --, so the line should read:

spctl kext_consent --add VB5E2TV963

Doh!

Its:

spctl kext-consent add VB5E2TV963

That is accepted...trying now.

Thank you, it works!!!
Kind Regards,
Sy
Sy
 
Posts: 33
Joined: 30. Oct 2017, 22:29
Location: United Kingdom
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Darius123 » 15. May 2019, 09:15

so 6.0.8 fails to install on macOS 10.14.5

Screenshot 2019-05-15 at 07.49.36.jpg
Screenshot 2019-05-15 at 07.49.36.jpg (35.72 KiB) Viewed 7543 times


maybe something to do with extensions notarization? (or rather lack of it)

https://developer.apple.com/documentati ... stribution

as per link above:

"Beginning in macOS 10.14.5, all new or updated kernel extensions and all software from developers new to distributing with Developer ID must be notarized in order to run. In a future version of macOS, notarization will be required by default for all software."
Darius123
 
Posts: 41
Joined: 3. Aug 2016, 21:06
Location: UK
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win 7 Pro, MacOS, Linux*

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Darius123 » 15. May 2019, 10:05

Good news is that "spctl kext-consent add VB5E2TV963" in recovery mode saves the day.

It would be nice though if VBox devs solve this in the future.
Last edited by Darius123 on 15. May 2019, 11:10, edited 1 time in total.
Darius123
 
Posts: 41
Joined: 3. Aug 2016, 21:06
Location: UK
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win 7 Pro, MacOS, Linux*

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Amarok2 » 15. May 2019, 10:22

Hello,
:D
I just solved this problem by disabling SIP.

I run Mojave 10.14.5 (fresh update), and try to uninstall completly VirtualBox, then trying to reinstall it from the latest 6.0.8 version.
Failed to install :cry: .

So i reboot my mac on the recovery partition, [ CMD ] + [ R ] at startup, launch the Terminal from the Utilities Menu and type the following command :
Code: Select all   Expand viewCollapse view
csrutil disable
.
Then reboot my mac normaly and the VirtualBox installer works fine (and the app too) !
After the installation, you should reactivate the SIP by redo the same action, and typing
Code: Select all   Expand viewCollapse view
csrutil enable


Hopes it solved the problem for you.
"Tu ne feras point de machines à l'esprit de l'homme semblable."
Amarok2
 
Posts: 1
Joined: 15. May 2019, 10:03
Location: Perpignan, France
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Win10, Ubunut, SnowLeopard (testing all)

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Darius123 » 15. May 2019, 11:09

Amarok2 wrote:Hello,
:D
I just solved this problem by disabling SIP.


IMHO "spctl kext-consent add VB5E2TV963" in recovery mode is more practical as should work with future VBox updates.
Darius123
 
Posts: 41
Joined: 3. Aug 2016, 21:06
Location: UK
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win 7 Pro, MacOS, Linux*

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby Aegrotatio » 15. May 2019, 21:46

This is ridiculous how often the MacOS installation fails.

Why can't we sort this out once and for all?!

All my MacOS hosts are now dead due to the May 14 update.
Aegrotatio
 
Posts: 3
Joined: 5. Mar 2012, 06:23

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby AlphaZero » 17. May 2019, 17:45

Hi everyone. I was having holy Hades with this 6.0.8 on OSX 10.14.5. I followed all tutorials and still never worked. I was finally able to uninstall it using the Unistall script and successfully loaded 6.0.4 without failing. This is the fix until a newer signed version of the KEXT comes out. Again, load 6.0.4 from prior builds.

I'm so dependent on VB for my work, this was a major stressful issue for me and I'm finally glad it works!!!!!! :D :D :D :D :D :D :shock: :shock: :shock: :shock: :shock: :shock: :wink: :wink: :wink: :wink: :wink:
AlphaZero
 
Posts: 1
Joined: 17. May 2019, 17:40

Re: Installation fails on 10.13.x, 10.14.x (rc=-1908)

Postby LotusSound » 18. May 2019, 08:07

Darius123 wrote:Good news is that "spctl kext-consent add VB5E2TV963" in recovery mode saves the day.


Thanks
LotusSound
 
Posts: 4
Joined: 21. Apr 2019, 06:05

PreviousNext

Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: Google [Bot] and 19 guests