How to Backup and Restore the VMware ESXi 6.x Configuration

Backup Configuration
  • Connect via SSH to your running ESXi Host
  • Run to backup config from host

  • Config saved under /scratch/downloads
  • Copy config to a safe location
Restore Configuration
  • Run enter maintenance mode
  • Run to restore config

Restore Configuration on a blank machine
  • Install Host
    • Install the new host with the same ESXi Version and Build
    • Follow the installation assistent
    • Reboot machine
  • ISO
    • Create a ISO with your backuped configBundle.tgz
    • Burn ISO or Load ISO as Virtual Drive in your LOM
  • ESXi Shell
    • From the Direct Console User Interface, press F2 and Login to access the System Customization menu.
    • Click Troubleshooting Options.
    • Select Enable ESXi Shell and press Return to Enabled.
    • Press Alt+F1 to open the ESXi Shell
  • Mount CD-ROM
    • Load the iso9660 module with

    • Find the Path to the CD-ROM with

    • Set the loaded module to the CD-ROM
    • Now you can see the CD-ROM in the “ls /vmfs/volumes/”
  • Restore config
    • Copy config from mounted CD-ROM Drive to tmp
    • Run to enter maintenance mode
    • Run to restore config



PowerCLI error after vCenter Server upgrade

After upgrading to vSphere 6.7, a PowerCLI script aborts with this error message:

To resolve the issue, retype the password in the VMcustomization specifications (under Policies and Profiles). Edit the customization specifications and retype the password under the following two preference points:
– Administrator password
– Workgroup or domain

Remove VMware VIBs/VIB conflict

Store VMware PowerCLI login credentials

Connect to VirtualCenter Server and enter credentials

Save the credentials to the credential store file (By default the credential store file is stored – encrypted – under the user profile directory)