Restore ESXi Config from Backup:

Rahul Agarwal
Mar 5, 2021

Process used from vmware kb article:

https://kb.vmware.com/s/article/2042141

  1. upload config file to the datastore and make sure the host is in the maintenance mode.
~] vim-cmd hostsvc/maintenance_mode_enter'vim.Task:haTask-ha-host-vim.HostSystem.enterMaintenanceMode-184'

2. SSH to the ESXi blade which needs restored from backup

~] lsconfigBundle-hostname.tgz

3. Move config file under /tmp.

~] mv configBundle-hostname.tgz /tmp/configBundle.tgz

4. Execute below command to restore host config. Host will reboot once the command runs successfully.

~] vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz~] Connection to hostname closed by remote host.Connection to hostname closed.

5. Once host boots backup, verify Datastore, Virtual Switches and other settings to make sure it has properly restored back. In most of our settings if there is an error seeing datastore, make sure the correct MTU is set in concerned vSwitches with 1500 and 9000.

--

--