11 Feb Capturing Your Gold OS X Image for LANDESK Mac Provisioning
This article is now considered outdated. Please see Building a Gold Image Using AutoDMG
Imaging a device has changed dramatically over the years. In the early 2000’s one would load everything possible on the image in effort to reduce calls the number of software requests the HelpDesk would receive post deployment.
The term bloated is often used for such corporate images. Not only did it take forever to deploy the gargantuan images, conflicts between unnecessary and unused software applications were extremely prevalent.
LANDESK recommends the complete opposite approach in 2016. When creating your corporate gold image, leave it as plain and as vanilla as possible. Build all customizations into your provisioning templates and inject those customizations during the post-provisioning process.
So doing will allow you to easily update and tweak your applications and customizations realtime, ensuring each device configured contains the latest and greatest.
Watch the how-to video:
Prepare Your Machine for Capture
- Obtain the latest and greatest machine you have
- Create as small of a partition as possible that’ll contain your OS and apps
- Install the desired operating system
- Install any desired apps
- Again, best practice will be to keep the image as thin as possible. Ideally, applications should be deployed
- Install the latest LANDESK agent (9.6 SP2 or greater). Unlike the Windows process, a LANDESK agent is required to be on the gold image.
- Make note of the disk identifier for the partition you want to capture as you’ll need it when creating the capture template. Do this by launching Terminal and running the command below
Create the LANDESK Provisioning Capture Template
- Within the LANDESK Console, open Tools > Provisioning > OS Provisioning
- Expand My Templates from the menu tree and highlight All My Templates
- Click the New Template dropdown button from the Operating System Provisioning toolbar and then select the Empty Template
- Provide a template name
- Select Netboot from the Boot Environment dropdown list
- The target OS should automatically change to Mac OS X, if not, select it from the list
- Provide a description if desired
- Push the OK button to create
- Right click on the template created and select Edit
- Now, right click on System Migration and select Add Action
- Select the Reboot/shutdown action and select OK
- Highlight the Reboot/shutdown action generated and change the Action Properties option to NetBoot
- Set the Server option to your PXE representative using the format bsdp://ipaddress. For convenience when NetBooting manually, you’ll likely want to deselect the checkbox for “Stop processing the template if this action fails.”
- Note: This IP address must match the exact address used to bless your El Capitan devices in order to NetBoot the device remotely. See Blessing an El Capitan Device for more info.
- Right click on the OS installation and select Add Action
- Select the Capture an Image action and select OK
- Provide the smb:// or afp:// url to where you would like to save the image. It should be something similar to smb://servername/share/filename.dmg
- Hit the Validate button so the command line parameters are generated and then replace the /dev/disk0s2 with the appropriate identifier discovered from your capture machine, it may be /dev/disk1 or something else entirely
- Right click on Post-OS installation and select Add Action
- Select the Reboot/shutdown action and select OK.
- Select the radio button Shut down. Like previously, you’ll likely want to deselect the checkbox for “Stop processing the template if this action fails” and hit OK to save the template
Schedule the Image Capture
- Right click on the template created and select Schedule Template
- From the Network View, find your machine from the Devices menu tree and drag it to the scheduled task created under your My Tasks folder
- Remember, when capturing an OS X image, the machine must be a managed node with LANDESK Mac agent installed on it, so make sure you pull the machine from the inventory tree list
- Right click on the scheduled task and select Start Now > All