What's Popular

Meh, Whatever is Featured

Linking Active Directory to Palo Alto

 ###First you need to create a server profile under the LDAP section. DEVICE>Server Profiles>LDAP then click on the Add down at the bo...

Sunday, August 19, 2018

Update ESXi Through CLI

Update ESXi Through CLI
1.       Sometimes you will have to update your ESXi through the CLI because the ESXi you want to install has vCenter and you do not have redundant vCenters or cannot move it. If this is the case, you will have to shut down all the VMs on the ESXi and then you will have to patch the ESXi manually through CLI. First, you will have to upload the file to a datastore on the ESXi.
2.       The easiest way to do this is to create a folder on your datastore on the ESXi you will have to update through CLI. We will create a folder under the main datastore called “Updates”


3.       Once this is done, you can log into the web of the ESXi and start shutting down VMs. WARNING! I do not recommend shutting down the vCenter appliance this way! I have instructions on how to do this through this link https://defiance5050.blogspot.com/2018/08/safely-shutdown-vcenter-appliance.html .
4.       Once the systems are all shutdown, you can SSH into the ESXi (I know you can do all the pre-steps through CLI too, but completing the pre-requisites through GUI is much easier than CLI).
5.       After you SSH into the ESXi you want to update, enter the following command to put into maintenance mode:
a.       “vim-cmd hostsvc/maintenance_mode_enter”
6.       Next, use the “esxcli software vib update” command to execute the update. This is VMware’s recommended way of executing updates for ESXis along with the vSphere Patch/Upgrade Manager (you need the vCenter Appliance with vSphere for this to happen though, hence why we still need these instructions).
7.       Once it is done, reboot the ESXi by typing in the following:
a.       “reboot”
8.       After the ESXi has fully rebooted, you can take out of maintenance mode to bring the ESXi back online:
a.       “vim-cmd hostsvc/maintenance_mode_exit”

9.       Finally, do not forget to turn your vCenter appliance back on and your other systems too! Enjoy!

Safely Shutdown vCenter Appliance

Safely Shutdown vCenter Appliance
1.       First, you want to go and log on DIRECTLY to the vCenter appliance. DO NOT SHUT DOWN THROUGH ESXi page or vSphere! You can log on directly by going to the IP address/FQDN of your vCenter followed by the port number (5480) in an internet browser.

2.       Once you are logged on, you simply click on the “Shutdown” button in the top right of the web page. Boom, that is it, this is the SAFE way to shut down your vCenter Appliance.


Updating vCenter Appliance through GUI

Updating VMware vCenter
1.       Log onto your vCenter Appliance through the IP address and the port number (5480) at the end in the web browser.
 2.       Once you have logged in, click on the Update tab on the left-hand side.
3.       In the update tab, click on the Check Updates near the top right-hand side.
4.       Click on Check Repository.
5.       You should see a new section under the “Current Version Details”. It will be “Available Updates”.
a.       Here you can verify information on the update such as release date, version number, and more details to view the KB on the update.
6.       Click on the “Install Updates” tab on the right of this “Available Updates” section.
7.       Then click “Install All Updates” to begin the update process. Accept the license agreement, and wait for the display to show completed.
8.       Once all of the updates have been installed, the vCenter Appliance needs to be rebooted. Click on the “Summary” tab in the top left, then click on “Reboot” in the top right of the “Summary” screen.

9.       Verify the vCenter comes back up online, go into the updates and verify your update has been installed.