Upgrade-ESXi-5.1-to-5.5-vSphere-Auto-Deploy

In the fourth part of ESXi upgrade from version 5.1 to version 5.5, I will cover Auto Deploy upgrade. Upgrade itself isn’t quite different from creating deployment rule with a new version of ESXi.

Prerequisites

You have configured vSphere Auto Deploy and you downloaded latest offline bundle. Since I wrote the first post about upgrade methods VMware released a new version of vSphere – 5.5 Update 1. I used ESXi 5.5 Update 1 Offline Bundle from VMware website.

Upgrade using Auto Deploy

For the sake of simplicity, I use Auto Deploy with stateless caching. In case you missed my earlier posts about how to configure Auto Deploy you can find them here:

At the beginning, I suggest checking what kind of deployment rules you now have in use. You can use PowerCLI command Get-DeployCommand to receive a list of all Auto Deploy related commandlets.

vSphere Auto Deploy upgrade 1

  1. Please check for existing deploy rules by executing Get-DeployRuleSet.
  2. With my three running ESXi hosts deployed using Auto Deploy I am using ESXi 5.1 Update 2.
    vSphere Auto Deploy upgrade 2
  3. We have to copy new Offline Bundle to our server where Auto Deploy is installed. In my case I copied it to folder E:\SoftwareDepot and I executed PowerCLI command Add-EsxSoftwareDepot E:\SoftwareDepot\update-from-esxi5.5-5.5_update01.zip.
  4. After we added offline bundle we can check what kind of profile are available. In order to do it execute command Get-EsxImageProfile |Format-Table
    vSphere Auto Deploy upgrade 3
  5. Now what we will do is simply clone existing profile ESXi-5.5.0-20140302001-standard into our new profile with name ESXi 5.5 U1.
  6. In order to use our brand new profile with Auto Deploy we have to export it.
  7. My old deploy rule points to ESXi 5.1 U2 image. You can check your active rule using following command Get-DeployRuleSet.
    vSphere Auto Deploy upgrade 5
  8. I deleted old Auto Deploy rule by executing command Remove-DeployRule -DeployRule ESXi5.5-Normal. It just remove it from active rules – if you want to permanently delete rule you have to add -Delete.
  9. I created new deploy rule.
  10. After executing New-DeployRule command we have fully functional Auto Deploy with a new ESXi image.
    vSphere Auto Deploy upgrade 4
  11. We just need to activate it by executing command Add-DeployRule -DeployRule “ESXi 5.5”.
  12. There might be a case that your hosts are still booting using old rule. The reason is simple – Auto Deploy use cache to serve data faster. In order to deploy hosts using latest rule execute the following command

    vSphere Auto Deploy upgrade 6
  13. As you see on the output of command Auto Deploy detected the difference and fixed cache. On screenshot, you see that two out of three hosts are using latest version 5.5 U1.
    vSphere Auto Deploy upgrade 7

Social Media

Wojciech Marusiak

Cloud Solution Architect at Microsoft
I am an innovative and experienced IT professional with over 13 years in the IT industry.

My experience and skills have been proven by leading vendor certifications like AWS, Alibaba Cloud, VMware, and Microsoft. I contribute to the IT community and I received VMware vExpert 2014 - 2019, vExpert Pro and VMware vExpert NSX 2017 Award.

My blog wojcieh.net - was voted #76 in Top vBlog 2018 contest!

Do what you love, and you’ll never work another day in your life.
Wojciech Marusiak
Social Media