Recent projects require the installation of VCLI on CENTOS7.
According to the official instructions, the use of pre-variant Perl module, when running error.
According to the following article, the use of CPAN, but in the installation process error, stating that the following article should be defective.
http://ephrain.pixnet.net/blog/post/62612357-%5Bvmware%5D-%E5%9C%A8-centos7-%E4%B8%8A%E5%AE%89%E8%A3% 9d-vmware-vsphere-cli-(VCLI)-%e6%93%8d
After n many days to try, finally succeeded
Environment:
OS:
Centos-7-x86_64-dvd_1511.iso
Server Install
Delveopment Tool
Legacy Library
VCLI installation Package
Vmware-vsphere-cli-6.0.0-2503617.x86_64.tar.gz
Process
Upload the Vmware-vsphere-cli-6.0.0-2503617.x86_64.tar to the/root.
Yum install-y openssl-devel Libuuid-devel
Yum Install-y cpan
Yum install-y openssl-devel libuuid-devel perl-yaml perl-devel-checklib gcc Perl-cpan
CPAN devel::stacktrace Class::D ata::inheritable convert::asn1 crypt::openssl::rsa crypt::x509 Exception::Class UUID:: Random archive::zip path::class try::tiny class::methodmaker UUID Data::D UMP soap::lite LWP::P rotocol::https Socket6 IO: : Socket::inet6 net::inet6glue JSON::P p mime::base64
Yum Install Perl-module-build
CPAN install-f Gnupg::interface
CPAN Install Fatal
Cpan-i gaas/libwww-perl-5.837.tar.gz
TAR-XVF vmware-vsphere-cli-6.0.0-2503617.x86_64.tar.gz
CD vmware-vsphere-cli-distrib/
./vmware-install.pl Eula_agreed=yes
#一定要选no, do not install your own Perl module
No
Then several times the carriage return plus the long wait. After the installation is done
You can run a command similar to the following to see if a virtual machine can be listed
vmware-cmd-u [email protected]-p [email protected]-H 192.168.40.20-h $192.168.40.11-l
Install VMware vSphere CLI (vcli) on CentOS7