|
Voiced by Amazon Polly |
Objective
This lab aims to guide you to take a complete backup of your ESXi host and restore it whenever required.
Get expert vSphere training now
- Understand new features
- Best practices available
- Instructor led courses
Prerequisites
- Access of vCenter through vSphere Web Client.
- Access of CLI of ESXi Host and SSH enabled.
- Knowledge of Basic ESXi commands: im-cmd.
Lab Overview
After completing this lab, you will be able:
- Understand the need for Backup and Restore of ESXi servers
- To back up the ESXi host in the .tgz file
- To restore the ESXi host from the backup file
- Verify the restoration of ESXi Host and Unregistered VMs
Step-by-Step Lab Guide
PART-I Taking backup of ESXi host
- Open vSphere host client and Login to ESXi host (sa-ESXi-01 –> 172.20.10.51) using root.

- View all details of the ESXi host as we will back up the sa-ESXi-01 host for backup.

- Access the console of an ESXi-01 as a root through SSH, as we will take file-based backup using commands.

- First, sync the configuration setting of the ESXi host using:vim-cmd hostsvc/firmware/sync_config

- Now Take backup using the command: vim-cmd hostsvc/firmware/backup_configIt will give a URL for downloading the backup bundle in .tgz file format.

- Copy the URL and replace FQDN or IP of the ESXi host with *. Here we replaced * with 172.20.10.51 IP. Now using the wget command, download the backup in the current directory.

- Create Directory “Backup” under VMFS01-01 datastore.

- Copy this .tgz backup file to /vmfs/volumes/VMFS01-01/Backup path.


- Cross-check from the datastore tab of the ESXi host client that this backup file should be available in the Backup folder of VMFS01-01 datastore.

PART-II To restore ESXi from Back Up file.
- Go to ESXi Host web client and unregister one VM – Ubuntu Server from ESXi host– so automatic VM restoration happens after backup.


- copy the backup bundle file from the datastore folder to the /tmp directory.

- Put ESXi host into maintenance mode using command and cross verify from ESXi host web client.vim-cmd hostsvc/maintenance_mode_enter


- Rename the backup file to configBundle.tgz
- Now restore the backup using the following command:vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz Here, reboot the ESXi host as we are restoring from the backup.

- Now log in to the ESXi host client again and verify the automatic restoration of the VM – Ubuntu Server and backup.

Get your new hires billable within 1-60 days. Experience our Capability Development Framework today.
- Cloud Training
- Customized Training
- Experiential Learning
About CloudThat
CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.
WRITTEN BY Rahul Mehta
Rahul Mehta is a Subject Matter Expert at CloudThat, specializing in Microsoft and VMware technologies, Generative AI, and cloud security. With over 19 years of experience in the IT training domain, he has trained more than 1000 professionals to upskill in areas such as Microsoft 365 Copilot, Microsoft Team Administration, Azure Security and Compliance, VMware Data Centre Virtualization. Known for simplifying complex concepts and delivering hands-on, impactful training, he brings deep technical knowledge and practical application into every learning experience. Rahul's passion for continuous learning and emerging technologies reflects in his unique approach to learning and development
Login

June 6, 2023
PREV
Comments