Latest Articles

How to: Backup and restore ESXi configuration using vMA

A quick blog post about backing up and restoring the configuration of your ESXi hosts. It will shorten your recovery time when something goes wrong during an upgrade or in case of hardware failure and you want to restore the configuration of your ESXi hosts as soon as possible. Here are the steps to perform a back-up and restore of your ESXi host.

Backup

  1. SSH or login to the vMA.
  2. Add the host as target to the vMA: vifp addserver <FQDN or IP Address>
  3. Enter the password.
  4. Set the server as target: vifptarget -s <FQDN or IP Address> Notice that your prompt will reflect the FQDN or IP address of the host.
  5. Save the configuration with: vicfg-cfgbackup -s /tmp/<Config_File_Name>
  6. Done, the config has been saved in the tmp directory of the vMA.

Restore

  1. Add the host and set it as target in the vMA, just like in step 1 to 3 in the back-up procedure.
  2. Restore the configuration with: vicfg-cfgbackup -f -l /tmp/<Config_File_Name>
  3. Type Yes to start the restore procedure.
  4. When the procedure is finished, the host will reboot with the new settings.

Done!

Cheers!

– Marek.Z

About Marek (293 Articles)
Marek is an IT professional with 15+ years of experience in the IT industry and is currently working as PSO Senior Consultant SDDC at VMware for the NEMEA region.

2 Comments on How to: Backup and restore ESXi configuration using vMA

  1. Hello,
    Can the vMA live on the ESXi host you want to restore? I tried this and was unable to complete the restore because the VMA was running and unable to go into maint mode.

    • Hi,

      Unfortunately, no. You cannot as the ESXi hosts needs to reboot. I would recommend running the vMA under VMware workstation on you laptop or desktop. Alternatively, on an another ESXi host.

      Cheers!

Leave a reply...