Updating my ESXi server from 5.1 to 5.5
In the wake of VMware’s release of ESXi 5.5 on Monday, September 23, I needed to upgrade my home’s ESXi 5.1 server to ESXi 5.5. Since I didn’t want to fire up my Windows VM, I did the upgrade from 5.1 to 5.5 via SSH and esxcli. For those interested, see below the jump for the details of the process I used.
To upgrade from ESXi 5.1 to 5.5 using esxcli:
1. Shut down all VMs running on your ESXi host machine.
2. Connect via SSH and run the following command to enter maintenance mode:
3. After putting ESXi into maintenance mode, run the following command to set the correct firewall rules for the httpClient:
esxcli network firewall ruleset set -e true -r httpClient
4. Next, run the following command to list the ESXi 5.5 updates available. You want the latest one that ends in “-standard” for your version of VMware.
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-5.5
5. Once you’ve identified the correct version of VMware (in this case, it’ll be ESXi-5.5.0-1331820-standard), run the following command to download and install the update.
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.5.0-1331820-standard
Note: It is very important that you run esxcli software profile update here. Running esxcli software profile install may overwrite drivers that your ESXi host needs.
6. Once the update has been installed and prompts you to reboot, run the following command to restart:
7. After your ESXi host restarts, connect via SSH and run the following command to exit maintenance mode:
At this point, your ESXi host should be upgraded to ESXi 5.5.