6.0.2

Table Of Contents
n
During testing, you can apply an image prole to an individual host with the Apply-EsxImageProfile
cmdlet and reboot the host so the change takes eect. The Apply-EsxImageProfile cmdlet updates the
association between the host and the image prole but does not install VIBs on the host.
n
In all other cases, use this procedure.
Prerequisites
n
Create the image prole you want boot the host with. Use the Image Builder PowerCLI. See "Using
vSphere ESXi Image Builder CLI" in the vSphere Installation and Setup documentation.
n
Make sure that the setup that you performed during the rst boot operation is in place.
Procedure
1 At the PowerShell prompt, run the Connect-VIServer PowerCLI cmdlet to connect to the vCenter Server
system that Auto Deploy is registered with.
Connect-VIServer myVCServer
The cmdlet might return a server certicate warning. In a production environment, make sure no server
certicate warnings result. In a development environment, you can ignore the warning.
2 Determine the location of a public software depot that contains the image prole that you want to use,
or dene a custom image prole with the Image Builder PowerCLI.
3 Run Add-EsxSoftwareDepot to add the software depot that contains the image prole to the PowerCLI
session.
Depot Type Cmdlet
Remote depot
Run Add-EsxSoftwareDepot depot_url.
ZIP file
a Download the ZIP le to a local le path or create a mount point local
to the PowerCLI machine.
b Run
Add-EsxSoftwareDepot C:\file_path\my_offline_depot.zip.
4 Run Get-EsxImageProfile to see a list of image proles, and decide which prole you want to use.
5 Run Copy-DeployRule and specify the ReplaceItem parameter to change the rule that assigns an image
prole to hosts.
The following cmdlet replaces the current image prole that the rule assigns to the host with the
my_new_imageprole prole. After the cmdlet completes, myrule assigns the new image prole to hosts.
The old version of myrule is renamed and hidden.
Copy-DeployRule myrule -ReplaceItem my_new_imageprofile
6 Test and repair rule compliance for each host that you want to deploy the image to.
See “Test and Repair Rule Compliance,” on page 187.
When you reboot hosts after compliance repair, Auto Deploy provisions the hosts with the new image
prole.
Write a Rule and Assign a Host Profile to Hosts
Auto Deploy can assign a host prole to one or more hosts. The host prole might include information
about storage conguration, network conguration, or other characteristics of the host. If you add a host to a
cluster, that cluster's host prole is used.
In many cases, you assign a host to a cluster instead of specifying a host prole explicitly. The host uses the
host prole of the cluster.
vSphere Upgrade
186 VMware, Inc.