text:  {
    "variables": {
      "vm_name": "windows2016",
      "cpu": "2",
      "ram_size": "2048",
      "disk_size": "41440",
      "iso_url": "http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO",
      "iso_checksum_type": "sha1",
      "iso_checksum": "3BB1C60417E9AEB3F4CE0EB02189C0C84A1C6691",  
      "vsphere_host": "{{env `vsphere_host`}}",
      "vsphere_datacenter": "{{env `vsphere_datacenter`}}",
      "vsphere_cluster": "{{env `vsphere_cluster`}}",
      "vsphere_resource_pool": "{{env `vsphere_resource_pool`}}",
      "vsphere_datastore": "{{env `vsphere_datastore`}}",
      "vsphere_cache_datastore": "{{env `vsphere_datastore`}}",
      "vsphere_cache_directory": "iso_cache",
      "vsphere_vm_network": "{{env `vsphere_vm_network`}}",
      "vsphere_username": "{{env `vsphere_username`}}",
      "vsphere_password": "{{env `vsphere_password`}}",
      "vsphere_ethernet0_dvs_switch_id":"50 21 6c c7 55 a8 c0 ef-e3 64 b4 cd bc 81 c4 a3",
      "vsphere_ethernet0_dvs_portgroup_id" : "dvportgroup-152",      
      "username" : "vagrant",
      "password" : "vagrant"
    },
    "builders": [
    {
      "vm_name":"{{user `vm_name`}}",
      "output_directory": "output-{{user `vm_name`}}",
      "remote_type":"esx5",
      "remote_host":"{{user `vsphere_cluster`}}",
      "remote_datastore":"{{user `vsphere_datastore`}}",
      "remote_cache_datastore":"{{user `vsphere_cache_datastore`}}",
      "remote_cache_directory":"{{user `vsphere_cache_directory`}}",
      "remote_username":"{{user `vsphere_username`}}",
      "remote_password": "{{user `vsphere_password`}}",
      "type": "vmware-iso",
      "boot_wait": "5s",
      "disk_size": "{{user `disk_size`}}",
      "disk_type_id": "thin",
      "floppy_files": [
        "./windows/windows-2016-serverstandard-amd64/autounattend.xml",
        "./windows/windows-2016-serverstandard-amd64/sysprep-unattend.xml",
        "./windows/common/variables.ps1",
        "./windows/common/set-power-config.ps1",
        "./windows/common/microsoft-updates.ps1",
        "./windows/common/win-updates.ps1",
        "./windows/common/run-sysprep.ps1",
        "./windows/common/run-sysprep.cmd",
        "./windows/common/enable-winrm.ps1",
        "./windows/common/enable-winrm.task.ps1",
        "./windows/common/fixnetwork.ps1",
        "./windows/common/Set-ClientWSUSSetting.ps1",
        "./windows/common/Set-ClientWSUSSetting.task.ps1",
        "./windows/common/elevate.exe",
        "./windows/common/sdelete.exe",
        "./windows/common/sdelete.ps1",	  
        "./windows/common/vmware/drivers/pvscsi64",
        "./windows/common/vmware/drivers/vmxnet3"
      ],
      "guest_os_type": "windows8srv-64",
      "headless": false,
      "disable_vnc": true,
      "iso_url": "{{user `iso_url`}}",
      "iso_checksum_type": "{{user `iso_checksum_type`}}",
      "iso_checksum": "{{user `iso_checksum`}}",
      "communicator":"winrm",
      "winrm_username": "{{user `username`}}",
      "winrm_password": "{{user `password`}}",
      "winrm_timeout": "4h",
      "shutdown_command": "a:\\run-sysprep.cmd",   
      "skip_compaction": false,
      "vmx_data": {
        "gui.fitguestusingnativedisplayresolution": "FALSE",
        "memsize": "{{user `ram_size`}}",
        "numvcpus": "{{user `cpu`}}",
        "virtualhw.productcompatibility" : "esx",
        "virtualHW.version": "10",
        "scsi0.virtualDev": "pvscsi",
        "ethernet0.virtualDev": "vmxnet3",
        "ethernet0.present": "TRUE",
        "ethernet0.connectionType":"bridged",
        "ethernet0.startConnected" : "TRUE",
        "ethernet0.dvs.switchId":"{{user `vsphere_ethernet0_dvs_switch_id`}}",
        "ethernet0.dvs.portgroupId" : "{{user `vsphere_ethernet0_dvs_portgroup_id`}}"
      },
      "vmx_data_post": {
        "ide0:0.startConnected": "FALSE",
        "ide0:1.startConnected": "FALSE",
        "ide1:0.startConnected": "FALSE",
        "ide1:1.startConnected": "FALSE",
        "ide0:0.deviceType": "cdrom-raw",
        "ide0:1.deviceType": "cdrom-raw",
        "ide1:0.deviceType": "cdrom-raw",
        "ide1:1.deviceType": "cdrom-raw",
        "ide0:0.clientDevice": "TRUE",
        "ide0:1.clientDevice": "TRUE",
        "ide1:0.clientDevice": "TRUE",
        "ide1:1.clientDevice": "TRUE",
        "ide0:0.present": "FALSE",
        "ide0:1.present": "FALSE",
        "ide1:0.present": "TRUE",
        "ide1:1.present": "FALSE",
        "ide0:0.fileName": "emptyBackingString",
        "ide0:1.fileName": "emptyBackingString",
        "ide1:0.fileName": "emptyBackingString",
        "ide1:1.fileName": "emptyBackingString"
      }
    }],
    "provisioners": [{
      "type": "powershell",
      "elevated_user": "{{user `username`}}",
      "elevated_password": "{{user `password`}}",
      "scripts": [
        "./windows/common/install-7zip.ps1",
        "./windows/common/install-vmware-tools.ps1",    
        "./windows/common/install-chef.ps1",
        "./windows/common/install-openssh.ps1",
        "./windows/common/install-sshkey.ps1",
        "./windows/common/compile-dotnet-assemblies.ps1",
        "./windows/common/cleanup.ps1",
        "./windows/common/ultradefrag.ps1",
        "./windows/common/optimize-drive.ps1",
        "./windows/common/sdelete.ps1"     
      ]
    }],
    "post-processors": [
    ]
  }