Hello
I backup configure Host esxi5.5 use vSphere CLI on windows to backup Host . Get file.tgz already in local my computer
vicfg-cfgbackup.pl --server=10.0.0.1 --username=root -s ESXi_test1_backup.tgz
I try to restart configure to UAT-ESXi Host running on VirtualBox but have error please help to advise.
vicfg-cfgbackup.pl --server=192.168.56.101 --username=root -l ESXi_test1_backup.tgz
I use this KB Backing up and restoring ESXi configuration using the vSphere Command-Line Interface and vSphere Pow...
Are running the command from the same directory where the configuration file is locates , if not please change the dir and give a try
Also please refer below link
Hope you are using same version of esxi if not please use "-f " .Also while backing up the serial number of system also backed up .
Not working for restoring. I try to path is restore file
Hi ,
Is this ESXi is VM or physical one . Also could you please try to restore using -F , forcefully
Hi,
It failed because the pointer is still referring to your local directory. So, please make sure your backup file ("ESXi01_backup122016.tgz") has been placed to your local directory (e.g. "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\"). Then, execute following command:
vicfg-cfgbackup.pl --server=192.168.56.101 --username=root -l "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\ESXi01_backup122016.tgz"
Esxi on VirtualBox , I try to use -f already not work
Same error
C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-cfgbackup.pl --server=192.168.56.101 --username=root -l "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\ESXi01_backup122016.tgz"
Enter password:
The restore operation will reboot the host.
Type 'yes' to continue:
yes
Uploading config bundle to configBundle.tgz ...
Performing restore ...
Restore failed: A general system error occurred: Internal error
Exiting maintenance mode ...
Never anything
C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-cfgbackup.pl --server=192.168.56.101 --username=root -f "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\ESXi01_backup122016.tgz"
Enter password:
C:\Program Files (x86)\VMware\VMware vSphere CLI>
/tmp folder is in ESXi and the KB article clearly says below
vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz
Note: Executing this command will initiate an automatic reboot of the host after command completion.
Using the vSphere PowerCLI
Note: When restoring configuration data, the build number of the host must match the build number of the host that created the backup file. Use the -force
option to override this requirement.
ESXi_host_IP_address
is the IP address of the ESXi host.ESXi_host_IP_address
is the IP address of the ESXi host, backup_file
is the name of the backup bundle to use for the restore, and username
and password
are the credentials to use when authenticating with the host.Note: From vSphere CLI for Windows, ensure you are executing the command from C:\Program Files\VMware\VMware vSphere CLI\bin and after backing up verify the backup file is available there and restoring also performing from same path . Also move host in to maintenance mode .
You have to follow the proper instructions from KB # https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=20421...
and it will work .
C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-cfgbackup.pl --server=192.168.56.101 --username=root -l "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\ESXi01_backup122016.tgz"
Enter password:
The restore operation will reboot the host.
Type 'yes' to continue:
yes
Uploading config bundle to configBundle.tgz ...
Performing restore ...
Restore failed: fault.MismatchedBundle.summary
Exiting maintenance mode ...
C:\Program Files (x86)\VMware\VMware vSphere CLI>
I update ESXi host to same build source backup already. The error is show different before.
take a backup configuration of new vm and match with old backup conf file
you may able to identify what is the exact mismatch . Or please share i can have a look on that
Hi,
You should add -f flag into your command. It should be looked like this:
vicfg-cfgbackup.pl --server=192.168.56.101 --username=root -f -l "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\ESXi01_backup122016.tgz"