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.

Reply via email to