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 https://my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere/5_5

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 https://my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere_with_operations_management/5_5?productId=352#drivers_tools

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 vc.dca.com.                                       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\update-from-esxi5.5-5.5_update02-2068190.zip”   

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=192.168.174.206-192.168.174.220”                                                                 (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 (esxi1.dca.com) 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 192.168.174.210 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 192.168.174.210 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 192.168.174.211. 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 🙂

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

  1. Pingback: Deploying VMware ESXi 5.5. with vSphere Auto Deploy 5.5 | Ausnsk's Blog

  2. Pingback: Deploying VMware ESXi 5.5. with vSphere Auto Deploy 5.5 | Ausnsk's Blog

Leave a Reply

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

*