From time to time I find it useful to export the esxi config from an esxi-host. One use-case for instance is if I have a server with onboard USB-card for esxi-storage. If this USB-storage is filled with unused mibs from custom esxi-installations from the manufacturer, and has been upgraded several time, it will fill up. There will be errors if I try to upgrade and a clean install is in order.Therefore, before I reinstall an esxi-host I export esxi-settings first.
- Document which network card is used for managment and ip-setup.
- Use a compatible version of Vmware PowerCLI vs. your esxi-host
- Connect to the esxi-server in question.
- Connect-VIServer 172.16.0.2
- Export the esxi-config to a folder on your computer
- Get-VMHostFirmware -VMHost 172.16.0.2 -BackupConfiguration -DestinationPath C:\tmp\esxi-01
- Re-install the host, make sure you use the same network-card and ip-setup which you documentet above
- Reconnect to the host with PowerCli
- Set the host in Maintenance Mode
- Set-VMHost -VMHost 172.16.0.2 -State ‘Maintenance’
- Import the settings you exported above
- Set-VMHostFirmware -VMHost 172.16.0.2 -Restore -SourcePath C:\tmp\esxi-01\configBundle-172.16.0.2.tgz -HostUser root -HostPassword Root-pwd -force
- Reboot you esxi-host
Learn more about exporting/importing esxi-configs at Vmware‘s KB-site:
Disclaimer: Every tips/tricks/posting I have published here, is tried and tested in different it-solutions. It is not guaranteed to work everywhere, but is meant as a tip for other users out there. Remember, Google is your friend and don’t be afraid to steal with pride! Feel free to comment below as needed.