[Fixed] 5.2.12 install fails on macOS Mojave (#17805)

For discussions related to using VirtualBox on Mac OS X pre-releases

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby baconCheeseFry » 27. Jun 2018, 16:37

Hold up. I went back and completely removed the VboxDrv section from the info plist instead of setting it to 'LT 5.2' and now it installed. I can't open the app because it says `You can’t use this version of the application “VirtualBox.app” with this version of macOS. You have "VirtualBox.app 5.2.13". However, my homestead/vagrant box comes up so I guess I am good.
baconCheeseFry
 
Posts: 4
Joined: 27. Jun 2018, 15:59

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby noplacelike::1 » 27. Jun 2018, 18:34

Thanks! Working again for me.

ss.png
ss.png (98.42 KiB) Viewed 19237 times
noplacelike::1
 
Posts: 1
Joined: 27. Jun 2018, 18:29

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby IPv6Freely » 27. Jun 2018, 18:58

Same result.

I modified the kext Info.plist to be 5.4.12 (picked arbitrarily) instead of 5.2.12, and the kext now loads. I get the same error when I try to load the virtualbox GUI via Launchpad:
Screen Shot 2018-06-27 at 9.43.49 AM.png
Screen Shot 2018-06-27 at 9.43.49 AM.png (48.48 KiB) Viewed 19233 times


However, If I run VirtualBox from the CLI, the GUI opens and I can now start VMs. That clearly explains exactly why it's now working in Vagrant for the previous poster. I'd add a screenshot but max filesize on this forum is 128KB :lol:

Looks like we have a working patch! I checked the source tree repo and it looks like this patch must have come from a development branch that isn't available to view for us peons. Can you shed some light on what was changed?

Unfortunately because of Apple's exclude kext it, Oracle is going to have to release this as 5.3 which is a bit silly for a minor revision, but it is what it is...
Chris Jones
Sr. Network Engineer - Sempra Energy
JNCIE-ENT #272, CCIE #25655 (R&S)
Apple Developer Program - Running macOS Mojave 10.14 Beta
IPv6Freely
 
Posts: 49
Joined: 7. Jun 2018, 02:21
Location: San Diego, CA
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Junos

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby IPv6Freely » 27. Jun 2018, 19:47

For those who want to try the new patch, install as usual (the installation will fail) and then do the following:

Code: Select all   Expand viewCollapse view
sudo sed -i '' 's/5\.2/5\.3/g' '/Library/Application Support/VirtualBox/VBoxDrv.kext/Contents/Info.plist'

sudo kextload '/Library/Application Support/VirtualBox/VBoxDrv.kext'

kextstat -bundle-id org.virtualbox.kext.VBoxDrv

VirtualBox &


This assumes you have SIP disabled on your system (using csrutil disable from Recovery mode) so that an unsigned kext will load.
Chris Jones
Sr. Network Engineer - Sempra Energy
JNCIE-ENT #272, CCIE #25655 (R&S)
Apple Developer Program - Running macOS Mojave 10.14 Beta
IPv6Freely
 
Posts: 49
Joined: 7. Jun 2018, 02:21
Location: San Diego, CA
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Junos

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby socratis » 27. Jun 2018, 23:22

IPv6Freely wrote:Unfortunately because of Apple's exclude kext it, Oracle is going to have to release this as 5.3 which is a bit silly for a minor revision, but it is what it is...

Or, Apple can remove the exclusion in their next release (or make it < 5.2.12 | 5.1.38) , once they see that VirtualBox implemented the changes that they were blocking VirtualBox in the first place... ;)
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25316
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: 5.2.12 install fails on macOS Mojave (#17805)

Postby IPv6Freely » 28. Jun 2018, 00:12

Yup, also possible assuming that communication is there :)
Last edited by socratis on 28. Jun 2018, 23:29, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Chris Jones
Sr. Network Engineer - Sempra Energy
JNCIE-ENT #272, CCIE #25655 (R&S)
Apple Developer Program - Running macOS Mojave 10.14 Beta
IPv6Freely
 
Posts: 49
Joined: 7. Jun 2018, 02:21
Location: San Diego, CA
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Junos

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby Yaroon » 28. Jun 2018, 09:02

Unfortunately changing the version number doesn't fix it completely.
Code: Select all   Expand viewCollapse view
sudo kextload "/Library/Application Support/VirtualBox/VBoxDrv.kext"

might work... but a subsequent
Code: Select all   Expand viewCollapse view
sudo kextload "/Library/Application Support/VirtualBox/VBoxUSB.kext"

or
Code: Select all   Expand viewCollapse view
sudo kextload "/Library/Application Support/VirtualBox/VBoxNetAdp.kext"

does not.

It will fail with:
Code: Select all   Expand viewCollapse view
/Library/Application Support/VirtualBox/VBoxUSB.kext - dependency 'org.virtualbox.kext.VBoxDrv' not found.
Diagnostics for /Library/Application Support/VirtualBox/VBoxUSB.kext:
Dependency Resolution Failures:
    No kexts found for these libraries:
        org.virtualbox.kext.VBoxDrv

because these kexts are looking for VBoxDrv 5.2.13, not 5.3.13.
Yaroon
 
Posts: 5
Joined: 27. Jun 2018, 19:53
Location: Antwerp, Belgium
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Debian

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby mkc » 28. Jun 2018, 10:07

You need to change dependency versions in other kexts as well to match 5.3.13.
After doing so, still you might notice that
Code: Select all   Expand viewCollapse view
sudo kextload "/Library/Application Support/VirtualBox/VBoxUSB.kext"

will fail.

In that case you can try:
Code: Select all   Expand viewCollapse view
sudo kextutil -r /Library/Application\ Support/VirtualBox -bundle-id org.virtualbox.kext.VBoxUSB

which loaded the extension in my case.
mkc
 
Posts: 2
Joined: 28. Jun 2018, 10:02

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby Yaroon » 28. Jun 2018, 11:13

Thank you mkc, that was indeed it.

I had changed the dependency versions but kextload wouldn't load them. I had not thought (nor did I know) about kextutil -r

Thanks again. It still bugs me very much though that I don't know how to edit AppleKextExcludeList and have the changes become effective. Not even with `kextcache -i /` which seemed to rebuild all the kext caches.
Yaroon
 
Posts: 5
Joined: 27. Jun 2018, 19:53
Location: Antwerp, Belgium
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Debian

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby mkc » 28. Jun 2018, 15:37

Yaroon wrote:It still bugs me very much though that I don't know how to edit AppleKextExcludeList and have the changes become effective. Not even with `kextcache -i /` which seemed to rebuild all the kext caches.


IPv6Freely wrote:This assumes you have SIP disabled on your system (using csrutil disable from Recovery mode) so that an unsigned kext will load.
mkc
 
Posts: 2
Joined: 28. Jun 2018, 10:02

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby Yaroon » 28. Jun 2018, 15:41

Yeah, that's the case mkc
Code: Select all   Expand viewCollapse view
$ csrutil status
System Integrity Protection status: disabled.

It's strange, I don't get it.
Yaroon
 
Posts: 5
Joined: 27. Jun 2018, 19:53
Location: Antwerp, Belgium
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Debian

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby Canuk In Augusta » 28. Jun 2018, 16:15

Any idea when the patch will be released as an official release and be able to be run/Installed in Mojave without turning of system integrity?
Canuk In Augusta
 
Posts: 1
Joined: 28. Jun 2018, 16:14

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby IPv6Freely » 28. Jun 2018, 17:37

Canuk In Augusta wrote:Any idea when the patch will be released as an official release and be able to be run/Installed in Mojave without turning of system integrity?


Well, there's no real rush since the only people who would be running Mojave are developers anyway. So as long as it's out before Mojave comes out of Beta (late September, usually) it's fine 8)
Chris Jones
Sr. Network Engineer - Sempra Energy
JNCIE-ENT #272, CCIE #25655 (R&S)
Apple Developer Program - Running macOS Mojave 10.14 Beta
IPv6Freely
 
Posts: 49
Joined: 7. Jun 2018, 02:21
Location: San Diego, CA
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Junos

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby IPv6Freely » 28. Jun 2018, 17:44

Sorry guys, I should have mentioned the other kexts. Just use the commands from the postflight script (https://www.virtualbox.org/browser/vbox ... postflight):

Code: Select all   Expand viewCollapse view
sudo sed -i '' 's/5\.2/5\.3/g' '/Library/Application Support/VirtualBox/VBoxDrv.kext/Contents/Info.plist'
sudo sed -i '' 's/5\.2/5\.3/g' '/Library/Application Support/VirtualBox/VBoxUSB.kext/Contents/Info.plist'
sudo sed -i '' 's/5\.2/5\.3/g' '/Library/Application Support/VirtualBox/VBoxNetAdp.kext/Contents/Info.plist'
sudo sed -i '' 's/5\.2/5\.3/g' '/Library/Application Support/VirtualBox/VBoxNetFlt.kext/Contents/Info.plist'

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'

Virtualbox &
Last edited by IPv6Freely on 28. Jun 2018, 17:47, edited 1 time in total.
Chris Jones
Sr. Network Engineer - Sempra Energy
JNCIE-ENT #272, CCIE #25655 (R&S)
Apple Developer Program - Running macOS Mojave 10.14 Beta
IPv6Freely
 
Posts: 49
Joined: 7. Jun 2018, 02:21
Location: San Diego, CA
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Junos

Re: 5.2.12 install fails on macOS Mojave (#17805)

Postby IPv6Freely » 28. Jun 2018, 17:45

Yaroon wrote:Thanks again. It still bugs me very much though that I don't know how to edit AppleKextExcludeList and have the changes become effective. Not even with `kextcache -i /` which seemed to rebuild all the kext caches.

I had been thinking about this, but honestly I'd feel better about editing the kext of a 3rd party application instead of a system kext. This works well enough, for now.
Chris Jones
Sr. Network Engineer - Sempra Energy
JNCIE-ENT #272, CCIE #25655 (R&S)
Apple Developer Program - Running macOS Mojave 10.14 Beta
IPv6Freely
 
Posts: 49
Joined: 7. Jun 2018, 02:21
Location: San Diego, CA
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Junos

PreviousNext

Return to VirtualBox on Mac OS X pre-releases

Who is online

Users browsing this forum: No registered users and 1 guest