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.
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.
In this section, I will introduce you 3 ways in VMware ESXi to backup 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.
4. Replace the * in this link with your own ESXi host IP/FQDN, and navigate to this link from the web browser.
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.
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
Then your ESXi host configuration will be backed up in tgz format to the directory you specified.
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
Then a backup text file will be saved in the current working directory where you run the vicfg-cfgbackup script.
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:
*You can choose to install this VM backup software on either Windows or Linux system.
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.
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.
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.
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.
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.