To start with there is no *vsphere-iso* builder but a *vmware-iso*

Looking at your JSON file seems you have a few parameters that are not part 
of the *vmware-iso *builder and they should be part of the vmx_data array  
under that builder

I'd recommend to read again packer documentation 
https://www.packer.io/docs/builders/vmware-iso.html   
<https://www.packer.io/docs/builders/vmware-iso.html>

Also get a JSON template you know is working to start with and then 
progress from there till it works in your environment.. 

This could be a good start

https://github.com/kaorimatz/packer-templates/blob/master/ubuntu-16.04-amd64.json
 
<https://github.com/kaorimatz/packer-templates/blob/master/ubuntu-16.04-amd64.json>

On Saturday, August 25, 2018 at 6:45:34 PM UTC+12, Konstantin Raskoshnyi 
wrote:
>
> Sorry for the late reply.
> Here's a dummy json I have.
>
> {
>   "builders": [
>     {
>       "type": "vsphere-iso",
>       "vcenter_server": "vcenter.example.com",
>       "insecure_connection": "true",
>       "username": "[email protected] <javascript:>",
>       "password": "password",
>       "datacenter": "US1",
>       "cluster": "DEV1",
>       "vm_name": "example-ubuntu",
>       "guest_os_type": "ubuntu64Guest",
>       "ssh_username": "jetbrains",
>       "ssh_password": "jetbrains",
>       "CPUs":             1,
>       "RAM":              1024,
>       "RAM_reserve_all": true,
>       "disk_size":        32768
>     }
>   ],
>   "provisioners": [
>     {
>       "type": "shell",
>       "inline": ["ls /"]
>     }
>   ]
> }
>
> vsphere-iso output will be in this color.
>
> ==> vsphere-iso: Creating VM...
> Build 'vsphere-iso' errored: unexpected EOF
>
> ==> Some builds didn't complete successfully and had errors:
> --> vsphere-iso: unexpected EOF
>
> Could it be something to do with vsphere access rights?
> I don't have full administrative access, but can create VMs etc.
>
> Thanks
>
>
> On Sat, Aug 4, 2018 at 12:07 PM Alvaro Miranda Aguilera <[email protected] 
> <javascript:>> wrote:
>
>> can you share the json template and a description on where are you 
>> building?
>>
>> ie locally on a host pc and trying to build to esxi host ? or using a 
>> plugin for vsphere?
>>
>> the more info, the better
>>
>> On Sat, Aug 4, 2018 at 9:00 AM, chic_cat <[email protected] 
>> <javascript:>> wrote:
>>
>>> Hello,
>>> I'm new to packer,
>>> Getting this error with VMware:
>>>
>>> vsphere-iso output will be in this color.
>>>
>>> Build 'vsphere-iso' errored: default datacenter resolves to multiple 
>>> instances, please specify
>>>
>>> ==> Some builds didn't complete successfully and had errors:
>>> --> vsphere-iso: default datacenter resolves to multiple instances, 
>>> please specify
>>>
>>> ==> Builds finished but no artifacts were created.
>>>
>>> Cluster is specified in json file.
>>>
>>> Any thoughts?
>>>
>>> -- 
>>> 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] <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/packer-tool/05c17f9e-a36b-40cd-b947-c279ac29a8db%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/packer-tool/05c17f9e-a36b-40cd-b947-c279ac29a8db%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Alvaro
>>
>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/CAHqq0ews_0borJbBLBEUtyb%3D7Be61GOYQmTBVn_2drwxhQ%2B5eA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ews_0borJbBLBEUtyb%3D7Be61GOYQmTBVn_2drwxhQ%2B5eA%40mail.gmail.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/2aa4583a-639a-4067-b15a-99e97edc9a6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to