How to deploy a vSphere 5 Autodeploy server step-by step

Install AutoDeploy on the vCenter machine
1. Download and mount the vCenter server image “VMware-VIMSetup-all-5.5.0-1476387-20131201.iso”
2. Click autorun.exe and install AutoDeploy from the menu, accept all defaults.
3. In the vSphere client make sure AutoDeploy is enabled after the install, Plug-ins > Manage Plugins.
4. Create a folder on the vCenter machine, c:\tftp_root\
5. In the vSphere client click on Home then AutoDeploy icon.
6. Download the TFTP boot zip file “”, extract the contents to c:\tftp_root.

Download “OpenSource TFTP server” and install on vCenter machine
2. Start the TFTP server and wait for GUI to load.
3. Click on Settings and click on GLOBAL tab, remove all checkmarks except TFTP Server
4. Click on TFTP tab and change the Base Directory to C:\tftp_root

Set up DHCP scope to boot from a PXE server
1. Add DHCP Role and click on Start > Administrative Tools > DHCP
2. Right-click IPv4 Choose New Scope, go through wizard and set IP range for scope, accept defaults.
Expand IPv4 then click on Scope Options, On right-side right-click in empty space > Configure Options.
Add The below 2 Options:
Under General tab place checkmark beside the below and fill in the fields:
066 Boot Server Host Name – String Value: IP Address of TFTP Server
067 Bootfile Name – String value: undionly.kpxe.vmw-hardwired

After TFTP and DHCP is set do the below in PowerCLI
1. Set-ExecutionPolicy Unrestricted
2. Connect-VIServer vcenter.mylab.local
3. Get-DeployCommand #Displays available commands
4. Add-EsxSoftwareDepot “C:\Bundles\” #Must be run every time you open PowerCLI
5. Get-EsxImageProfile #Displays avaialble images
6. New-DeployRule -Name “MyRule” -Item “ESXi-5.5.0-1331820-standard”, “HA Cluster or Folder” -Pattern “ipv4=”
7. Get-DeployRule
8. Add-DeployRule -DeployRule “MyRule” #This makes it active and persistent even when you close powerCLI
9. Get-DeployRuleSet #Shows all active rules, if not here will not work

Optional Commands
10. Remove-Deployrule -DeployRule “MyRule” -delete
11. New-DeployRule –Name “MyRule” –Item “ESXi-5.5.0-1331820-standard”, “HA Cluster”, “Host-Profile1” –Pattern “ipv4=
12. New-DeployRule –Name “MyRule2” –Item “ESXi-5.5.0-20131204001-standard”, “HA Cluster” –Pattern “model=VMware Virtual Platform”,”vendor==VMware, Inc.”
13. Get-VMHost esxi551.mylab.local | Get-VMHostAttributes #Lists all patterns for a specific host
Example Output:
New-DeployRule –Name “MyRule” –Item “ESXi-5.5.0-1331820-standard”, “HA Cluster”, “Host-Profile1” –Pattern “ipv4=”
Name : MyRule
PatternList : {ipv4=}
ItemList : {ESXi-5.5.0-1331820-standard, HA Cluster, Host-Profile1}

This entry was posted in VMware and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *