Yosemite Failed to Install

markkenny
New Contributor III

Trying to get away from monolith images for users and use the Apple OS installer, along with profiles, scripts and the needed packages. (Plus my monolith image didn't work on the 5k iMac at all, or retina MacBooks very well).

I've pulled the Apple Yosemite installer a couple of times, added the InstallESD.dmg and indicated it's a OS installer, priority 1 on Casper 9.61, and every time the Apple installer fails when running imaging 9.61 from a 10.10.2 Netboot. (please ignore the last log line, we were experimenting with pushing out a user template folder, won't be doing that in production).

Am testing using a USB/Firewire boot to image from, but anyone had problems with Yosemite failling to install like this...

Wed Mar 25 15:53:25 NetBoot148 jamf[554]: Installing OSInstall.mpkg...
Wed Mar 25 15:54:02 NetBoot148 jamf[554]: Installation failed. The installer reported: 2015-03-25 15:53:25.729 installer[593:54938] connection test:success
connection test:success
installer: OS Install started.
installer:%0.000000
installer:%0.130551
installer:%0.130551
installer:%0.130551
installer:%0.130551
installer:%0.130551
installer:%0.130551
installer:%0.142301
installer:%0.142301
installer:%0.142301
installer:%0.142301
installer:%0.142301
installer:%0.142301
installer:%0.518289
installer:%0.518289
installer:%0.518289
installer:%1.305514
installer:%1.305514
installer:%1.305514
installer:%1.305514
installer:%1.305514
installer:%1.305514
installer:%1.305514
installer:%1.305514
installer:%5.352609
installer:%5.483160
installer:%5.613712
installer:%5.744263
installer:%6.005366
installer:%6.070642
installer:%6.096702
installer:%6.488357
installer:%6.488357
installer:%6.618908
installer:%6.749460
installer:%6.880011
installer:%7.141114
installer:%7.141114
installer:%7.271665
installer:%7.402217
installer:%7.532768
installer:%7.793871
installer:%8.054974
installer:%8.054974
installer:%8.185525
installer:%8.316077
installer:%8.577180
installer:%8.577180
installer:%8.968834
installer:%8.968834
installer:%8.968834
installer:%9.099385
installer:%9.229937
installer:%9.360488
installer:%9.621591
installer:%9.752143
installer:%9.752143
installer:%9.882694
installer:%10.013246
installer:%10.404900
installer: The OS Install failed with error: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “BaseSystemResources.pkg”." UserInfo=0x7f83034c6f10 {NSLocalizedDescription=An error occurred while extracting files from the package “BaseSystemResources.pkg”., NSFilePath=/Volumes/Macintosh HD/.OSInstallSandboxPath/Root, NSURL=file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemResources.pkg, PKInstallPackageIdentifier=com.apple.pkg.BaseSystemResources, NSUnderlyingError=0x7f830341df80 "The file “OS X Base System” doesn’t exist."}.
Wed Mar 25 15:54:03 NetBoot148 jamf[684]: Installing User Template.pkg...
Wed Mar 25 15:54:08 NetBoot148 jamf[684]: Successfully installed User Template.pkg.
8 REPLIES 8

perrycj
Contributor III

I would look into using AutoDMG to make your base OS image and then using that file through Casper Imaging/Munki/etc to image your Macs.

It makes a vanilla OS installation dmg and will also add updates since that Apple installer was released (iTunes, Security Updates, etc), and bake them into the final OS dmg. Check it out.

htse
Contributor III

is this the symptom of single system or is it the same result across multiple systems?

markkenny
New Contributor III

@perrycj Building the AutoDMG tonight, will try installing tomorrow. Seen the videos, but just thought it'd be simple to add the Apple installer to run a configuration rather than building a DMG of it.

@htse Replicated on late 2014 MacMini, 2010 MacBookPro. Spoke to @pvader today who had similar issue when using netboot not sure which hardware, but he had no problem when using booted USB stick to run Casper Imaging. Building my Yosemite boot disk tonight also to test tomorrow.

I like my netboot setup, hence my efforts for netboot; I have full casper suite, but also Drive Genius, Carbon Copy, Disk Drill and a few other tools. My own little Apple Hardware test and data recovery tools.

htse
Contributor III

does /var/log/install.log give any further detail than the console output?

ToriAnneke
Contributor II

If I use AutoDMG to build on a never-been-booted OS on a MacBookPro 9,1 per say, is the the final output made specifically for that machine's model or does it make a 'universal' never-been-booted image?

For quite sometime, I've been using Apple Installers off a bootable OS X Installer USB stick. Which I am quite happy with the outcome and have very little issues. I am under the impression that Apple OS installers are Universal. Am I correct in this?

Thanks as always!
-pat

perrycj
Contributor III

@markkenny cool, hope it works for you.

@pvader Yes, it creates a universal OS image for whatever hardware will support it. It doesn't matter what hardware you make it on, as it uses the Apple installer from the App Store as its base.

markkenny
New Contributor III

Would have done testing quicker if I remembered to de-select Erase target drive after running OS installs ;-)

I can use use Casper Imaging to install OS X from the InstallESD when booted from a separate bootable hard drive. The same installation when running from Netboot fails. But a AutoDMGd OS installs fine.

@pvader Tried testing how 'vanilla' the AutoDMGd image was, did a full OS install without a user, so I couldn't login ;-) Reboot back into imaging and pushed users and apps and scripts.

Need to work on user profile; icloud blocking, bash shells etc. But I'm in a much better place than I was yesterday. Thank you gents.

@htse Here's the other logs, it's missing BaseSystemResources.pkg. Not sure why.

Mar 26 11:03:20 netboot.MYSECRETSERVER.com installer[1170]: Preparing disk for OS Install.
Mar 26 11:03:20 netboot.MYSECRETSERVER.com installer[1170]: Removing background color for incompatible machine Mac-35C5E08120C7EEAF
Mar 26 11:03:20 netboot.MYSECRETSERVER.com installer[1170]: Evaluating 1 disks
Mar 26 11:03:20 netboot.MYSECRETSERVER.com installer[1170]: Evaluating SKDisk { BSD Name: disk0s2 Mount point: /Volumes/Mac HD Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
Mar 26 11:03:20 netboot.MYSECRETSERVER.com installer[1170]: Mac HD is a valid target.
Mar 26 11:03:21 netboot.MYSECRETSERVER.com storagekitd[1171]: Journaling already enabled for disk: <DADisk 0x7fbc81c26670 [0x105db7cf0]>{id = /dev/disk0s2}
Mar 26 11:03:21 netboot.MYSECRETSERVER.com installer[1170]: Evaluating 1 disks
Mar 26 11:03:21 netboot.MYSECRETSERVER.com installer[1170]: Evaluating SKDisk { BSD Name: disk0s2 Mount point: /Volumes/Mac HD Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
Mar 26 11:03:21 netboot.MYSECRETSERVER.com installer[1170]: Mac HD is a valid target.
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installd[1242]: installd: Starting
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installd[1242]: installd: uid=0, euid=0
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: Adding client PKInstallDaemonClient pid=1170, uid=0 (/usr/sbin/installer)
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installer[1170]: PackageKit: Enqueuing install with default quality of service (utility)
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: ----- Begin install -----
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: request=PKInstallRequest <13 packages, destination=/Volumes/Mac HD>
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: packages=(
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemBinaries.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemResources.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/Essentials.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/BSD.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/JavaTools.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/AdditionalEssentials.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/AsianLanguagesSupport.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/JavaEssentials.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/MediaFiles.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/OxfordDictionaries.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/OSInstall.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/AdditionalSpeechVoices.pkg>",
        "PKLeopardPackage <file:///Volumes/OS%20X%20Install%20ESD/Packages/X11redirect.pkg>"
    )
Mar 26 11:03:22 netboot.MYSECRETSERVER.com installer[1170]: Began install
Mar 26 11:03:25 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: Extracting file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemBinaries.pkg (destination=/Volumes/Mac HD/.OSInstallSandboxPath/Root, uid=0)
Mar 26 11:03:41 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: External payload root /Volumes/OS X Base System for package com.apple.pkg.BaseSystemResources does not exist!
Mar 26 11:03:41 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “BaseSystemResources.pkg”." UserInfo=0x7f9ee1cc03b0 {NSUnderlyingError=0x7f9ee1cd5390 "The file “OS X Base System” doesn’t exist.", NSFilePath=/Volumes/Mac HD/.OSInstallSandboxPath/Root, NSURL=file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemResources.pkg, PKInstallPackageIdentifier=com.apple.pkg.BaseSystemResources, NSLocalizedDescription=An error occurred while extracting files from the package “BaseSystemResources.pkg”.} {
        NSFilePath = "/Volumes/Mac HD/.OSInstallSandboxPath/Root";
        NSLocalizedDescription = "An error occurred while extracting files from the package U201cBaseSystemResources.pkgU201d.";
        NSURL = "file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemResources.pkg";
        NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=4 "The file U201cOS X Base SystemU201d doesnU2019t exist." UserInfo=0x7f9ee1c3c280 {NSFilePath=/Volumes/OS X Base System}";
        PKInstallPackageIdentifier = "com.apple.pkg.BaseSystemResources";
    }
Mar 26 11:03:41 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: Running idle tasks
Mar 26 11:03:41 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: Removing client PKInstallDaemonClient pid=1170, uid=0 (/usr/sbin/installer)
Mar 26 11:03:41 netboot.MYSECRETSERVER.com installer[1170]: OSIInstallElement <OSIInstallElement: 0x7f9f349116c0> errored out:Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “BaseSystemResources.pkg”." UserInfo=0x7f9f349abdb0 {NSLocalizedDescription=An error occurred while extracting files from the package “BaseSystemResources.pkg”., NSFilePath=/Volumes/Mac HD/.OSInstallSandboxPath/Root, NSURL=file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemResources.pkg, PKInstallPackageIdentifier=com.apple.pkg.BaseSystemResources, NSUnderlyingError=0x7f9f3499f630 "The file “OS X Base System” doesn’t exist."}
Mar 26 11:03:41 netboot.MYSECRETSERVER.com storagekitd[1171]: storagekitd: copyDiskForPath returned nil
Mar 26 11:03:41 netboot.MYSECRETSERVER.com installer[1170]: ------- Install Failed -------
Mar 26 11:03:41 netboot.MYSECRETSERVER.com installer[1170]: Operation: Install packages failed, Failure Reason: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “BaseSystemResources.pkg”." UserInfo=0x7f9f349abdb0 {NSLocalizedDescription=An error occurred while extracting files from the package “BaseSystemResources.pkg”., NSFilePath=/Volumes/Mac HD/.OSInstallSandboxPath/Root, NSURL=file:///Volumes/OS%20X%20Install%20ESD/Packages/BaseSystemResources.pkg, PKInstallPackageIdentifier=com.apple.pkg.BaseSystemResources, NSUnderlyingError=0x7f9f3499f630 "The file “OS X Base System” doesn’t exist."}
Mar 26 11:03:41 netboot.MYSECRETSERVER.com storagekitd[1171]: Removing client connection <SKDaemonConnection: 0x7fbc81e04770>
Mar 26 11:03:41 netboot.MYSECRETSERVER.com storagekitd[1171]: No more connections, storagekitd will exit...
Mar 26 11:03:42 netboot.MYSECRETSERVER.com installd[1242]: PackageKit: Done with sandbox removals
Mar 26 11:03:42 netboot.MYSECRETSERVER.com installer[1274]: Product archive /Volumes/Casper/Packages/User Template.pkg trustLevel=100
Mar 26 11:03:43 netboot.MYSECRETSERVER.com installer[1274]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost

davidacland
Honored Contributor II

In case you want to stick with traditional installs of OS X I would definitely recommend createOSXinstallpkg. It works really well.

I've got a blog dissecting our first boot script and using config profiles to replace a lot of the first boot script stuff if its of any use:

http://www.amsys.co.uk/2015/blog/creating-first-boot-script/
http://www.amsys.co.uk/2015/blog/creating-config-profiles-instead-first-boot-script/#.VRRAJFwXdfk