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?

LVL 3
mlsbravesAsked:
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.

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.
0
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.

vicfg-cfgbackup.pl --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.

vicfg-cfgbackup.pl --server <server_name> -l <backup_file_name>
0
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.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

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

http://powergui.org/index.jspa

and

VMware Community Pack

http://www.virtu-al.net/featured-scripts/vmware-powerpack/
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
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
0
mlsbravesAuthor Commented:
I first installed the vCLI and tried the following command:

vicfg-cfgbackup.pl --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:

vicfg-cfgbackup.pl --server <ip-address>
 --username <username> --password <password> --save backup.bak

The file was saved in this directory:
C:\Users\Username\AppData\Local\VirtualStore\
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
VMware

From novice to tech pro — start learning today.