Hi! The vsphere-iso builder (a third party builder created and currently
supported by jetbrains: docs can be found here:
https://github.com/jetbrains-infra/packer-builder-vsphere) is not the same
as the vmware-iso builder, which is shipped with the Packer binary.
"tools_upload_flavor" is a vmware-iso option, but you're using the
vsphere-iso builder in your template. You'll have to either switch to using
the vmware-iso builder, or make sure to only use options supported by the
vsphere-iso builder.



‪On Tue, Nov 12, 2019 at 7:28 AM ‫אריק אמיר‬‎ <[email protected]> wrote:‬

> trying to create a packer template which will generate a VMware template
> on my vcenter cluster, the template uploads and installs the iso but get
> stuck waiting for an IP address
> I notices that after installing VMTools it gets the IP address and
> continues
> I am having trouble setting up VMTools on the installed OS, tried adding
> tools_upload_flavor but I am getting *unknown configuration key:
> "tools_upload_flavor"* when I try to build with this option and cannot
> figure out what am I missing
>
> {
>     "variables": {
>         "vcenter": "",
>         "username": "",
>         "password": "",
>         "vm_name": "example-windows",
>         "cluster": "",
>         "host": "",
>         "datastore": "",
>         "network": "",
>         "iso": "D:/ISOs/Windows2012R2_Dell_Server_OS_3.0.0.1.ISO",
>         "iso_checksum": "Windows2012R2_Dell_Server_OS_3.0.0.1.md5.txt",
>         "iso_checksum_url":
> "D:/ISOs/Windows2012R2_Dell_Server_OS_3.0.0.1.md5.txt"
>
>     },
>     "builders": [
>             {
>                 "type": "vsphere-iso",
>                 "tools_upload_flavor": "windows",
>                 "vcenter_server": "{{user `vcenter` }}",
>                 "username": " {{user `username` }}",
>                 "password": "{{user `password`}}",
>                 "insecure_connection": "true",
>                 "vm_name": "{{user `vm_name`}}",
>                 "convert_to_template": "true",
>                 "guest_os_type": "windows9_64Guest",
>                 "cluster": "{{user `cluster`}}",
>                 "host": "{{user `host`}}",
>                 "datastore": "{{user `datastore`}}",
>                 "network": "{{user `network` }}",
>                 "communicator": "winrm",
>                 "winrm_username": "Administrator",
>                 "winrm_password": "{{user `password`}}",
>                 "CPUs": 4,
>                 "RAM": 16384,
>                 "RAM_reserve_all": true,
>                 "disk_controller_type": "lsilogic-sas",
>                 "disk_size": 307200,
>                 "disk_thin_provisioned": true,
>                 "network_card": "e1000e",
>                 "boot_wait": "1m",
>                 "iso_urls": [
>                     "{{user `iso`}}",
>                     "{{user `vmtools_path`}}"
>                 ],
>                 "floppy_files": [
>                     "setup/setup.ps1",
>                     "setup/vmtools.cmd"
>                 ],
>                 "iso_checksum": "",
>                 "iso_checksum_type": "none",
>                 "iso_checksum_url": "",
>                 "boot_command": [ "<tab><tab><wait><enter>" ]
>         }
>     ]
>
> }
>
> Kind Regards
> Arik Amir
>
> --
> 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/a8364303-d82a-4532-91bf-73e9ee9ffe3d%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/a8364303-d82a-4532-91bf-73e9ee9ffe3d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAGPV1uq%2Bido6jBmFvjfF8pSfxkc%2BY9R%3DyfYafTgzpE9Nx-j3mQ%40mail.gmail.com.

Reply via email to