ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

VCP6-DCV Objective 8.1 – Deploy ESXi Hosts Using Autodeploy

By Vladan SEGET | Last Updated: November 1, 2017

Shares

In today's topic we will take a look at Autodeploy – VCP6-DCV Objective 8.1 – Deploy ESXi Hosts Using Autodeploy, which is quite large topic. Autodeploy allows provision dozens (or hundreds) physical hosts with ESXi images. It's possible to manage large deployments where hosts are booted via network from a central Auto-deploy server.  In conjunction with host profiles it's possible to attach hosts to clusters and push a different configurations depending on parameters like hardware vendor.

Check the VCP6-DCV Study Guide or other How-to articles, videos, and news concerning vSphere 6 at the dedicated vSphere 6 page.

Identify ESXi Autodeploy requirements

There are some requirements but at the same time that there are also limitations, so make sure that any of those limits does not actually puts a brake on your project. Before you can start to use vSphere Auto Deploy, you must prepare your environment. You start with server setup and hardware preparation. You must register the Auto Deploy software with the vCenter Server system that you plan to use for managing the hosts you provision, and also install the VMware PowerCLI on a management station (or Windows based vCenter server).

  • Hardware requirements for ESXi 6.0 – check here.
  • ESXi hardware must be set to use BIOS (EFI isn't supported)
  • Require Ports opened between vCenter server and ESXi hosts – check here
  • If VLANs used, then check that works properly.
  • Minimum Storage – 2Gb of storage for storing ESXi images, where each of those images requires about 350Mb. So depending of how many profiles you will use by taking that number into consideration.
  • Autodeploy server must use IPv4 – The PXE boot infra does not support IPv6.
  • Install ESXi Dump colletor – this will allow

—————————————————————————————————–

Configure Autodeploy

You must first enable the service. Go to vSphere Web Client > System Configuration > Services > Select Autodeploy > Actions > Edit Startup Type

VMware vSphere - Deploy ESXi Hosts Using Autodeploy

This will prompt you for the service settings:

VMware vSphere - Deploy ESXi Hosts Using Autodeploy

And then make sure that you start the service!

VMware vSphere - Deploy ESXi Hosts Using Autodeploy

On the vCenter Server Appliance, the Auto Deploy service by default is set to Manual (on Windows it's Disabled). If you want the Auto Deploy service to start automatically upon OS startup, select Automatic.

Configure TFTP:

In a vSphere Web Client > Inventory list > select the vCenter Server > Manage tab > Settings > Auto Deploy.

vSphere How to configure Autodeploy server
Then click the Download TFTP Boot Zip to download the TFTP configuration file and unzip the file to the directory in which your TFTP server stores files.

Install TFTP server (I usually use the Free TFTP server from Solarwinds). The installer creates a default directory which can be changed. I changed mine to c:tftp to keep it simple. You can configure the option by going to File > Configure menu. While there, make sure that you start the service. (Note: you can also go to Windows services to make the TFTP service start automatically during the boot as by default it has manual start only).

Setup of TFTP server on vCenter server

That’s it for TFTP server. There is nothing else to play with and we can move on.

DHCP Server Options

Next I’ll show you the options you need to configure on your DHCP server. There are just two options which needs to be configured at the scope level. When you click on the Autodeploy icon in vSphere client, you’ll end up on this page where you can see some strange name of file. But this exact name will be needed for setting up options in our DHCP server! It’s the undionly.kpxe.vmw-hardwired.

So next step is to click and download the TFTP boot zip files to the c:tftp directory that we created and set up on our TFTP server. Unzip the file into the same directory You should have a view like this:

vSphere Autodeploy Server Setup

Once done, we can copy this name of the file (undionly.kpxe.vmw-hardwired) as an option 67 in our DHCP server. In my case I have Windows DHCP server which sits on my domain controller.

DHCP server scope options for VMware vSphere AutoDeploy

Now you should configure each of your ESXi host's BIOS to boot from network.

Explain PowerCLI cmdlets for Autodeploy

Auto Deploy uses a PXE boot infrastructure in together with vSphere host profiles to provision and customize host(s). No state is stored on the host(s) itself. But rather, the Auto Deploy server manages state information for each host.

Autodeploy server has the informations about the location of image profile and host profiles and this information is specified in the rules that map machines to image profiles and host profile. Whe host boots up from the first time it's vCenter server who creates a host objects and stores the information in the vCenter DB.

The whole architecture:

Autodeploy Architecture

Auto Deploy CMDLETs

There are many more auto deploy cmdlets than the ones I’m using in this post, so here is the full list for reference:

Command Description
Get-DeployCommand Gives you a list of Auto Deploy cmdlets.
New-DeployRule Creates a new rule with the specified items and patterns
Set-DeployRule Updates an existing rule with the specified items and patterns. Rules that belong to a working ruleset can not be updated.
Get-DeployRule Retrieves rules as specified by an administrator.
Copy-DeployRule Clones and updates an existing rule.
Add-DeployRule Adds one or more rules to the working and active ruleset(s). The NoActivate parameter can be specified to add a rule only to the working ruleset.
Remove-DeployRule Removes one or more rules from the working and active rule set. The rule(s) can be deleted by using the -Delete parameter.
Set-DeployRuleSet Explicitly sets the list of rules in the working rule set.
Get-DeployRuleSet Retrieves the current working rule set or active rule set.
Switch-ActiveDeployRuleSet Activates a rule set so that any new requests are evaluated through the rule set.
Get-VMHostMatchingValues Retrieves rules matching a pattern. For example, all rules that apply to hosts can be retrieved.
Test-DeployRulesetCompliance Checks whether items associated with a specified host are in compliance with an active rule set.
Repair-DeployRuleSetCompliance Updates the image profile, host profile and location for each host in the vCenter Server inventory based on the results of Test-DeployRulesetCompliance.  
Apply-EsxImageProfile Associates the specified image profile with the specified host.
Get-VMHostImageProfile Retrieves the image profile in use by a specified host.
Repair-DeployImageCache Command can be used if the image cache is accidentally deleted.
Get-VMHostAttributes Returns attributes for a host that are used when the Auto Deploy server evaluates the rules.

Stateless caching – Autodeploy does not store ESXi configuration or state on the host disk by default. Rather an image profile defines the image that the host is provisioned with, and other host attributes are managed through host profiles. A host that uses Auto Deploy for stateless caching has to have an access to Autodeploy server and vCenter server. That's why the vCenter server has to be UP in order to be able to provission those hosts (SPOF???).
Stateful installs – In this case it is possible to provision a host with Auto Deploy and set up the host to store the image to disk. On subsequent boots, the host boots from disk

Deploy/Manage multiple ESXi hosts using Autodeploy

1. Install PowerCLI
2. Use the PowerCLI cmdlets to define rule which assigns an image profile and host profile (optional) to the host.
3. Configure reference host and create a host profile where you'll keep what's common for all hosts (storage, networking and other). Write a rule that assigns not only the already tested image profile but also the host profile to the target host.
4. If you need manual information to be entered, you can specify user input in the customization of the host within the vSphere web client.

Getting Help with PowerCLI commandlets

  • Basic help: Get-Help cmdlet_name
  • Detailed help: Get-Help cmdlet_name -Detailed

I have done a blog post serie covering host profiles, autodeploy…when learning towards VCAP exam. You can use it as a guide for preparation for the VCP exam as most things hasn't changed…

  • VCAP Diary – VMware vSphere ESXi Image Builder
  • VMware vSphere AutoDeploy – Run some PowerCLI and you’re the Boss
  • VMware vSphere AutoDeploy – Install and configure
  • VCAP Diary – VMware vSphere Host Profiles
  • VMware vSphere Host Profiles – options and troubleshooting

VMware documentation and Tools

  • vSphere Installation and Setup Guide
  • vSphere Client / vSphere Web Client
  • Direct Console User Interface (DCUI)

Some more links:

  • About Reprovisioning Hosts.
  • Test and repair rule compliance
Shares
5/5 - (1 vote)

| Filed Under: Server Virtualization Tagged With: Deploy ESXi Hosts Using Autodeploy, vSphere autodeploy

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware
  • XCP-NG FREE Hypervisor and XO Lite to deploy XOA

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in