4. Resource Group Architecture : 4.1 Compute Resources : 4.1.1 Stateless ESXi
   
4.1.1 Stateless ESXi
Stateless ESXi refers to running VMware ESXi™ software on a host entirely in memory, with no local persistence data. Centralizing management of the host state enables consistent configuration over large sets of similar hosts, as well as rapid provisioning of vSphere hosts. This helps to improve operational efficiency in large-scale vCloud environments.
Stateless ESXi requires vSphere Auto Deploy, a deployment server that applies the image profile and host profile to the PXE-booted hosts. Install Auto Deploy on a standalone host or on the vCenter Server. Auto Deploy is installed by default on the vCenter Server virtual appliance. Install vSphere PowerCLI in a location reachable by both vCenter and Auto Deploy. The host profile is essential to the stateless environment, as every reboot of a server clears the host of any local configuration data.
Configure all stateless vSphere hosts for DHCP. The DHCP server requires configuration changes to direct the vSphere host to a TFTP server. This can be a separate DHCP server or existing organization’s DHCP server. The vCenter Server virtual appliance includes DHCP and TFTP services.
Identify an image profile to use for vCloud hosts. This can be a profile stored in a public depot or a zipped file stored locally. If using host profiles, save a copy of the host profile to a location accessible by Auto Deploy and add rules to the rules engine using Image Builder PowerCLI.
Figure 7. Auto Deploy First Boot
vCloud Director can manage stateful or stateless vSphere hosts. If you choose the stateless option, add the vCloud Director vSphere Installation Bundle (VIB) (which contains the agent) to the image profile. The vCloud Director VIB is loaded automatically when the host boots up. For preparation and un-preparation of stateless hosts, vCloud Director configures the agent using a host profile with an associated answer file.
If the host is rebooted, the appropriate image profile is reloaded when the host starts back up. vCloud Director detects the state change, and the configuration is re-pushed to the host.
If using stateless mode, avoid creating designs that require host-specific configuration. When converting a prepared stateful host to stateless, unprepare hosts prior to the conversion.