VMware Cloud Community
thenightfly
Enthusiast
Enthusiast
Jump to solution

Can not backup ESXi

Dear Members!

Please take a look and try to advise in the following situation:

I have my ESXi I can connect via POWERCli or CMD but can not backup it.
None of the solutions works what I found on the Internet:

via PowerCLI:

PowerCLI C:\> Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -DestinationPath c:\

Get-VMHostFirmware : 3/5/2019 3:14:41 PM        Get-VMHostFirmware              An exception occurred during a WebClient request.

At line:1 char:1

+ Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -Destina ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-VMHostFirmware], ViError

    + FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_BackupVmHostFirmware_DownloadError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetVMHostFirmware

PowerCLI C:\>

via CMD:

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server -s 192.168.99.2 ESXibackup.tgz

Enter username: root

Enter password:

Server version unavailable at 'https://localhost:443/sdk/vimService.wsdl' at C:/Program Files (x86)/VMware/VMware vSphere CLI/Perl/lib/VMware/VICommon.pm line 726, <STDIN> line 2.


C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>

Tags (3)
1 Solution

Accepted Solutions
thenightfly
Enthusiast
Enthusiast
Jump to solution

So, what I had to do: (for others who's having the same issue:)

update PowerCLI via PowerShell:

Install-Module -Name VMware.PowerCLI

set InvalidCertification skip:

Set-PowerCLIConfiguration -InvalidCertificateAction ignore -confirm:$false

Connect:

Connect-VIServer 192.168.99.2

Backup to folder:

Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -DestinationPath c:\Temp

now it's working.

View solution in original post

0 Kudos
4 Replies
a_p_
Leadership
Leadership
Jump to solution

Which ESXi, PowerCLI, and vCLI version/build do you use?

On what host OS (version/build) do you run these commands?

André

0 Kudos
thenightfly
Enthusiast
Enthusiast
Jump to solution

Dear a.p.

PowerCLI

2019-03-06 08_58_25-VMware PowerCLI 6.5 Release 1 build 4624819.jpg

vSphereCLI

2019-03-06 09_00_06-Programs and Features.jpg

ESXi's are:

2019-03-06 09_01_27-localhost.localdomain - VMware ESXi.jpg

and:

2019-03-06 09_02_39-192.168.1.254 - Remote Desktop Connection.jpg

none of them are working.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

You are running very old versions.

The installed PowerCLI version doesn't support ESXi 6.5 Update 1

see VMware Product Interoperability Matrices

André

thenightfly
Enthusiast
Enthusiast
Jump to solution

So, what I had to do: (for others who's having the same issue:)

update PowerCLI via PowerShell:

Install-Module -Name VMware.PowerCLI

set InvalidCertification skip:

Set-PowerCLIConfiguration -InvalidCertificateAction ignore -confirm:$false

Connect:

Connect-VIServer 192.168.99.2

Backup to folder:

Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -DestinationPath c:\Temp

now it's working.

0 Kudos