Backup/Restore ESX configuration

VMware specific discussions

Backup/Restore ESX configuration

Veeam Logoby larry » Fri Jul 22, 2011 11:42 am

New feature request.
Have Veeam backup the ESX files themselves. With ESX 3 installs only took 5 minutes but now with 4 and all the options like 10 nics, lots of luns, multi paths doing all the configuring takes a while. If Veeam could just backup all the configs and restore to a basic install of esx would be great.
larry
Expert
 
Posts: 372
Liked: 89 times
Joined: Wed Mar 24, 2010 5:47 pm
Full Name: Larry Walker

Re: Backup/Restore ESX configuration

Veeam Logoby Gostev » Fri Jul 22, 2011 12:16 pm

We had exactly such product a few years ago (Configurator), but it did not take off so we shut it down. We found that small customers just configured the hosts manually, while larger customers used kick-start autodeploy scripts.

Since then, VMware added host profiles feature, which covered our former product's functionality. And nowadays, VMware's recommended way to deploy vSphere are stateless ESXi autoconfigured as a part of PXE boot. And for small deployments, you can simply boot ESXi from USB stick (and just plug the stick to another host, should the original host fail). All of these features render such solution unneeded.
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Backup/Restore ESX configuration

Veeam Logoby larry » Fri Jul 22, 2011 1:42 pm

My vm license dosn't allow me to use there tool. We are a in betwwen size. Now we just document every thing for the rebuild.
larry
Expert
 
Posts: 372
Liked: 89 times
Joined: Wed Mar 24, 2010 5:47 pm
Full Name: Larry Walker

Re: Backup/Restore ESX configuration

Veeam Logoby gerdawg » Fri Jul 22, 2011 2:56 pm

Larry,

I don't know if this helps you but we were in the same boat as I have 2 Essentials bundles for 2 sites that we own for different business units so we cannot use profiles as well due to using Essentials packages. What I wound up doing was installing the VMware CLI package directly from VMWare to backup my ESXi server configurations. I then drop that configuration directly on a file server so that it get's backed up every night.

You can find the VMware CLI interface here -http://www.vmware.com/support/developer/vcli/

From there I created a text file on one of my files servers with the command (below) to backup my ESXi server files (Just so I have it documented for others on how to backup the ESXi servers).

The command is vicfg-cfgbackup.pl --server HOSTNAME --username root -s c:\temp\FILENAME.txt

This will backup all of the firmware files for ESXi. Per my understand this houses your entire configuration on the ESXi Host and you can use this to restore your configurations on the ESXi servers in case of a disaster.
gerdawg
Influencer
 
Posts: 19
Liked: never
Joined: Wed Jun 22, 2011 3:15 am
Full Name: Gerry D

Re: Backup/Restore ESX configuration

Veeam Logoby larry » Fri Jul 22, 2011 3:36 pm

thanks will test.

Will need to setup a server somewhere to test restore.
larry
Expert
 
Posts: 372
Liked: 89 times
Joined: Wed Mar 24, 2010 5:47 pm
Full Name: Larry Walker

Re: Backup/Restore ESX configuration

Veeam Logoby gerdawg » Fri Jul 22, 2011 3:50 pm

Just to further the conversation, I've actually used this to restore to a USB stick and boot from that for my VMware host, so that might also be a good test scenario for your to work from in the event of a HDD crashing that takes out one of your VMware hosts. This way you can have a few USB sticks waiting around to bring backup a host in a hurry.

Basically you would do an install to USB and then restore your configuration to that USB stick and volia! You should be able to boot from any system using that USB stick holding your configurations.


Thanks!
gerdawg
Influencer
 
Posts: 19
Liked: never
Joined: Wed Jun 22, 2011 3:15 am
Full Name: Gerry D

Re: Backup/Restore ESX configuration

Veeam Logoby Vitaliy S. » Fri Jul 22, 2011 4:11 pm

I run all my ESXi hosts from USB sticks, like it so far...
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Backup/Restore ESX configuration

Veeam Logoby larry » Fri Jul 22, 2011 6:41 pm

I like the spare USB stick, easy to test and store. thanks
larry
Expert
 
Posts: 372
Liked: 89 times
Joined: Wed Mar 24, 2010 5:47 pm
Full Name: Larry Walker

[MERGED] Idea for side functionnality

Veeam Logoby jeancharles » Tue Dec 27, 2011 10:02 am

Hello,

I am using VEEAM Backup & Replication for different clients, and am satistfied with it. I just happened to see the new Acronis VMProtect beta program, and a functionnality included is the backup of the ESXi configuration, and ability to bare metal restore an ESXi with its configuration.

Wouldn't it be possible to see to include it ?

We could use VMware PowerCLI to backup ESXi configuration, and after... well maybe it is another story.

Thank you for your replies and if it could be interesting, or ... not!

Jean-Charles
jeancharles
Enthusiast
 
Posts: 41
Liked: 3 times
Joined: Tue Dec 27, 2011 9:55 am
Full Name: Jean-Charles DEMARQUE

Re: Backup/Restore ESX configuration

Veeam Logoby jeancharles » Tue Dec 27, 2011 2:09 pm

Here is the PowerCLI command :
Code: Select all
Get-VMHost MyESXiHost | Set-VMHostFirmware -BackupConfiguration -DestinationPath C:\Temp


source: http://www.virtu-al.net/2010/01/15/powercli-scripting-esxi/

2nd shot :
Code: Select all
    $RootFolder = "C:\Support\"
    Get-VMHost | Foreach {
    Write-Host "Backing up state for $($_.Name)"
    $Date = Get-Date -f yyyy-MM-dd
    $Folder = $RootFolder + $Date + "\$($_.Name)\"
    If (-not (Test-Path $Folder)) {
        MD $Folder | Out-Null
    }
    $_ | Get-VMHostFirmware -BackupConfiguration -DestinationPath $RootFolder
    # Next line is a workaround for -DestinationPath not working correctly
    # with folder names with a - in them.
    MV ($RootFolder + "*") $Folder -ErrorAction SilentlyContinue
}


Source :
http://www.virtu-al.net/2011/02/23/backing-up-the-esxi-system-image/
jeancharles
Enthusiast
 
Posts: 41
Liked: 3 times
Joined: Tue Dec 27, 2011 9:55 am
Full Name: Jean-Charles DEMARQUE

Re: Backup/Restore ESX configuration

Veeam Logoby Gostev » Tue Dec 27, 2011 3:19 pm

Thanks for the script, might be useful for some future readers!

As Vitaly noted, these days bare metal ESXi restore for SMB begins and ends with pulling USB stick from the failed host, and plugging it into the new host. And larger deployments typically use stateless ESXi and PXE boot, since this is what VMware recommends. As such, any functionality around bare metal ESXi restores has very little value - while we at Veeam prefer to focus on features that add much value to the product. Life is too short to be spending time on questionable features ;)
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

[MERGED] Backup ESX

Veeam Logoby jbrullemans » Mon May 14, 2012 1:49 pm

Can Veeam also backup the ESX server itself? so incase of disaster i can recover an esx server?
jbrullemans
Enthusiast
 
Posts: 38
Liked: 1 time
Joined: Wed Mar 09, 2011 8:22 am
Full Name: John Brullemans

[MERGED] Hypervisor manager

Veeam Logoby csharney » Thu Nov 01, 2012 5:29 pm

Has VEEAM ever considered managing hypervisors?
You can backup and restore them all.
csharney
Lurker
 
Posts: 1
Liked: never
Joined: Thu Nov 01, 2012 5:27 pm
Full Name: Chris Harney

[MERGED] Feature Request: add ESXi configuration backup opti

Veeam Logoby cda » Mon Dec 17, 2012 12:47 pm

Hi all,
I've just search in forum posts and FAQ but I can't find an answer.

Is it possible to add an option for backing up ESXi configurations (network, datastore, and all other preferences of ESXi host) within Veaam B&R?

In case of phisical host fault it would be very useful to restore entire configuration without using scripts/CLI, just set a management IP and restore whole ESXi configuration with a click.
If you're inside a real disaster this will help a lot reducing recovery time.

This could be a good feature for this great virtual backup software.

Best regards
Thanks a lot
CDA

P.S. Sorry for my bad english.
cda
Novice
 
Posts: 8
Liked: never
Joined: Mon Dec 17, 2012 12:17 pm
Full Name: cda

Re: Backup/Restore ESX configuration

Veeam Logoby v.Eremin » Mon Dec 17, 2012 1:28 pm

Hi.

If you really want to backup and restore your ESXi configuration, the easiest way to backup ESXi configuration is doing it via vMA (Management Assistant) or vCLi, as mentioned above.

Backup procedure in case of vMA should look like this:

1. Open a console session on vMA with vi-admin
2. Add the host as target to the vMA: vifp addserver <FQDN or IP Address>
3. Enter password.
4. Set the server as target: vifptarget –s <FQDN or IP Address>
5. Save the configuration with: vicfg-cfgbackup –s /tmp/<Config_file_name>

Restore:

1.Add the host and set it as target in the vMA, just like in step 1 to 3 in the back-up procedure.
2.Restore the configuration with: vicfg-cfgbackup -f -l /tmp/<Config_File_Name>
3.Type Yes to start the restore procedure.
4.When the procedure is finished, the host will reboot with the new settings.

Hope this helps.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Next

Return to VMware vSphere



Who is online

Users browsing this forum: No registered users and 13 guests