VMware Cloud Community
tperovic
Contributor
Contributor

vCLI: Can't locate XML/LibXML.pm

Trying to backup a standalone vSphere host from a Windows 10 workstation. Found this:

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=20421...

Says to use the vSphere CLI. Downloaded and installed v6.5. Downloaded and installed Perl from Perl Solutions | ActiveState.


vicfg-cfgbackup.pl --server=myserver --username=root -s myserver.bak


Got:


Can't locate XML/LibXML.pm in @INC (you may need to install the XML::LibXML module)

(@INC contains: C:\Program Files\VMware\VMware vSphere CLI\Perl\lib C:/Perl/site/lib C:/Perl/lib .) at C:\Program Files\VMware\VMware vSphere CLI\Perl\lib/VMware/VICommon.pm line 11.

BEGIN failed--compilation aborted at C:\Program Files\VMware\VMware vSphere CLI\Perl\lib/VMware/VICommon.pm line 11.

Compilation failed in require at C:\Program Files\VMware\VMware vSphere CLI\Perl\lib/VMware/VIRuntime.pm line 15.

Compilation failed in require at C:\Program Files\VMware\VMware vSphere CLI\bin\vicfg-cfgbackup.pl line 6.

BEGIN failed--compilation aborted at C:\Program Files\VMware\VMware vSphere CLI\bin\vicfg-cfgbackup.pl line 6.

C:\Program Files\VMware\VMware vSphere CLI\Perl\lib contains two folders:

VMware

WSMan

C:\Perl\lib contains a folder called XML but it does not contain LibXML.pm.

Never used Perl but clearly something didn't get installed because LibXML.pm is nowhere to be found.

Found XML-LibXML-2.0128.tar.gz on The CPAN Search Site - search.cpan.org. Unpacked it.

Now what?

How do I install this?

Why wasn't this installed?

Is this the ONLY way to backup a vSphere host?

Don't they test these installers on prisoners before posting them?


Tony Perovic

Compumation, Inc.

2 Replies
tperovic
Contributor
Contributor

To hell with Perl and LibXML. I downloaded and installed PowerCLI on my W10 workstation and backed up my standalone host configuration using:

Get-VMHostFirmware -VMHost myserver -BackupConfiguration -DestinationPath C:\MyPath

TP

ShawnHagan
Contributor
Contributor

Try this link.  It will show you how to install that module: https://stackoverflow.com/questions/14563367/how-to-install-xmllibxml-on-windows

Reply
0 Kudos