Skip to content

NKCODE TECH GEEK ZONE

  • RSS - Posts
Menu
  • Home
  • Cloud
    • Azure
    • Alibaba
    • AWS
  • Hardware
  • Linux
  • Network
  • Security
  • Windows Client / Servers
    • SQL
    • Windows Client OS
      • Windows 10
    • Windows Servers
      • Windows 2008R2
      • Windows Server 2012R2
      • Windows Server 2016
      • Windows Server 2019
  • VMWARE
  • Free Tools
  • About Me
    • Disclaimer
Menu

Backup & Restore ESXi Configurations Before Upgrades

Posted on July 25, 2025

Upgrading VMware ESXi hosts is a routine but critical task for virtualization administrators. While ESXi upgrades are generally reliable, configuration loss or misconfiguration can quickly turn a planned maintenance window into an outage.

Backing up your ESXi host configuration before every upgrade is a simple but essential best practice. This article walks through why configuration backups matter, how to back up ESXi configs, and how to restore them if something goes wrong.

Why Back Up ESXi Configurations?

An ESXi configuration backup captures important host settings such as:

  • Network configuration (vSwitches, port groups, VLANs)

  • VMkernel interfaces (management, vMotion, storage)

  • Storage configuration

  • Advanced system settings

  • Licensing information

  • Authentication and security settings

If an upgrade fails or a host needs to be rebuilt, restoring the configuration can save hours—or even days—of manual reconfiguration.

When Should You Back Up?

You should back up ESXi configurations:

  • Before upgrading ESXi

  • Before applying patches

  • Before major network or storage changes

  • As part of regular maintenance

💡 Tip: Make ESXi config backups part of your standard change-management checklist.

Method 1: Backup ESXi Configuration Using vSphere CLI (esxcli)

This is the most common and reliable method.

Step 1: Enable SSH on ESXi Host

  1. Log in to the ESXi Host Client

  2. Go to Manage → Services

  3. Start SSH

Step 2: Run the Backup Command

Connect to the ESXi host via SSH and run:

vim-cmd hostsvc/firmware/backup_config

Step 3: Download the Backup File

The command generates a backup bundle stored in:

/scratch/downloads/

Download the .tgz file to a secure location (for example, a backup server or admin workstation).

📁 Example filename:

configBundle-ESXiHost.tgz

Method 2: Backup ESXi Configuration Using PowerCLI

PowerCLI is ideal when managing multiple ESXi hosts.

Step 1: Connect to vCenter or ESXi

Connect-VIServer vcenter.company.local

Step 2: Export Host Configuration

Get-VMHost ESXi01 | Get-VMHostFirmware -BackupConfiguration -DestinationPath C:\ESXi_Backups

✔ This method automatically downloads the backup file
✔ Great for scheduled or bulk backups

Method 3: Backup via vCenter Auto Deploy (Stateless Hosts)

If you’re using stateless ESXi hosts, host profiles and Auto Deploy handle configuration persistence. However, you should still:

  • Export Host Profiles

  • Backup vCenter Server

  • Document networking and storage dependencies

How to Restore ESXi Configuration

If an upgrade fails or the host needs to be reinstalled, restoring the configuration is straightforward.

Step 1: Reinstall ESXi (If Required)

  • Use the same ESXi version as the backup

  • Ensure the host name matches the original

Step 2: Restore Configuration Using CLI

Upload the previously backed-up .tgz file to the ESXi host and run:

vim-cmd hostsvc/firmware/restore_config /vmfs/volumes/datastore1/configBundle.tgz

The host will automatically reboot and apply the configuration.

Restore Using PowerCLI

Set-VMHostFirmware -VMHost ESXi01 -Restore -SourcePath C:\ESXi_Backups\configBundle.tgz

✔ Faster and safer for remote recovery
✔ Ideal for scripted disaster recovery

Post-Restore Validation Checklist

After restoring, always verify:

  • Management network connectivity

  • vSwitch and VLAN configuration

  • VMkernel interfaces

  • Datastore visibility

  • Host licensing

  • vCenter connectivity

Best Practices for ESXi Configuration Backups

  • 🔐 Store backups in a secure, off-host location

  • 🗂 Name backups clearly (host + date)

  • 🔄 Automate backups using PowerCLI

  • 📄 Document critical host settings

  • 🧪 Test restore procedures periodically

Backing up ESXi configurations before upgrades is a low-effort task with high payoff. Whether you manage a single host or a large vSphere environment, having a recent configuration backup ensures you can recover quickly and confidently from upgrade failures.

Never upgrade ESXi without a backup—it’s your safety net.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email

Like this:

Like Loading...

Related

Welcome to Teck Geek Zone

Alibaba & Azure Cloud with a free trial worth $200-1200 USD Click below Cloud Providers

  • A Step-by-Step Guide Upgrading vSphere 8.x to VMware Cloud Foundation 9.0
  • Securing Your Cloud Environment with Alibaba Cloud Firewall
  • 🚢 Sailing into the Data Age: How Cloud and IoT are Revolutionizing the Marine Industry
  • Fetching vCenter Performance Statistics with PowerCLI: A Step-by-Step Guide
  • Patching VMware vSphere using vSphere Lifecycle Manager (vLCM) Images

Categories

  • Cloud (186)
    • Alibaba (39)
    • AWS (39)
    • Azure (114)
  • Free Tools (5)
  • Hardware (17)
  • Linux (13)
  • Network (28)
  • Security (21)
  • VMWARE (58)
  • Windows OS (44)
    • Windows 10 (7)
  • Windows Servers (69)
    • SQL (3)
    • Windows 2008R2 (7)
    • Windows Server 2012R2 (15)
    • Windows Server 2016 (20)
    • Windows Server 2019 (10)

Subscribe to our newsletter

©2025 NKCODE TECH GEEK ZONE | Design: Newspaperly WordPress Theme
%d