3 Quick Ways for VMware ESXi Backup Host Configuration

If you only have one VMware ESXi host, and considering that reconfiguring your host is complex and time-consuming, then you may want to back up your host configuration to reduce the impact of host failure and save time. In this article I will introduce you 3 ways to do that using official tools.

Crystal

By Crystal / Updated on August 29, 2024

Share this: instagram reddit

Why need to backup VMware host?

A backup of the VMware ESXi host configuration contains the host bootloader and bootbank partitions, the host state, the extensions and patches, and the log files. It enables you to restore your ESXi host on different hardware.

Thus, some IT administrators will want to perform the "VMware Backup host" option. When you need to reconfigure or migrate a host, backing up and restoring a VMware host can simplify the process, reduce the impact of failure, and save time.

Fortunately, there are several official tools that can help you with this.In this article, I will introduce 3 ways to back up VMware ESXi host configuration using official tools.

Note: If you have multiple VMware hosts, it is not necessary to backup them. Many automated deployment tools, like vSphere Auto Deploy, can help you. And reconfiguring a host is easy.What matters is to backup VMware ESXi virtual machines, which contain critical data and businesses.

VMware ESXi logo

How to backup VMware ESXi host configuration

In this section, I will introduce you 3 ways in VMware ESXi to backup host configuration:

  • Using ESXi command line to back up ESXi host configuration, you do not need to install additional software.
  • VMware PowerCLI is a collection of PowerShell Modules to manage VMware infrastructure. It’s convenient for windows users since PowerShell is installed by default with Windows OS or Windows Server.
  • The vSphere CLI provides perl based tools, allows you to run common system administration commands against ESXi systems from any machine with network access to those systems. But since it is deprecated in vSphere 7.0, reliance on vSphere CLI is not recommended.

Method 1. Using ESXi command line to backup ESXi host configuration

1. Enable Secure Shell (SSH), and connect to your ESXi host via SSH.

2. Since every hour the ESXi host configuration is automatically saved in the /bootblank/state.tgz file, you need first to run the following commands to save the current ESXi host configuration in that file, that is, to synchronize the changed configuration with the persistent storage.

vim-cmd hostsvc/firmware/sync_config

3. Now you can back up the ESXi host configuration by running the following commands:

vim-cmd hostsvc/firmware/backup_config

It will output a link below for you to download the configuration file with a web browser.

ESXi command line backup host

4. Replace the * in this link with your own ESXi host IP/FQDN, and navigate to this link from the web browser.

Save host configuration backup file

5. The backup file will be in the /downloads directory (default is browser or choose to download to a specific directory) with the name configBundle-HostFQDN.tgz.

View downloads

Method 2. Using VMware Power CLI to backup ESXi host configuration

1. Install and configure VMware Power CLI module.

2. Run Power CLI as administrator, and run the following commands to connect to your ESXi host:

Connect-VIServer ESXi_IP_address -user user_name -password your_password

Note: The bold text in commands is what you need to replace with your information.

3. Now you can run the following commands to back up your ESXi host configuration:

Get-VMHostFirmware -VMHost ESXi_host_IP_address -BackupConfiguration - DestinationPath output_directory

Power CLI backup ESXi host

Then your ESXi host configuration will be backed up in tgz format to the directory you specified.

Method 3. Using vSphere CLI to backup ESXi host configuration

1. Install and configure vSphere CLI. You can refer to the official documentation and references: vSphere CLI

2. Run the following command to backup the ESXi host configuration:

vicfg-cfgbackup --server= ESXi_host_IP_address --username=root -s output_file_name

In vSphere CLI for Windows:

2. Navigate to C:\Program Files\VMware\VMware vSphere CLI\bin in Command Prompt.

Note: the 64 bit version of PowerCLI is installed in C:\Program Files, and the 32 bit version is in C:\Program Files (x86).

3. Run the following command to back up the ESXi host configuration:

vicfg-cfgbackup.pl --server=ESXi_host_IP_address --username=root -s output_file_name

vSphere CLI backup ESXi host

Then a backup text file will be saved in the current working directory where you run the vicfg-cfgbackup script.

How to backup and restore multiple VMs on VMware ESXi (free)

Now you know how to in VMware backup host config. But the really matter to ensure business continuity is to backup the VMs on the host., it is much more important than backing up host configurations.

There are a few ways to create independent ESXi VM backups. For example:

However, you can only back up a single VM at a time in these ways. It is inconvenient especially when you want to migrate to another datastore or host.

Therefore, next I will introduce you a handy tool for free VMware backup: AOMEI Cyber Backup.

It simplifies multiple VM backups into 3 concise steps and supports both paid and free versions of VMware ESXi. Here I will demonstrate how to backup and restore ESXi VMs as an example. You can click the button to download the perpetual free edition and get started:

Download FreewareVMware ESXi & Hyper-V
Secure Download

*You can choose to install this VM backup software on either Windows or Linux system.

3 simple steps to backup and restore ESXi VMs

1. Bind devices: Access to AOMEI Cyber Backup web client and navigate to Source Device tab to add vCenter or Standalone ESXi host as the source device, the VMs on the host will be clearly listed with their backup status for monitoring and restoring.

Supported versions: VMware ESXi 6.0 & later versions and Hyper-V on Windows Server 2012 & later versions.

Add VMware ESXi host

2. Backup multiple VMs: Navigate to Backup Task > + Create New Task and set Task Name, Backup Type, Device, Target, Archive ,Schedule, and other backup settings on an intuitive page, you can quickly create a complete backup task that can automatically execute and delete old backup files.

You can cover multiple VMs on the host within one task. Backup files will be clearly distinguished by the VM name, backup time, and type, in a folder named by the task name you specified.

Create VMware ESXi host

3. Restore entire VM: clicking > Restore on the separately listed backup task, all restore points related to the task will be listed, you can then select from them according to your needs.

✎While the Free Edition has covered most VM backup needs, you can also upgrade to enjoy:
Batch VM Backup: batch backup large numbers of VMs managed by vCenter Server or standalone ESXi hosts.
Backup cleanup: Set up a retention policy to auto delete old backups and save storage space.
Restore to new location: Restore the backup to create an identical VM in the same or another datastore/host, which can also be used to clone VMs.

Restore to new location

With AOMEI Cyber Backup you can quickly complete backup and restore tasks of multiple VMs. In addition, you can create sub-accounts with limited privileges, to further protect your VMs from others’ accidental mis-operations.

Summary

In most cases, backing up the VMware ESXi host configuration is not necessary. Redeploying the host is quick and easy, and can be assisted with automated deployment tools.

However, if you manage smaller sites, you may not want to set up the host from scratch. In this article, I summarized 3 ways of using official tools to back up VMware ESXi host configuration. They can be helpful in this case.

After backed up your host, the next important thing is to back up VMs on it. In this article, I introduce AOMEI Cyber Backup that can back up multiple VMs on the host at once and restore to another datastore or host. It is convenient especially if you want to migrate to a new host.

Crystal
Crystal · Editor
Crystal is an editor from AOMEI Technology. She mainly writes articles about virtual machine. She is a positive young lady likes to share articles with peolpe. Off work she loves travelling and cooking which is wonderful for life.