virtuallypotato/content/posts/upgrading-standalone-vsphere-host-with-esxcli/index.md
2022-10-14 07:39:53 -05:00

3.2 KiB

title date description featured draft toc usePageBundles codeLineNumbers series tags comment
Upgrading a Standalone vSphere Host With esxcli 2022-10-14T07:19:24-05:00 Exploring the steps to manually upgrade a standalone host from ESXi 7 to ESXi 8 using the esxcli over an SSH connection. false true true true false Tips
vmware
homelab
vsphere
true

You may have heard that there's a new vSphere release out in the wild - vSphere 8, which just reached Initial Availability this week. Upgrading the vCenter in my single-host homelab is a very straightforward task, and using the included Lifecycle Manager would make quick work of patching a cluster of hosts... but things get a little trickier with a single host. I could write the installer ISO to a USB drive, boot the host off of that, and go through the install interactively, but what if physical access to the host is kind of inconvenient?

The other option for upgrading a host is using the esxcli command to apply an update from a depot.zip. It's a pretty easy solution (and can even be done remotely, such as when connected to my homelab via the Tailscale node running on my Quartz64 ESXi-ARM host) but I always forget the commands.

So here's quick note on how I upgraded my lone ESXi to the new ESXi 8 IA release so that maybe I'll remember how to do it next time and won't have to go Neeva'ing for the answer again.

; esxcli system maintenanceMode set -e true
; esxcli software sources profile list -d /vmfs/volumes/nuchost-local/_Patches/VMware-ESXi-8.0-20513097-depot.zip
Name                          Vendor        Acceptance Level  Creation Time        Modification Time
----------------------------  ------------  ----------------  -------------------  -----------------
ESXi-8.0.0-20513097-standard  VMware, Inc.  PartnerSupported  2022-09-23T18:59:28  2022-09-23T18:59:28
ESXi-8.0.0-20513097-no-tools  VMware, Inc.  PartnerSupported  2022-09-23T18:59:28  2022-09-23T18:59:28
; esxcli software profile update -d /vmfs/volumes/nuchost-local/_Patches/VMware-ESXi-8.0-2051309
7-depot.zip -p ESXi-8.0.0-20513097-standard
; reboot