15 Commits

Author SHA1 Message Date
Tyler Bennett
eb7d7a5a67 provide flexibility in packer servers with more then one NIC,
when a packer server has more then one NIC, Packer can often
select the wrong http server using {{ .HTTPIP }}. We extend the
variables file to include an http_server_address which can be set
to the IP address of the correct NIC. This configuration propagates down
to the http_bind_address directive of the builder and the boot_command
entered on the guest VM. Adding 0.0.0.0 as a reasonable default as it
preserves comptability with packers default behavior.

This commit was required to get Packer to build the ubuntu guest
successfully in our environment

Additional Reading:
https://github.com/hashicorp/packer/issues/9973
https://www.packer.io/docs/builders/vmware/vsphere-iso#http-directory-configuration
2021-02-26 18:23:19 -06:00
Chris Long
c91b48e4bc Moving the VMX time settings, reodering JSON files 2021-01-11 17:14:12 -08:00
Jonathan Moss
55aa80294a Updated iso_name & SHA256 2020-09-27 15:27:15 -04:00
Chris Long
37911b150a Remove more references to iso_checksum_type 2020-06-26 16:58:22 -07:00
Chris Long
976b58f126 More linting errors fixed 2020-06-25 23:26:12 -07:00
Chris Long
21477e376a Fix lint errors, update packer files 2020-06-25 23:11:59 -07:00
NemoEht
be0f22417f Update to ubuntu1804_esxi.json with ssh_timeout
Added ssh_timeout of 10000 seconds (166.6667 minutes). This will keep packer from destroying the VM before it's even done with the setup process. The time can be adjusted but this helped me in the setup process.
2020-03-23 20:36:16 -07:00
Chris Long
d9ccdbb162 Merge pull request #403 from NemoEht/patch-1
Update ubuntu1804_esxi.json
2020-03-23 13:53:15 -07:00
Chris Long
7c29ef8663 Merge pull request #404 from NemoEht/patch-2
Update windows_10_esxi.json
2020-03-23 13:53:02 -07:00
NemoEht
f7eb80d836 Update windows_2016_esxi.json
Updated line 40 to use the variable in the variables.json
2020-03-23 13:42:05 -07:00
NemoEht
4e950f22f0 Update windows_10_esxi.json
Updated line 45 to use the variable in the variables.json
2020-03-23 13:41:25 -07:00
NemoEht
73b1e29a8f Update ubuntu1804_esxi.json
Updated line 55 to use the variable in the variables.json
2020-03-23 13:40:44 -07:00
ZephrFish
8d360d2193 extra comma not required 2020-03-10 20:55:42 +00:00
ZephrFish
7202a82c83 ssh_wait_time is deprecated
new option is pause_before connecting as previous is deprecated within packer https://packer.io/docs/templates/communicator.html#ssh_timeout

Also time is set to 166m by default so have flipped that to 10m to make it work :-)
2020-03-10 19:58:10 +00:00
Chris Long
4e850a5ee6 Adding final ESXI deployment code 2020-03-09 14:42:58 -07:00