unknown configuration key: "tools_upload_flavor"

27 views
Skip to first unread message

אריק אמיר

unread,
Nov 12, 2019, 10:28:26 AM11/12/19
to Packer
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

Megan Marsh

unread,
Nov 12, 2019, 11:51:19 AM11/12/19
to packe...@googlegroups.com
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. 



--
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/a8364303-d82a-4532-91bf-73e9ee9ffe3d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages