How to backup VMware Vsphere ESXi 5.0 configurations

A few months ago I bought VMware vSphere 5 Essentials. I have it up and working where I want it, but now I want to backup the VMware configurations encase the flash drive where the hypervisor is installed fails. I am currently managing the host with VMware vSphere Client. I have not yet had time to find an available server to install the vCenter Server and I am not sure if an easier way is built into it. Is there an easy way of backing up the VMware ESXi config?

Who is Participating?

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

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.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
checkout my EE Article here, that'll will give you a complete walthrough.

How to Backup an ESXi installation on an USB Flash Drive or SD card, for security or redundancy.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Also you can use the following to backup the configuration, so you can backup and restore using the vSphere Command Line Interface

To backup the host you would run the command. --server <server_name> -s <backup_file_name>

To restore your backup configuration to your host you would run. This will cause the host to reboot once the process is complete. --server <server_name> -l <backup_file_name>
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Download either the vMA or vCLI for the scripts

There are also Scripts and Tools in the VMware Community Pack...

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI


VMware Community Pack

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
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
VMware vSphere vCenter provides no functions to backup the ESXi host configuration. You will need to use one of the methods above in http:#a37371199, http:#a37371204, http:#a37371216
mlsbravesAuthor Commented:
I first installed the vCLI and tried the following command: --server <ip-address> -s backup.bak
Entered User and Pass

I kept getting this error:
Error connecting to server at 'https://localhost/sdk/webService': Perhaps host is not a vCenter or ESX server

I then tried this command which did work: --server <ip-address>
 --username <username> --password <password> --save backup.bak

The file was saved in this directory:
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

From novice to tech pro — start learning today.