Configure Syslog Directory vSphere »

Update vSphere ESXi 5 single host

11/03/11

Update vSphere ESXi 5 single host

Permalink 04:41:00 pm by vappsnl, Categories: Personal

Link: http://communities.vmware.com/people/vmroyale/blog/2011/09/15/updating-esxi-5--single-use-esxcli-how-to

@vmroyale thanks for the explanation

This is what i did using vCli:

 

 

01: Make sure you have the vCLI installed and configured or that you have ESXi Shell access on the ESXi 5 host.

02: Download the patch bundle directly from VMware Support. This download will be .zip file. Do not extract it. patches: http://www.vmware.com/patchmgr/download.portal

03: Upload the .zip file to a datastore that is accessible on the ESXi host you wish to update. The syntax below will use /vmfs/volumes/datastore1, and you may need to adjust as necessary. Note that the .zip file is uploaded to the ESXi host.

Note:  In the examples below, the syntax is specific for the vCli. Adjust accordingly, if you are using another approach.

04: Obtain local console access to the vCli.

05. To determine if the host needs to be placed in maintenance mode, issue the following command:

esxcli --server=192.168.75.138 --username=root software sources vib get -d /vmfs/volumes/datastore1/ESXi500-201109001.zip | find "Maintenance Mode Required: True"

06.  If grep returns "Maintenance Mode Required: True" results, then issue the following command to place the host in maintenance mode:

vicfg-hostops.pl --server 192.168.75.138 --operation enter

07. Verify that the host is in maintenance mode, by issuing the following command:

vicfg-hostops.pl --server=192.168.75.138 --operation info

Note: You could also use the vSphere Client to put the ESXi 5 host in maintenance mode.

08. To verify which VIBs are already installed on the ESXi 5 host, issue the following command:

esxcli --server=192.168.75.138 --username=root software vib list | more

09. To find out which VIBs are available in the depot (the downloaded .zip file), issue the following command:

esxcli --server=192.168.75.138 --username=root software sources vib list --depot=/vmfs/volumes/datastore1/ESXi500-201109001.zip | more

10. To update the ESXi 5 host with the VIBs included in the depot, issue the following command:

esxcli --server=192.168.75.138 --username=root software vib update --depot=/vmfs/volumes/datastore1/ESXi500-201109001.zip

esxcli --server=192.168.75.138 --username=root software vib update --depot=/vmfs/volumes/datastore1/ESXi500-201111001.zip

11. When the update is complete, verify the information presented. If prompted, reboot the ESXi 5 host by issuing the following command:

vicfg-hostops.pl --server 192.168.75.138 --operation reboot

12. Verify the patch bundle was installed, by issuing the following command:

esxcli --server=192.168.75.138 --username=root software vib list | more

13. If applicable, take the ESXi 5 host out of maintenance mode using the vSphere Client or with the following command:

vicfg-hostops.pl --server 192.168.75.138 --operation exit


build before: 469512 (Base Install)
build after 201109001: 474610
build after 201111001: 504890