Important: It was noted by a reader last week that in El Capitan you need to bless a NetBoot server in order to use it. If you cannot start your Mac from your server perform the following task:
- Restart your client Mac from the Recovery Partition (Command-R)
- Open the Utilities menu and select Terminal
- At the command line type:
csrutil netboot your server’s IP address
- Restart your computer and start up from your server image
Over the last several weeks you’ve created and started MacsNetInstall, NetBoot, and NetRestore images using the basic settings available in the System Image Utility’s image assistant. Next we’re going to create a custom NetBoot image, which we’ll use to create images containing pre-configured settings.
Last time we did this we created NetBoot images using an image created using AutoDMG, this time we’ll use the Customize button in the System Image Utility. You should note that some of the options you’ll see using the Customize button are also available when using the Assistant, but you have more options when creating a customized image.
You may recall that, when using a NetBoot image, you weren’t able to save any changes you made, so even though you added a new user account, as soon as you started your Mac up using that image, you had to add the user account again. Now we’re going to add two user accounts to the NetBoot image.
Note: You’ll need a fresh copy of the El Capitan installer to perform these steps. Refer back to episode 4 if you don’t already have a copy of the installer.
Use Automator to created a NetBoot image
- Open the System Image Utility using Spotlight.
- Choose Install OS X El Capitan as the source.
- Click Next.
- Select NetBoot Image as the image type.
- Click Customize.
Clicking the Customize button opens the Automator app. The Automator app lets you create customized, editable, and reusable scripts by dragging predefined Actions from the Action Library into the Automator Workflow. We’ll now use an Automator Workflow to create a NetBoot image.
You should note that, even though you selected NetBoot Image in the previous step, only the Image Source action has been added to the Automator script with the El Capitan installer selected. If the installer isn’t selected as the source use the Source menu to select it now. You should also note that, because the entire Automator library is selected when the app opens, it’s not obvious which steps will let you create a NetBoot image.

- Select System in the Action Library.
Selecting System filters the Action Library so you only see actions related to creating NetInstall images.
Now it’s time to add user accounts.
Add user accounts
- Locate and drag Add User Account to the Workflow
- Type Administrator in the Name field and press the tab key
- Leave “administrator” in the Short Name field and press the tab key
- Enter a password in the Password field
- Leave the Hint field blank
- Make no changes to the Language menu
- Leave the check in the box that says “Allow user to administer computer.”
- Make sure there’s no check in the box that says “Log user in automatically.”
- Locate and drag a second Add User Account to the Workflow.
- Type Standard User in the Name field and press the tab key.
- Leave
standarduser
in the Short Name field - Enter a password in the Password field
- Leave the Hint field blank
- Make no changes to the Language menu
- Uncheck the box that says “Allow user to administer computer.”
- Put a check in the box that says “Log user in automatically.”
When you’re done you should see something like this:
Now let’s give our computer a unique name on the network.
Set system settings
- Locate and drag Apply System Configuration Settings to your Workflow just beneath your standard user account.
- Put a check in the box next to “Generate unique Computer Names starting with.”
- Type
NetBoot with Accounts
in the name field
Note: Using this settings action you can automatically bind your Mac to a directory server, which is something we’ll do next week that will allow us to use Network Home Folders.
Define the NetBoot image
Finally, let’s create our NetBoot image.
- Locate and drag the Create Image action to the Workflow, just below the Define Image Source action and agree to the license agreement.
- Select NetBoot as the Type.
- Select Desktop for the Save To destination.
- Type
NetBoot with accounts
as the Image Name. - Type
NetBoot with accounts
as the Network Disk. - Make no changes to the Image Index.
- Add a description if you want.
You may have notice that what we added here is exactly the same as what you selected when creating NetInstall images earlier using the Assistant, only this time there was no information automatically added to the Workflow. We did all of it manually and we were able to perform tasks that weren’t available to use in the Assistant.
Now it’s time to create the image the NetInstall service will use.
Create the NetBoot image
- Save your Workflow to your Desktop. (We’re going to use this again next week.)
- Click your Automator Workflow’s Run button.
- Authenticate as an administrator.
- Go grab a cup of coffee while the image is created.
Startup from your new NetBoot image
When the image creation is complete:
- Move the NetBoot with Accounts.nbi folder from your Desktop to your server’s /Library/NetBoot/NetBootSP0 folder.
- Open the Server app and enable your new NetBoot image.
- Startup your client Mac using the new image.
When your Mac starts up from the image it should automatically log in to the Standard User account.
- Open TextEdit.
- Create a new document.
- Save it to your Desktop.
- Logout.
- Log in as the Administrator.
- Open System Preferences.
- Click the Sharing preference.
- Verify that the Computer Name says NetBoot with Accounts and includes a unique identifier.
- Logout the Administrator.
- Log in as the Standard User and verify that the TextEdit document you created is still on the Desktop.
- Restart your computer again using your new NetBoot image.
- Look and see if your TextEdit document appears on your Desktop.
While you are still automatically logged in as the Standard User your TextEdit document no longer appears on your Desktop. This is a great option if you have computer you want to startup with a clean Home folder every day, making it similar to logging in using the Guest user account, this isn’t very practical for your every day users.
Next, we’ll change this workflow so that it creates an image for users with Network Home Folders