Backing Up and Restoring VMware ESXi Configuration Settings
Prerequisites:
SSH access enabled on the VMware ESXi host.
Administrative credentials for the ESXi host.
A secure location to store the backup file.
Backing Up ESXi Configuration
Steps:
Enable SSH Access:
Ensure SSH access is enabled on your ESXi host. Refer to the guide on "Enabling SSH Access on VMware ESXi" if needed.
SSH into the ESXi Host:
Use an SSH client to connect to the ESXi host. Login with your administrator credentials.
Run the Backup Command:
Execute the following command to back up the ESXi configuration:
This command outputs a URL containing the backup file location, typically in the format of
/scratch/downloads/[date]-[time].tgz
. Note this URL, as you will need it to download the backup file.
Download the Backup File:
Access the ESXi host using a web browser or an SCP client. Navigate to the provided URL or directory, and download the
.tgz
backup file to a secure location.
Restoring ESXi Configuration
Prerequisites:
The ESXi host must be in maintenance mode before restoring the configuration.
The backup
.tgz
file you previously saved.
Steps:
Enter Maintenance Mode:
Connect to the ESXi host via SSH.
Execute the following command to put the host into maintenance mode:
Restore the Configuration:
Ensure the backup file is accessible from your local machine or a location that the ESXi host can access.
Use the following command to restore the configuration from the backup file:
Replace
/path/to/backup_file.tgz
with the actual path to your backup file.
Reboot the Host:
After successfully restoring the configuration, reboot the host for the changes to take effect:
Exit Maintenance Mode:
Once the host has rebooted, exit maintenance mode by connecting via SSH and running:
Last updated