The ESXi machine (192.168.2.50) you are trying to run on don't have the esxcli command installed, which seems broken. SSH into the machine with the same credentials and check that you can run "esxcli -h", see https://pubs.vmware.com/vsphere-50/index.jsp#com.vmware.vcli.ref.doc_50/vcli-right.html
On 11 March 2018 at 06:22, talha jilal <[email protected]> wrote: > Hello All, > > This is my second thread regarding my vmware template creation. > > What I am doing. > > 1- Trying to create vmware template from centos 7 iso image. > 2- Laptop with packer 1.2 > 3- esxi.json file attached. > 4- error.logs attached. > 5- esx version ( 5.1 ) > 6- vcenter version ( 6) > > > Any help suggestion > > > > Windows CLI console : > > > packer build esi-1.2.json > vmware-iso output will be in this color. > > Build 'vmware-iso' errored: Failed creating VMware driver: Unable to > initialize any driver for this platform. The errors > from each driver are shown below. Please fix at least one driver > to continue: > * 'esxcli --formatter csv system version get' > > Stdout: > > Stderr: bash: esxcli: command not found > > > > ==> Some builds didn't complete successfully and had errors: > --> vmware-iso: Failed creating VMware driver: Unable to initialize any > driver for this platform. The errors > from each driver are shown below. Please fix at least one driver > to continue: > * 'esxcli --formatter csv system version get' > > Stdout: > > Stderr: bash: esxcli: command not found > > > > > Thanks , > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/1b449062-93d2-49c0-b02c-f59576910da6%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/1b449062-93d2-49c0-b02c-f59576910da6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-di6ywdqWaC%3DYcQFciU6-Lrcwwa%3D%2BfLBYsBeP7EqDcXQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
