How to import a VMware Host's configuration file to a fresh installation?

I have an ESXi host that is running VMware version 6.0 Update 2 and I wish to update it to version 3.0 while performing a new installation that overwrites the existing host settings.

I have a config bundle .tgz file downloaded (see attached instructions).  After practicing on an older ESXI host, I was not able to restore the config bundle with the recommended command.  My objective is to overwrite the existing installation of VMware and then restore the previous configuration settings. See attached Microsoft Word document.  I put htat together myself, it is not an official VMware document.

I am having "invalid argument" errors meesages come up with I tigger the following command from an SSH connection.

vim-cmd hostsvc/firmware/restore_config /tmp/configBundle-MOGLVMHOST01.tgz

I was able to successfully install the new version on the Test ESXI host while overwrite the network settings and IP address in the process.  During the VMware installation I set the password.  I then changed the IP address of the ESXi host to what it was before.  I then FTP'd the config to the <root>/tmp/ - folder (as the instructions stated); but, I received an invalid command error when trying to execute: vim-cmd hostsvc/firmware/restore_config /tmp/configBundle-MOGLVMHOST01.tgz

Question1:  Can someone explain to me why I cannot restore the config?  
Question2:  Is the config not supposed to be restored this way?  Is it supposed to be restored another way?
Quesiton3:  Will I just need to manually recreate the VSwitches and VMnic assignments if I overwrite those settings?
How-to-backup-the-ESXi-Host-config.docx
LVL 1
PkafkasNetwork EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PkafkasNetwork EngineerAuthor Commented:
I am also wondering if overwriting the Host settings, during the installation will require me to enter the license codes again?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Question1:  Can someone explain to me why I cannot restore the config?  

Restoring config bundles in our experience is hit and miss.

Question2:  Is the config not supposed to be restored this way?  Is it supposed to be restored another way?

How was it backed up ? Have you tried restoring the config bundle using  vSphere CLI, and you are restoring a configbundle from the same host version ?

Quesiton3:  Will I just need to manually recreate the VSwitches and VMnic assignments if I overwrite those settings?

Yes,
0
PkafkasNetwork EngineerAuthor Commented:
Regarding your question, if you see the attached word document you will see how I backed it up and then tried to restore it.

I used putty to access the CLI on the host.  I also used an FTP program to send the config file (bundle) to the 'root/tmp' folder.
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
use the vSphere CLI, all methods should work, but config restore is problemmatic.

and if you use vSphere CLI, you can reduce some of your procedures, because there is no need to use WinSCP to transfer the files to the host server.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PkafkasNetwork EngineerAuthor Commented:
Mr. Hancock,

Do you know if the vmware licensing will need to be reapplied to the Host?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
It's included in the config - so no
0
PkafkasNetwork EngineerAuthor Commented:
I just want to be clear,

No, the licensing information will not be saved.

Or, no the licensing information will not need to be re-applied.

If the licensing information is included in the configuration and a fresh re-installation of the VMware OS overwrites the configuration, wouldn't the licensing information need to be re-entered in?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
if you backup the configuration of an ESXi server which contains a license key, it will be saved in the configuration backup.

If you install a new ESXi OS, and restore the config, the license key will also be restored.

If you perform a non-upgrade, all the configuration will be lost.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Hardware

From novice to tech pro — start learning today.