vmware-iso

514 views
Skip to first unread message

chic_cat

unread,
Aug 4, 2018, 3:00:27 AM8/4/18
to Packer
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?

chic_cat

unread,
Aug 4, 2018, 3:14:22 AM8/4/18
to Packer
I added datacenter to json.

Now it showing this error:

==> Some builds didn't complete successfully and had errors:
--> vsphere-iso: unexpected EOF

==> Builds finished but no artifacts were created.

We're running vmware 6.0 clusters.

Thanks

Rickard von Essen

unread,
Aug 4, 2018, 3:16:28 AM8/4/18
to packe...@googlegroups.com
Start by verifying that you can build it locally, when that works. Show us the template you are using and the error message you get.

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/eeafc691-10b6-40fe-9159-508658dc49ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alvaro Miranda Aguilera

unread,
Aug 4, 2018, 3:07:37 PM8/4/18
to packe...@googlegroups.com
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

--
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/05c17f9e-a36b-40cd-b947-c279ac29a8db%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Konstantin Raskoshnyi

unread,
Aug 25, 2018, 2:45:34 AM8/25/18
to packe...@googlegroups.com
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": "ro...@example.com",
      "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 <kik...@gmail.com> 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 <krask...@gmail.com> 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 packer-tool...@googlegroups.com.



--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ews_0borJbBLBEUtyb%3D7Be61GOYQmTBVn_2drwxhQ%2B5eA%40mail.gmail.com.

Alvaro Miranda Aguilera

unread,
Sep 5, 2018, 4:56:00 AM9/5/18
to packe...@googlegroups.com
hello

share a debug run please

PACKER_LOG=1 packer build ..

Thanks



For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Message has been deleted

Gabo Kete

unread,
Sep 5, 2018, 6:56:24 PM9/5/18
to Packer
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  

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

Rickard von Essen

unread,
Sep 6, 2018, 12:58:41 AM9/6/18
to packe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages