VMware Cloud Community
Edweirdo
Contributor
Contributor

Updating ESXi 5 without vCenter.

I have the free version of VMware ESXi 5 installed and would like to apply the latest patch, however, I can't figure out exactly how to do that.  I do not have vCenter so I can't use vCenter Update Manager.  Is there an alternate way to do it?  I even tried the Power CLI but that wanted to connect to a vCenter server.  I hope I'm just missing something obvious.

Edmund C. Greene

Systems Integrator

Information Technlogy Services

Boston College

ed@bc.edu

Life is too short and too important to use Windows.
0 Kudos
4 Replies
Edweirdo
Contributor
Contributor

That worked perfectly.  I was quite disappointed, however, that every tools from VMware is Windows only.

Life is too short and too important to use Windows.
0 Kudos
Crinos512
Contributor
Contributor

I came up with a fairly simple solution that is usable for non-VCPs in my orginization.

  1. create a Updates folder in the local datastore on the host you are preparing. (named localstore in my case)
  2. download ALL of the ESXi 5.x patches from the vmware site: http://www.vmware.com/go/downloadpatches

          ( this will allow for you to look in the Updates Directory to see which updates have been applied )

   3. copy and paste the following code into a txt file named ApplyUpdates.sh ( Change localstore to match your local datastore name ) :

#!/bin/sh
#Apply all Updates in localstore

for file in /vmfs/volumes/localstore/Updates/*.zip
do
echo "Applying $file"
esxcli software vib install -d $file
rm $file
touch $file.txt
done

   4. upload the ApplyUpdates.sh file to the Updates directory

   5. You are now ready to Upgrade the host

when you are ready to update the host

    1. upload the new patch .zip files to the Updates directory

    2. shutdown all VMs
    3. place the Host into maintance mode
    4. start the SSH service on the Host
    5. SSH into the Host using either Putty or any other SSH client of your chosing
    6. run the following commands in order:

                    cd /vmfs/volumes/localstore/Updates/

                    sh ./ApplyUpdates.sh

                    reboot

          6.  when the host finishes booting you should be running the latest version

NOTE: This method deletes the Patch files to conserve space after successfully installing, but creates a 0kb txt file with the patch's name in it's place so that you can easily verify which patches have been applied to which host.

NOTE 2: ESXi is Case-Sensitive! You will have problems if you are insensitive.

0 Kudos
SeanLv
Contributor
Contributor

hello friend,

I am suspecting your comments "download ALL of the ESXi 5.x patches from the vmware site: http://www.vmware.com/go/downloadpatches", since the patches are cumulative, we need only the newest zip file.  agree?

0 Kudos