Important Note: This document is provided as a reference for legacy products. For mass deployment of Winclone images using DeployStudio, Casper Suite and Apple Remote Desktop, please see Deploying Boot Camp as a Package.
Overview
You can use DeployStudio (DSS) to restore an OS X image and then restore a Winclone image to a remote Mac.
This guide assumes:
- You have a copy of Winclone Pro version 4.0 or greater
- You prepared your Windows operating system
- You used "Image Volume" (with Winclone or Winclone Pro) to create an image of your Windows volume
- You installed the DeployStudio service, v1.6 or later
- You created a DeployStudio NetBoot runtime set that is valid for your Mac
- Your OS X volume does not contain a Winclone image
Make sure your DeployStudio version 1.6.1 or later.
You'll need to use DeployStudio 1.6.1 or later. Earlier versions do not take advantage of Winclone Pro's self-extraction features.
One way to check your DeployStudio version is to open System Preferences, then select DeployStudio. .
Create your OS X image
Create the image of your OS X volume. It is most simple to use the default DeployStudio workflow named "Create a master from a volume". This automatically places the image of the OS X volume in your DeployStudio repository's Masters/HFS folder. If you create your OS X volume with a different tool, be sure to place the .dmg in the folder just cited.
Note: It is possible to store your Winclone image on the image of your OS X volume, then use a post-restore script to use the Winclone winclone_helper_tool to restore the Winclone image to the Windows volume. There are three disadvantages to this method:
- The OS X image will be unnecessarily large if you want to use it for non-dual-boot Macs.
- If you need to make a change on the OS X master, it will take longer to recreate an image from it because the new image will contain the Winclone image.
- If you need to make a change on the Windows master, you need to use Winclone to recreate the Windows image, copy it to the OS X master, then re-create the OS X master image.
Prepare your Winclone image
Use Winclone 4 to create an image of your Windows volume (Windows XP on NTFS, Windows 7, or Windows Vista). See the Winclone 4 page for more information.
Open Winclone Pro
Open Winclone Pro and select your Winclone image in the Winclone window sidebar. If your Winclone image isn't already in the sidebar, you can drag it there from the Finder.
Use Winclone Pro to make self extracting
From the Tools menu, choose "Make Self Extracting". This creates a winclone_helper_tool that you can later use to extract the image. This means that you don't need to install Winclone on the remote Mac.
Agree to Make Self Extracting
At the "Make Self Extracting" window, click Copy.
Resources copied successfully
After a brief moment, you see the Completed window. Click OK.
Show Package Contents
Verify that Winclone Pro actually created the winclone_helper_tool. In the Finder, Right-click (or Control-click) your Winclone image, and choose "Show Package Contents".
Confirm winclone_helper_tool was created
You will see a new folder in the Finder. In this folder, confirm that the item "winclone_helper_tool" exists.
You can close this Finder window.
Copy the Winclone image to your DeployStudio repository
Copy the Winclone image to [DeployStudio Repository]/Masters/NTFS.
Note that if Winclone is not installed on the computer running the DeployStudio service, the Winclone image appears as a regular folder, instead of a Winclone icon. That's expected.
Open DeployStudio Admin and connect to your DeployStudio Server
Create a Dual-boot DeployStudio workflow item
- Click Workflows in the DepoyStudio Admin window sidebar.
- Click Add (+) under the list of workflows.
Rename the new workflow item
- Double-click the default text of new workflow item to change its name. You must click above the workflow name in order to edit it.
- Enter an appropriate name, such as "Restore Dual Boot".
- Press Return to save the name change.
Select the new workflow item
Select your new workflow item again, because DeployStudio Admin re-orders the workflow items alpabetically.
Optional: Add a task to add computer information to the DepoyStudio database
DeployStudio offers several ways to configure its database of information about Macs, including importing CSV files. However, if you don't yet have names assigned to Macs, you can name them as part of the imaging process; with this task, you assign the computer a name after it boots into the DeployStudio runtime, and then you continue to image the Mac.
- Click Add (+) next to the "Drop tasks here" area. This opens a drawer with tasks.
- Drag the "Hostname form" task to the "Drop tasks here" area (the "workflow timeline").
Note that whenver you click Save, the first step of the workflow is automatically selected.
Add a task to partition the disk
Drag the Partition task from the tasks drawer into the workflow timeline, to the right of the existing task.
Choose the Mac OS X + Windows template
- Set the Target volume. If your Mac has only one disk, this is easy; choose "First disk available".
- Click the "Apply layout template" pop-up menu and choose Mac OS X + Windows.
Modify the default
- Drag the slider between the MACOSX and the WINDOWS volume to modify how much space each volume occupies.
- Enable the checkbox "Automate".
Note: Don't bother changing the names MACOSX and WINDOWS, because these are only temporary names, and other tasks refer to these names; keep it simple and stick with the defaults.
Add a task to restore the Mac volume
Drag the Restore task from the tasks drawer into the workflow timeline, to the right of the existing tasks.
Configure the target volume for the OS X volume
Click the pop-up menu for Target volume, choose "Enter value" and enter "MACOSX" in the value field.
Note that this isn't the final volume name for your OS X volume, because restoring an image changes the volume name to whatever the volume name is for the image.
Choose the image to restore to the OS X volume
- Click the Image pop-up menu, and choose HFS.
- Click the arrow next to the Image text field to display the pop-up menu.
- Choose the appropriate image to restore for the OS X volume.
Note that if you don't see the image you expect, to double-check your DeployStudio repository folder's Masters/HFS folder.
Configure the rest of the task to restore the OS X volume
- Enable the checkbox "Erase target for block copy restoration".
- Enable the checkbox "Automate".
Configure the other options as appropriate for your environment. For Lion computers, be sure to enable "Restore system recovery partiions".
Add a task to configure the Mac with information from the DeployStudio database
This step changes the Mac's computer name based on the information that DeployStudio has in its database. Note: you can observe the information in the DeployStudio database by selecting "Computers" in the DeployStudio Admin window sidebar.
Drag the Configure task from the tasks drawer into the workflow timeline, to the right of the existing tasks.
Configure the Configure task
- Leave the Target volume set tp "Previous task target", (which is the OS X volume).
- Enable the checkbox "Rename computer".
- Enable the checkbox "Automate".
- Enable other checkboxes as appropriate for your environment.
Add a task to restore the Winclone volume
Drag the Restore task from the tasks drawer into the workflow timeline, to the right of the existing tasks.
Configure the target volume for the Windows volume
- Click the pop-up menu for Target volume and choose "Enter value".
- Enter "WINDOWS" in the value field.
Note that this isn't the final volume name for your OS X volume, because restoring an image changes the volume name to whatever the volume name is for the image.
Choose the image to restore to the Windows volume
- Click the Image pop-up menu, and choose NTFS (even though the target volume is temporarily formatted FAT).
- Click the arrow next to the Image text field to display the pop-up menu.
- Choose the appropriate image to restore for the Windows volume.
Note that if you don't see the image you expect, to double-check your DeployStudio repository folder's Masters/NTFS folder.
Configure the rest of the Restore task
- Ignore the checkboxes listed under the "HFS only options" section.
- Ignore the "Expand restored NTFS volume" checkbox; this is not necessary with Winclone images.
- Enable the "Set as default startup volume" checkbox if you want to boot into Windows instead of Mac.
- Enable the "Automate" checkbox.
Note that unless you want to forever reboot into the DeployStudio runtime, you must enable that checkbox for either the OS X restore task, or the Windows restore task.
This task automatically runs the following command, while still running in the DeployStudio runtime. In this example, the name of the Winclone image is Win7.winclone, and the disk with the Windows volume is /dev/disk0s4.
/tmp/DSNetworkRepository/Masters/NTFS/Win7.winclone/winclone_helper_tool --self-extract -p /dev/disk0s4
Save the workflow
Click Save.
Note that any Macs already running the NetBoot DeployStudio runtime must reboot to see changes to the workflow.
(Optional) Set the workflow to start automatically
You can use DeployStudio Admin to create a computer group, assign it as the "Default group", and configure a workflow to "Start workflow automatically". This way you can skip the step of choosing the workflow on the DeployStudio runtime client.
Boot your Mac clients into the DeployStudio runtime
Use whatever methods you normally use to boot your Macs into the NetBoot DeployStudio runtime. Some people walk around holding the N key; others use Apple Remote Desktop to specify a NetBoot server.
In the DeployStudio Runtime, choose your new DeployStudio workflow
- Choose the new workflow item you just created. In this example, it is named "Dual Boot Restore".
- Click Play.
(Optional) Name the computer
On each Mac, assign the computer the appropriate names, then click Play to move on to the rest of the tasks.
Wait while the rest of the tasks are automatically run
This may take a while. At the top of the DeployStudio Runtime window, note that there are five sections in the workflow progress area; each workflow step gets its own section. In the figure below, 10:37 indicates that the entire workflow so far has taken 10 minutes and 37 seconds, and is estimated to take 10:41 (10 minutes and 41 seconds) to complete the current task.
Allow the Mac to reboot and reconfigure itself
Once the imaging has completed, the Mac will automatically reboot into whatever volume you specified. Depending on how you configured each image master, you may need to boot into each volume's OS to allow various tasks to run.
Summary
You can use DeployStudio to prepare a lab full of Macs by creating a DeployStudio workflow that performs the following tasks:
- Erase the Mac's disk, create two partitions, one for OS X, and one for Windows;
- Restore the OS X volume;
- Restore the Windows volume
This document walks you through a sample workflow, but you can modify the workflow, and the settings for each task in the workflow, to meet your own needs.
Comments