Category Archives: vSphere 5.X

Deploying VMware ESXi 5.5. with vSphere Auto Deploy 5.5 – Part 2

We have discussed Install and Configure vCenter Server, Auto Deploy Server, TFTP Server and DHCP Server configuration in Deploying VMware ESXi 5.5. with vSphere Auto Deploy 5.5 – Part 1

Let’s discuss remaining parts here –

  • Download Offline Bundle for ESXi 5.5 with all other VIBs.
  • Install VMware PowerCLI 5.5.
  • Create Software Depot / Image Profile / Deploy Rule / Create Host profiles / Update Rules with Host Profile.

Download Offline Bundle for ESXi 5.5 with all other VIBs.

1. To download ESXi 5.5 Offline Bundle Go To

Offline22. Under Product type (Enterprise Plus) –> VMware ESXi 5.5.0 Update 2 and Click on Go to Downloads

Offline33. Under Product Downloads –> ESXi 5.5 Update 2 Offline Bundle –> Click on Download Now

Offline14. Enter My VMware Log In credentials and Click on Log In

Offline45. Tick the check box to Agree VMware End User Licence Agreement and Click Accept.

Offline56. It will start downloading ESXi 5.5 offline bundle Zip file and will take few minutes to download.

Offline67. Download others Agents / Drivers / VIBs as per your requirements to customize with bundle.


Now let’s Install VMware PowerCLI 5.5

1. Download VMware PowerCLI 5.5 from here

Offline72. Start the Installation by double Clicking VMware-PowerCLI-5.5.0-1295336.exe

Offline83. VMware vSphere PowerCLI installation will start and will give Security Warning for PowerShell Execution policy is not set to “RemoteSigned”

PCLI24. Open Windows PowerShell and Run Set-ExecutionPolicy remotesigned command to change the execution policy. And Click Continue to continue Installation.

PCLI35. On Welcome to the VMware vSphere PowerCLI Installation screen Click Next to continue.

PCLI46. Check radio button to Accept the License Agreement and Click Next to Continue.

PCLI57. Select vSphere PowerCLI program and change the Installation location (If required) and click Next to continue.

PCLI68. On Ready to Install the Program screen click Install to begin Installation.

PCLI79. This will take few minutes to install VMware vSphere PowerCLI on the machine.

PCLI810. On InstallShield Wizard Completed screen click Finish to exit the wizard.

PCLI911. Launch VMware vSphere PowerCLI by clicking VMware vSphere PowerCLI.

Offline912. We are all set with VMware vSphere PowerCLI Installation.

Offline10We have fulfilled all other requirements for Auto Deploy. Now will discuss how to Create Software Depot / Image Profile / Deploy Rule / Create Host profiles / Update Rules with Host Profile.

1.  Connect to vCenter server :- Connect-VIServer                                       It will ask for login Credential for vCenter Server. Provide User Name and                 Password click Ok to connect to vCenter Server.

AD1.12. As you can see connected to vCenter Server with provided User Name.

AD1.23. First Thing we need to do is create Software Depot, but before creating Software Depot we can check any existing Depot by command :- Get-EsxSoftwareDepot. 

AD14. To Create Software Depot use below command :-                                                                Add-EsxSoftwareDepot “C:\data\”   

AD25. Run again Get-EsxSoftwareDepot to see the Software Depot.

AD36. Next thing we need to do is create Image Profile.                                                                 New-EsxImageProfile -CloneProfile “ESXi-5.5.0-20140902001-stan*” -Name “Roshtestprofile”

AD47.  Use Get-EsxImageProfile to verify that Image Profile got created.

AD58. After Creating Image Profile we need to create DeplyRule                                             New-DeployRule -Name “PreHostProfile” -Item Roshtestprofile -Pattern “ipv4=”                                                                 (Pattern can be IP Range, MAC Address, Make, etc.)

AD69. It has created Deploy Rule (PreHostProfile) for Pattern (IP Range) with Item (Image Profile) RoshtestProfile.

AD810. After Creating Deploy Rule we need to Add/Active Deploy Rule :-                                                    Add-DeployRule -DeployRule “PreHostProfile”

AD911. As you can see there is only one ESXi Host ( is connected to this vCenter Server.

AD1012. We have created Rule with Pattern for IP Range, We’ll have to create Reservation for hosts with those IP Addresses. As you can see below i have created Virtual Machine (Auto_ESXi1) and reserved IP address for host.

AD1113. Let’s Power ON the Virtual Machine Now.                                                                         (Note :- This is Stateless VM as have not allocated Hard Disk to VM)

AD1214. Host booted and get IP Address from DHCP Server as per Reservation and trying to connect to TFTP Server to get Boot Image …

AD1315. Walla… Connected to Auto Deploy Server and loading Image into Memory….

AD1416. Installation is in Process…

AD1517. Once Installation finished host will be added to vCenter Server by Auto Deploy.

AD1718. Next thing we need to do to Create Host profile, Edit Host Profile and Update Deploy Rule to apply Host profile after deploying the ESXi host.

To create Host Profile Go To Home –> Management –> Host Profile

HP119. In Create Profile Wizard select Create Profile from existing Host and Click Next to continue..

HP220. Name the Host Profile and Click Next to continue ..

HP421. On the ready to complete the Profile Window Review and Click Finish to Create Host profile.

HP522. After creating Host Profile we need to edit the Profile to configure all the things want to deploy on hosts. (e.g. Syslog Server, Coredump collector, Stateless chashing , NTP settings, DNS configuration etc.)

HP6 HP7 HP823. Once profile is created and edited as per requirements. We need to Create New DeployRule with Host Profile and Cluster Name to Deploy host with Specific requirement and Add to specific Cluster. And Add/Active new created Deploy Rule.

AD1824. Again i have created one more VM with Name Auto_ESXi2 and reserved IP address Now let’s reboot this VM to deploy with new created Rule.

AD2025. As you can see in below screen that Host Profile is being applied on the host.

AD2126. Once all done host has been added to mentioned Cluster DCA.

AD23That’s all. Hope this will help you all.

Cheers….Roshan Jha 🙂

Deploying VMware ESXi 5.5. with vSphere Auto Deploy 5.5 – Part 1

Auto Deploy allows rapid deployment and configuration of a large number of ESXi hosts. vSphere Auto deploy can be configured with one of the three modes:

  • Stateless
  • Stateless Caching
  • Stateful Install

Stateless :-  You Deploy ESXi using Auto Deploy are not installing ESXi onto a Local disk, or a SAN boot LUN. ESXi is directly loaded into memory on a host as it boots.

Stateless Caching :- You deploy ESXi using Auto Deploy just as with Stateless, but the Image is cached on the server’s local disk or SAN boot LUN. In the event that Auto Deploy infrastructure is not available, the hosts boots from a local cache of the Image.

Stateful Install :- You can 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. This process is similar to performing a scripted installation. With a scripted installation, the script provisions a host and the host then boots from disk. In this case, Auto Deploy provisions a host and the host then boots from disk.

Auto Deploy Requirements:-

1.  vCenter Server 5.5 (Install/Upgrade vCenter Server 5.5)

2. Install Auto Deploy Server 5.5.

3. Install TFTP server (SolarWinds).

4. Configure TFTP Server and Boot Loader Data.

5. Configure DHCP server with 66 and 67 Options.

6. Install VMware PowerCLI 5.5.

7. Download Offline Bundle 5.5 with all other VIBs

8. Create Software Depot / Image Profile / Deploy Rule / Create Host profiles / Update Rules

How to Install Auto Deploy server

You can install vSphere Auto Deploy on the same system as vCenter Server or on a separate Windows based system. If you are installing Auto Deploy on a system separate from vCenter Server, Specify the IP Address or Name of the vCenter Server with which this Auto Deploy server should register.

1. Launch the VMware vCenter Installer media and Select vSphere Auto Deploy and then click Install to start the installer.

AD12. Select the appropriate language and Click OK.

AD23. Installer will prepare setup process.

AD34. From the vSphere Auto Deploy installer Welcome Screen, Click Next to Continue.

AD45. Select Radio button to accept End User License Agreement and Click Next.

AD56. Select the vSphere Auto Deploy Installer and Repository Directory and Size of the Repository and Click Next to continue.

AD67. Provide vCenter Server details and Credentials to register Auto Deploy with vCenter Server and click Next to continue.

AD78. Select the default Auto Deploy Server and Management Port and Click Next.                   (Do not change unless there is conflicts with port numbers)

AD89. The Next screen allows to choose how the vSphere Auto Deploy Server will be identified on the network. It Will detect host name on which we are installing Auto Deploy choose default name name Click Next.

AD910. On Ready to Install screen click Install to begin the installation.

AD1011. Ignore the Security Warning and Click Finish to Complete the Installation.

AD1112. Once Installation Completed Connect to vCenter Server –> Home –> Administration –> Auto Deploy. See below screenshot.

AD1413. Click on Auto Deploy to open.

AD15We have completed Auto Deploy Installation, Now let’s Install and Configure TFTP server.


Install and Configure TFTP Server

There are so many TFTP server available but i am going to use here Solarwinds TFTP Server.

1. Download the SolarWinds TFTP server Software and Double Click SolarWindsTFTPServer.exe to launch the TFTP installer.

TFTP62. On the Open File – Security Warning page Click Run to start the installation.

TFTP13. On Welcome to the SolarWinds TFTP Server Setup screen and click Next to continue.

TFTP24. Click tick box to Accept End-User License Agreement and Click Next to Continue.

TFTP35. On Ready to Install screen click Install to begin the installation.

TFTP46. once Installation completed click Finish to exit setup wizard.


We have Installed TFTP server now Let’s configure TFTP Server.

1. Open the TFTP Server by going Start –> All Programs –> SolarWinds TFTP Server –> TFTP Server.

TFTP102. We need to download TFTP Boot ZIP from Auto Deploy Server. Let’s connect to vCenter Server and open Auto Deploy Server.

AD153. Click On Download TFTP Boot Zip and Save Deploy-TFTP.Zip to Local Drive.

TFTP83. Choose the location and Click Save to save on the specified location.

TFTP94. Open the folder, Extract and copy all files inside this folder to TFTP Server Root location.

TFTP135. In my case TFTP Root is C:\TFTP-Root, So Paste copied files here.

PCLI246. Now we have to Configure C:\TFTP-Root as Root Directory for TFTP Server. So choose File –> Configure.

TFTP117. Under the Storage –> TFTP Server Root Directory –> Click Browse and choose C:\TFTP-Root and Click OK.

PCLI258. After Setting Up Root Directory Stop and Start the TFTP Server Service and Click OK to close the configuration window.

PCLI269. TFTP Server Configuration Completed and TFTP Server Service is Up and Running fine now.


We have installed and Configured Auto Deploy Server and TFTP Server, Now will Configure DHCP server ( Reservation and Configure Options 66 and 67 )

Configure DHCP Server

1. Open DHCP Server, Right Click on Reservation and choose New Reservation.

DHCP12. We need to specify MAC Address of the server for which reserving IP Address. And Also you can see have not assigned disk to this Virtual Machine (Stateless Host)

DHCP23. Provide Reservation Name same as Host Name, IP Address want to reserved for this host and MAC Address of the host.(Replace Colon (:) with Dash (-)) and Click Add to add reservation.

DHCP34. Now need to Configure Options for reservation with 66 (TFTP Server Name) and            67 (BootFile Name). Right Click Reservation and choose Configure Options.

DHCP45. Scroll Down to Options 66. Tick the check box 66 and Specify TFTP Server Name in Data Entry –> String value and Click Apply.

DHCP56.  Tick the check box 67 (Bootfile Name) and in the String Value enter Name of the Bootfile from TFTP Server Root Directory.




So far we have discussed Install and Configure vCenter Server, Auto Deploy Server, TFTP Server and DHCP Scope.

We’ll discuss Download Offline Bundle for ESXi 5.5 with all other VIBsInstall VMware PowerCLI 5.5, and Create Software Depot / Image Profile / Deploy Rule / Create Host profiles / Update Rules with Host Profile in the Deploying VMware ESXi 5.5. with vSphere Auto Deploy 5.5 – Part 2.

Click Here for Part 2 – Deploying VMware ESXi 5.5. with vSphere Auto Deploy 5.5

Thank You!

Roshan Jha