Reinstallation fails on OSX 10.9.3

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
BenHtn
Posts: 4
Joined: 19. Jun 2014, 19:32

Reinstallation fails on OSX 10.9.3

Post by BenHtn »

Hi there,
I've been experiencing the "Error: Kernel Driver not loaded" error described in this thread: viewtopic.php?f=8&t=52406
So I attempted to reinstall the latest version of VirtualBox (VirtualBox-4.3.12-93733-OSX.dmg) and the installation failed at the end of the process saying it "encountered an error".
So I uninstalled the existing version using a VirtualBox mac OSX uninstaller (possibly not the same as the version I had installed...), rebooted, ran a Disk Permission repair, and tried again, but I get the same error.
So I tried earlier versions of VirtualBox (VirtualBox-4.3.10-93012-OSX.dmg), same deal.
The account I am using is an administrator on the machine.
In /var/VirtualBox.log I found errors like this (full example at end of post):

Code: Select all

Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo=0x7f7f6af06950 {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";
        }
I have recently run an inplace upgrade to 10.9.3 (Mavericks) but VirtualBox had been running OK - I did get a corruption in my VirtualBox.xml, but I replaced it with the VirtualBox.xml-prev version and everything seemed OK again.
Does anyone have any suggestions on what else I can try please?
Many thanks in advance
Ben

Full install log example:

Code: Select all

Jun 19 18:35:04 cgb05007.home Installer[11722]: LSExceptions [0x7fab4340dfa0] loaded
Jun 19 18:35:04 cgb05007.home Installer[11722]: @(#)PROGRAM:Install  PROJECT:Install-846
Jun 19 18:35:04 cgb05007.home Installer[11722]: @(#)PROGRAM:Installer  PROJECT:Installer-721
Jun 19 18:35:04 cgb05007.home Installer[11722]: Hardware: MacBookPro10,1 @ 2.30 GHz (x 8), 8192 MB RAM
Jun 19 18:35:04 cgb05007.home Installer[11722]: Running OS Build: Mac OS X 10.9.3 (13D65)
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: TMPDIR=/var/folders/91/_js0z3dd01gbb0r0j3p35c140000gp/T/
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: SHELL=/bin/bash
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: HOME=/Users/--------
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: USER=--------
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: LOGNAME=--------
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: SSH_AUTH_SOCK=/tmp/launch-zJbjid/Listeners
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: Apple_PubSub_Socket_Render=/tmp/launch-kStO1c/Render
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: DISPLAY=/tmp/launch-ArPDSd/org.macosforge.xquartz:0
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: COMMAND_MODE=unix2003
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: __CHECKFIX1436934=1
Jun 19 18:35:04 cgb05007.home Installer[11722]: Env: __CF_USER_TEXT_ENCODING=0x1F6:0:0
Jun 19 18:35:04 cgb05007.home Installer[11722]: Oracle VM VirtualBox 4.3.12 Installation Log
Jun 19 18:35:04 cgb05007.home Installer[11722]: Opened from: /Volumes/VirtualBox/VirtualBox.pkg
Jun 19 18:35:04 cgb05007.home Installer[11722]: Product archive /Volumes/VirtualBox/VirtualBox.pkg trustLevel=202
Jun 19 18:35:05 cgb05007.home Installer[11722]: JS: Hardware architecture detected: x86_64
Jun 19 18:35:05 cgb05007.home Installer[11722]: JS: OS version detected: 10.9.3
Jun 19 18:35:05 cgb05007.home Installer[11722]: JS: system.run /bin/sh .. returned: 1 result=true
Jun 19 18:35:05 cgb05007.home Installer[11722]: JS: result:true
Jun 19 18:35:06 cgb05007.home Installer[11722]: InstallerStatusNotifications plugin loaded
Jun 19 18:35:13 cgb05007.home runner[11774]: Administrator authorization granted.
Jun 19 18:35:13 cgb05007.home Installer[11722]: ================================================================================
Jun 19 18:35:13 cgb05007.home Installer[11722]: User picked Standard Install
Jun 19 18:35:13 cgb05007.home Installer[11722]: Choices selected for installation:
Jun 19 18:35:13 cgb05007.home Installer[11722]:         Install: "Oracle VM VirtualBox"
Jun 19 18:35:13 cgb05007.home Installer[11722]:         Install: "Oracle VM VirtualBox Kernel Extensions"
Jun 19 18:35:13 cgb05007.home Installer[11722]:                 VirtualBox.pkg#VBoxKEXTs.pkg : org.virtualbox.pkg.vboxkexts : 4.3.12
Jun 19 18:35:13 cgb05007.home Installer[11722]:         Install: "Oracle VM VirtualBox"
Jun 19 18:35:13 cgb05007.home Installer[11722]:                 VirtualBox.pkg#VirtualBox.pkg : org.virtualbox.pkg.virtualbox : 4.3.12
Jun 19 18:35:13 cgb05007.home Installer[11722]:         Install: "Oracle VM VirtualBox Command Line Utilities"
Jun 19 18:35:13 cgb05007.home Installer[11722]:                 VirtualBox.pkg#VirtualBoxCLI.pkg : org.virtualbox.pkg.virtualboxcli : 4.3.12
Jun 19 18:35:13 cgb05007.home Installer[11722]: ================================================================================
Jun 19 18:35:13 cgb05007.home Installer[11722]: It took 0.00 seconds to summarize the package selections.
Jun 19 18:35:13 cgb05007.home Installer[11722]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Jun 19 18:35:13 cgb05007.home Installer[11722]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg
Jun 19 18:35:13 cgb05007.home Installer[11722]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VirtualBox.pkg
Jun 19 18:35:13 cgb05007.home Installer[11722]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VirtualBoxCLI.pkg
Jun 19 18:35:14 cgb05007.home Installer[11722]: Set authorization level to root for session
Jun 19 18:35:14 cgb05007.home Installer[11722]: LSExceptions [0x7fab4340dfa0] unloaded
Jun 19 18:35:14 cgb05007.home Installer[11722]: Will use PK session
Jun 19 18:35:14 cgb05007.home Installer[11722]: Starting installation:
Jun 19 18:35:14 cgb05007.home Installer[11722]: Configuring volume "Macintosh HD"
Jun 19 18:35:14 cgb05007.home Installer[11722]: Preparing disk for local booted install.
Jun 19 18:35:14 cgb05007.home Installer[11722]: Free space on "Macintosh HD": 38.53 GB (38532284416 bytes).
Jun 19 18:35:14 cgb05007.home Installer[11722]: Create temporary directory "/var/folders/91/_js0z3dd01gbb0r0j3p35c140000gp/T//Install.11722fWv3Sv"
Jun 19 18:35:14 cgb05007.home Installer[11722]: IFPKInstallElement (3 packages)
Jun 19 18:35:14 cgb05007.home Installer[11722]: Using authorization level of root for IFPKInstallElement
Jun 19 18:35:14 cgb05007.home installd[815]: PackageKit: Adding client PKInstallDaemonClient pid=11722, uid=502 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Jun 19 18:35:14 cgb05007.home Installer[11722]: PackageKit: Enqueuing install with boosting
Jun 19 18:35:14 cgb05007.home installd[815]: PackageKit: ----- Begin install -----
Jun 19 18:35:14 cgb05007.home installd[815]: PackageKit: request=PKInstallRequest <3 packages, destination=/>
Jun 19 18:35:14 cgb05007.home installd[815]: PackageKit: packages=(
            "PKLeopardPackage <file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg>",
            "PKLeopardPackage <file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VirtualBox.pkg>",
            "PKLeopardPackage <file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VirtualBoxCLI.pkg>"
        )
Jun 19 18:35:14 cgb05007.home installd[815]: PackageKit: Extracting file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/FF565CC5-58C4-4CF1-81B8-CF5E5BD369A4.activeSandbox/Root/Library/Application Support/VirtualBox, uid=0)
Jun 19 18:35:22 cgb05007.home installd[815]: PackageKit: Extracting file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VirtualBox.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/FF565CC5-58C4-4CF1-81B8-CF5E5BD369A4.activeSandbox/Root/Applications, uid=0)
Jun 19 18:35:23 cgb05007.home installd[815]: PackageKit: Extracting file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VirtualBoxCLI.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/FF565CC5-58C4-4CF1-81B8-CF5E5BD369A4.activeSandbox/Root/usr/bin, uid=0)
Jun 19 18:35:23 cgb05007.home installd[815]: PackageKit: prevent user idle system sleep
Jun 19 18:35:23 cgb05007.home installd[815]: PackageKit: suspending backupd
Jun 19 18:35:23 cgb05007.home installd[815]: PackageKit: Executing script "./preflight" in /private/tmp/PKInstallSandbox.Ssd8Za/Scripts/org.virtualbox.pkg.virtualbox.5OlMEW
Jun 19 18:35:23 cgb05007.home install_monitor[11904]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jun 19 18:35:23 cgb05007.home installd[815]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/FF565CC5-58C4-4CF1-81B8-CF5E5BD369A4.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/FF565CC5-58C4-4CF1-81B8-CF5E5BD369A4.activeSandbox
Jun 19 18:35:23 cgb05007.home installd[815]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/FF565CC5-58C4-4CF1-81B8-CF5E5BD369A4.activeSandbox/Root (3 items) to /
Jun 19 18:35:23 cgb05007.home installd[815]: PackageKit: Executing script "./postflight" in /private/tmp/PKInstallSandbox.Ssd8Za/Scripts/org.virtualbox.pkg.vboxkexts.3jk0Sg
Jun 19 18:35:23 cgb05007.home installd[815]: ./postflight: /Library/Application Support/VirtualBox/VBoxDrv.kext failed to load - (libkern/kext) dependency resolution failure; check the system/kernel logs for errors or try kextutil(8).
Jun 19 18:35:23 cgb05007.home install_monitor[11904]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: releasing backupd
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: allow user idle system sleep
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo=0x7f7f6af06950 {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";
        }
Jun 19 18:35:24 cgb05007.home Installer[11722]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo=0x7fab45e04a80 {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”.}
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Running idle tasks
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Removing client PKInstallDaemonClient pid=11722, uid=502 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Done with sandbox removals
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/575E3AF5-203C-401C-B4E2-1B83492E3E62.sandbox: relevance 5
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/ED87B7B1-6076-472C-8366-63C0BBB572D9.sandbox: relevance 43
Jun 19 18:35:24 cgb05007.home installd[815]: PackageKit: Sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/FB082B57-8451-4F24-9799-C4F38461B974.sandbox: relevance 5
Jun 19 18:35:24 cgb05007.home Installer[11722]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Jun 19 18:35:24 cgb05007.home Installer[11722]: IFDInstallController 435268F0 state = 8
Jun 19 18:35:24 cgb05007.home Installer[11722]: Displaying 'Install Failed' UI.
Jun 19 18:35:24 cgb05007.home Installer[11722]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
BenHtn
Posts: 4
Joined: 19. Jun 2014, 19:32

Re: Reinstallation fails on OSX 10.9.3

Post by BenHtn »

Just to eliminate a couple of other "have you tried..."s
Moving the whole ~/Library/VirtualBox folder out of the way doesn't work (same error).
Installing as root from terminal doesn't work (same error).
Any ideas anyone please?
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Reinstallation fails on OSX 10.9.3

Post by loukingjr »

BenHtn wrote:Just to eliminate a couple of other "have you tried..."s
Moving the whole ~/Library/VirtualBox folder out of the way doesn't work (same error).
Installing as root from terminal doesn't work (same error).
Any ideas anyone please?
I don't think it's a great idea to install an app as root. But since you already did, I would first try to use the uninstall tool as root in case any part of VirtualBox did manage to be installed.

I have to say, I have installed various versions of VirtualBox on four different Macs over a period of five years and I've never had the installer fail. Be that as it may, I would try uninstalling it once more. Then do a search for anything VirtualBox related including system and invisible files. If you find anything, delete them other than your VMs of course. You might want to backup your VM folder first just to be on the safe side. Download the VirtualBox installer and make sure the checksums match.

Start your Mac in safe mode and try and install VB. If it still fails I haven't a clue.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
BenHtn
Posts: 4
Joined: 19. Jun 2014, 19:32

Re: Reinstallation fails on OSX 10.9.3

Post by BenHtn »

Then do a search for anything VirtualBox related including system and invisible files
Don't suppose anyone had a find command that would cover that do they? (As I am assuming that not everything installed is in folders nicely named "VirtualBox")
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Reinstallation fails on OSX 10.9.3

Post by loukingjr »

I think any virtualbox files are either named virtualbox or vbox.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
BenHtn
Posts: 4
Joined: 19. Jun 2014, 19:32

Re: Reinstallation fails on OSX 10.9.3

Post by BenHtn »

Managed to fix it. I had a folder called ~/VirtualBox\ VMs/ which contained Logs, Snapshots & .vbox files. I moved that out of the way and the installation works (however I have no absolute positive/ repeatable test case so can't say that was it 100%). Hope that might help anyone else with the same issue.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Reinstallation fails on OSX 10.9.3

Post by loukingjr »

BenHtn wrote:Managed to fix it. I had a folder called ~/VirtualBox\ VMs/ which contained Logs, Snapshots & .vbox files. I moved that out of the way and the installation works (however I have no absolute positive/ repeatable test case so can't say that was it 100%). Hope that might help anyone else with the same issue.
actually that is where any VMs would be and they wouldn't be removed so any guests you had created would be there after you updated VirtualBox.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply