4
Use the
New-DeployRule
PowerCLI cmdlet to write a rule that assigns the image profile to one host, to
multiple hosts specified by a pattern, or to all hosts.
New-DeployRule -Name "testrule" -Item image-profile -AllHosts
See
“Assign an Image Profile to Hosts,”
on page 173.
N
OTE
Auto Deploy is optimized for provisioning hosts that have a fixed MAC address to IP address
mapping in DHCP (sometimes called DHCP reservations). If you want to use static IP addresses, you
must set up the host profile to prompt for host customization. See
“Set Up Host Profiles for Static IP
Addresses in the vSphere Web Client,”
on page 194.
5
Turn on the host to have Auto Deploy provision the host with the specified image profile.
6
Set up the host you provisioned as a reference host for your host profile.
You can specify the reference host syslog settings, firewall settings, storage, networking, and so on. See
“Setting Up an Auto Deploy Reference Host,”
on page 187.
7
Create and export a host profile for the reference host.
See the Host Profiles documentation.
8
To provision multiple hosts, you can use the
Copy-DeployRule
cmdlet.
You can revise the rule to assign not only an image profile but also a host profile and a cluster location .
Copy-DeployRule -DeployRule "testrule" -ReplaceItem
my_host_profile_from_reference_host,my_targetcluster
-ReplacePattern "ipv4=192.XXX.1.10-192.XXX.1.20"
my_host_profile_from_reference_host is the name of the reference host profile. my_targetcluster is the name
of the target cluster.
9
Turn on the hosts you want to provision.
If the hosts that are specified by the pattern are not currently managed by a vCenter Server system,
Auto Deploy provisions them with the already stored image profile and the specified host profile and
adds them to the target cluster.
10 Check that the hosts you provisioned meet the following requirements.
n
Each host is connected to the vCenter Server system.
n
The hosts are not in maintenance mode.
n
The hosts have no compliance failures.
n
Each host with a host profile that requires user input has up-to-date host customization
information.
Remedy host customization and compliance problems and reboot hosts until all hosts meet the
requirements.
Read
“Understanding vSphere Auto Deploy,”
on page 157 for an introduction to the boot process, a
discussion of differences between first and subsequent boots, and an overview of using host customization.
Auto Deploy PowerCLI Cmdlet Overview
You specify the rules that assign image profiles and host profiles to hosts using a set of PowerCLI cmdlets
that are included in VMware PowerCLI.
If you are new to PowerCLI, read the PowerCLI documentation and review
“Using Auto Deploy Cmdlets,”
on page 170. You can get help for any command at the PowerShell prompt.
n
Basic help:
Get-Help
cmdlet_name
Chapter 7 Installing ESXi
VMware, Inc.
165
Содержание VS4-ENT-PL-A - vSphere Enterprise Plus
Страница 6: ...vSphere Installation and Setup 6 VMware Inc ...
Страница 8: ...vSphere Installation and Setup 8 VMware Inc ...
Страница 10: ...vSphere Installation and Setup 10 VMware Inc ...
Страница 28: ...vSphere Installation and Setup 28 VMware Inc ...
Страница 70: ...vSphere Installation and Setup 70 VMware Inc ...
Страница 100: ...vSphere Installation and Setup 100 VMware Inc ...
Страница 122: ...vSphere Installation and Setup 122 VMware Inc ...
Страница 138: ...vSphere Installation and Setup 138 VMware Inc ...