Caution: Articles written for technical not grammatical accuracy, If poor grammar offends you proceed with caution ;-)
You have read all the announcements about vSphere 6.0 Update 2 being released and now you want to upgrade. Maybe you haven’t tried out the embedded web ui and are tired on needing to use the thick client when your VC goes down. Whatever the reason applying the update is pretty easy and straight forward.
Updating vCenter Appliance
First things first we need to upgrade vCenter to Update 2. To do this manually you will first need to download the vSphere patch iso VMware-vCenter-Server-Appliance-6.0.0.20000-3634791-patch-FP.iso from myvmware. Once you have downloaded the iso simply follow these steps to apply the update:
- Snapshot your vCenter Appliance VM
- Mount the iso to the vCenter Appliance VM
- SSH to the vCenter server console as root
- Run the following command (DO NOT enter the shell):
- software-packages –iso –acceptEulas
- Reboot the appliance by typing: shutdown reboot –r update2
- Remove the Snapshot
That’s if for updating the vCenter Appliance. Wait for vCenter to fully come back back up and then proceed below to update your vSphere hosts.
Updating vSphere(ESXi) Hosts
Ok so your vCenter server is updated and back up and running. Now it’s time to update you vSphere(ESXi) hosts. Follow the below steps for each vSphere host in your environment:
- Place the host in maintenance mode
- SSh to the host console of the host. (If you haven’t enabled SSH on the host, go to the console, login, go to Troubleshooting Options, then Enable SSH)
- Enable the httpClient to get to the web by configuring in the web UI or entering the following command at the ssh console:
- esxcli network firewall ruleset set -e true -r httpClient
- Run the following to download and install the update:
- esxcli software profile update -p ESXi-6.0.0-20160302001-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
- Once completed remove the firewall rule you enabled either in the ui or by running the following command:
- esxcli network firewall ruleset set -e false -r httpClient
- Next type reboot to reboot the server
- Finally take the server out of maintenance mode.
- Repeat for all servers
Now that you have updated your servers you can go to https://{serverFQDN}/ui to utilize the built in web management for the server. Having a web ui built in to the host kinda reminds me of the vSphere 2.x days. I rather miss those days.
You do not need to download the patch ISO to update the VCSA to U2. It is an update not an upgrade. That means you can find the bits in the VAMI updates section. So very easy.
Can you do this with powercli commands instead – Set-VMHost to maintenance mode then engage the commands with the Get-ESXCli cmdlet?
Think you want “software-packages –iso –acceptEulas” to be “software-packages install –iso –acceptEulas”
Hi Sid,
To update vCenter, you need to run the following command:
software-packages install –iso –acceptEulas
Best regards,
Ronald
Just an update to your VCSA command, it should read: software-packages install -–iso -–acceptEulas
I think wordpress has removed some of your command, software-packages install –iso –acceptEulas