Upgrade to ESXI 7.0 U1 with the CLI

ESXI 7.0 U1 is here and it is time to upgrade! Normally upgrading ESXI would involve Update Manager and vCenter but in a situation where you have a single host and vCenter runs on that host, your upgrade options are limited.

To start the upgrade process, you will need to download and upload (to a datastore) the offline bundle. These bundles can be found from the my.vmware.com, VMUG or vExpert download portals. Once the bundle is downloaded, you will need to upload to the datastore using the upload button.

After the upload is complete, it is time to kick off the upgrade. Start by SSHing to your ESXI host. You may have to enable SSH as it is disabled by default. This can be done by navigating to Host -> Actions -> Services -> Enable Secure Shell (SSH). Your SSH session should look something like this:

Once an SSH connection is established, we can enter Maintenance Mode with the following command:

vim-cmd /hostsvs/maintenance_mode_enter

This command kicks off the equivalent tasks as the “Enter Maintenance Mode” from the GUI. Once the host is in Maintenance Mode, the upgrade can be initiated using the following command:

esxcli software vib update -d /vmfs/volumes/datastore-name/offline-bundle-name.zip

The main command that we are using is “esxcli software vib update”. The -d switch informs the command where the offline bundle is located. This portion should be updated to match your environment. The install will take a few minutes but once it is complete, the shell prompt will return.

After the prompt has returned, you can initiate the following command to reboot the host:

reboot

Once the reboot is successful and complete. The host will be running your newly installed version!

The offline bundle is a great way to upgrade single node or non-vcenter environments without breaking out the KVM/USB Drives!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s