Patching an offline ESXi Host

Posted by JTV1703@reddit | sysadmin | View on Reddit | 19 comments

Quick question. I am need to patch my ESXi host. However, this host has the VM that is the router for the network. As soon as I place the host into maintenance mode, the internet will cut off. I have the patch zip file in the local host datastore. Will the following commands on the local console for the host work for patching?:

  1. Enter maintenance mode: vim-cmd hostsvc/maintenance_mode_enter 
  2. Esxcli software vib update -d /vmfs/volumes/datastore/Updates/VMware-ESXi-7.0U3w-24784741-depot.zip 
  3. reboot 
  4. Vim-cmd hostsvc/maintenance_mode_exit