Deploying OS X by Imaging Using the JSS v9.66 or Earlier

Deploying OS X by imaging involves the following steps:

  1. Prepare to image a main partition.

  2. (Optional) Prepare to create or modify a “Recovery HD” partition during imaging.

  3. Image computers.

Requirements

To deploy OS X by imaging, you need:

  • The JAMF Software Server (JSS) v8.3 or later

  • A test computer with:

    • Composer

    • A “Recovery HD” partition

  • Casper Admin

  • A distribution point

  • A startup disk other than the target drive that has Casper Imaging installed
    Some common startup disks used for imaging are USB or FireWire drives, Restore partitions, and NetBoot images.

Step 1: Prepare to Image a Main Partition

  1. Build an OS package:

    1. On the test computer, install and configure the OS. For complete instructions, see the following Knowledge Base article:
      Creating a Minimal Base OS Image

    2. Open Composer and authenticate locally.

    3. In the toolbar, click New images/download/thumbnails/5832905/icon_C_New.png .

    4. Under the Operating System heading in the sidebar, select Build OS Package.

    5. Select the drive you want to package and click Next.

    6. Choose options for removing unnecessary files from the package and click Next.

      images/download/attachments/5150096/Build_OS_package.png
    7. Enter a package name and select a location to save the package, and then click Build.

  2. Add the OS package to Casper Admin:

    1. Open Casper Admin and authenticate to the JSS.

    2. Drag the package to the main repository in Casper Admin.
      The package is displayed in blue text until you add it to a category.

      images/download/attachments/5150096/Casper_Admin_Main_Repository2.png
    3. Double-click the package in the main repository.

    4. Click the General tab and choose a category for the package.

      images/download/attachments/5150096/Casper_Admin_Main_Partition_General0.png
    5. Click the Options tab and choose a priority for the package.
      The recommended priority is “1”.

      images/download/attachments/5150096/Casper_Admin_Main_Partition_Options.png
    6. Click OK.

  3. Create a configuration:

    1. Open Casper Admin and authenticate to the JSS.

    2. Click New Config images/download/thumbnails/5832909/icon_CA_folder.png .

    3. On the General pane, enter a display name for the configuration.

      images/download/attachments/5150096/Configuration_General.png
    4. Click the Management tab and enter credentials for a local administrator account that you want to use for management.

      images/download/attachments/5150096/Configuration_Management.png
    5. Click OK.
      The configuration is added to the list of configurations in the sidebar.

    6. Drag the OS package from the main repository to the configuration that you just created.

Step 2: (Optional) Prepare to Create or Modify a “Recovery HD” Partition During Imaging

As of OS X v10.7, newly purchased Macs come with a “Recovery HD” partition that can be used for recovery tasks, such as repairing disks or reinstalling OS X. Use the instructions in this section if you need to create or modify a “Recovery HD” partition during the imaging process.

Important: It is recommended that the OS X version of the “Recovery HD” partition matches the OS X version of the main partition.

  1. Build an OS package:

    1. On the test computer, mount the “Recovery HD” partition by executing:

      sudo diskutil mount disk0s3

    2. Open Composer and authenticate locally.

    3. In the toolbar, click New images/download/thumbnails/5832905/icon_C_New.png .

    4. Under the Operating System heading in the sidebar, select Build OS Package.

    5. Select the drive you want to package and click Next.

    6. Choose options for removing unnecessary files from the package and click Next.

      images/download/attachments/5150096/Build_OS_package.png
    7. Enter a package name and select a location to save the package, and then click Build.

  2. Create a script to hide the “Recovery HD” partition:

    1. Create a new file in a text editor.

    2. Type the following text:

      RecoveryHDName="Recovery HD"
      RecoveryHDID=`/usr/sbin/diskutil list | grep disk0 | grep "$RecoveryHDName" | awk 'END { print $NF }'`

      /usr/sbin/diskutil unmount /dev/"$RecoveryHDID"
      /usr/sbin/asr adjust -target /dev/"$RecoveryHDID" -settype Apple_Boot
    3. Save the file with a .sh file extension. For example, “HideRecoveryHD.sh”.

  3. Add the OS package and script to Casper Admin:

    1. Open Casper Admin and authenticate to the JSS.

    2. Drag the package and script to the main repository in Casper Admin.
      The package and script are displayed in blue text until you add them to a category.

      images/download/attachments/5150099/Casper_Admin_Main_Repository3.png
    3. Double-click the package in the main repository.

    4. Click the General tab and choose a category for the package.

      images/download/attachments/5150099/Casper_Admin_RecoveryHDPartition_General.png
    5. Click the Options tab and choose a priority for the package.
      The recommended priority is “1”.

      images/download/attachments/5150099/Casper_Admin_RecoveryHDPartition_Options.png
    6. Click OK.

    7. Double-click the script in the main repository.

    8. Click the Options tab and verify that the priority is set to “At Reboot”.

      images/download/attachments/5150099/Casper_Admin_HideRecoveryHD.sh_Options.png
    9. Click OK.

  4. Drag the script from the main repository to the configuration you created for the main partition.

  5. Create a configuration for the “Recovery HD” partition:

    1. Open Casper Admin and authenticate to the JSS.

    2. Click New Config images/download/thumbnails/5832909/icon_CA_folder.png .

    3. On the General pane, enter a display name for the configuration. For example, “Recovery HD”.
      images/download/attachments/5150096/Configuration_General0.png

    4. Click the Management tab and enter credentials for a local administrator account that you want to use for management.

      images/download/attachments/5150096/Configuration_Management.png
    5. Click OK.
      The configuration is added to the list of configurations in the sidebar.

    6. Drag the “Recovery HD” OS package from the main repository to the configuration that you just created.

  6. Add a “Recovery HD” partition to the configuration you created in “Step 1: Preparing to Image a Main Partition”:

    1. In the list of configurations in the sidebar, double-click the configuration.

    2. Click the Partitions tab.

    3. Click Add (+).
      images/download/attachments/5150099/Configuration_Partitions.png

    4. Type “Recovery HD” in the Partition Name field.

      images/download/attachments/5150099/Configuration_Partitions2.png
    5. Type “1” in the Size field.

    6. Type “99” in the Maximum Percentage of Drive field.

    7. From the Configuration pop-up menu, choose the configuration you just created.

    8. If the target computers already have a “Recovery HD” partition and do not have other additional partitions, select the Re-image the partition if it already exists checkbox.

Note: If the target computers already have a “Recovery HD” partition and other additional partitions, you must remove the “Recovery HD” partition so that it can be recreated during imaging.

Step 3: Image Computers

  1. On a target computer, boot to a startup disk other than the target drive.

  2. Open Casper Imaging and authenticate locally.

  3. Authenticate to the JSS when prompted.

  4. Choose the drive to image from the Target Drive pop-up menu.

    images/download/attachments/5150096/Standard_Imaging.png

  5. Select the Erase target drive checkbox.

  6. Assign a name to the computer by entering a name in the Computer Name field.

  7. From the Configuration pop-up menu, choose the configuration you created in “Step 1: Preparing to Image a Main Partition”.

  8. Select the Boot to target drive after imaging checkbox.

  9. Choose a distribution point from the Distribution Point pop-up menu.

  10. Click Image.

  11. Repeat as needed for other target computers.

Copyright | Privacy | Terms of Use | Security
Copyright JAMF Software, LLC 2016