Packer vcenter image creation issue.

40 views
Skip to first unread message

talha jilal

unread,
Mar 11, 2018, 12:22:42 AM3/11/18
to Packer
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 ,  
packer1.log
esi-1.2.json

Rickard von Essen

unread,
Mar 11, 2018, 12:32:47 AM3/11/18
to packe...@googlegroups.com
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


--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/1b449062-93d2-49c0-b02c-f59576910da6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages