Strange filename vmware-vmx is producing

19 views
Skip to first unread message

andr...@gmail.com

unread,
Aug 15, 2017, 12:51:15 AM8/15/17
to Packer
Hello,

This is how the vmx file name packer produced looks like:




The packer json file does NOT contain substring "timestamp". Is this a packer bug?

Note this is the packer template:

{
  "builders": [
        {
            "name":"windows-2012-sql2014express",
            "type":"vmware-vmx",
            "source_path":"stage\\packer-windows-2012-base.vmx",
            "output_directory": "vm-template-windows-2012-sql2014express",
            "headless":false,
            "boot_wait":"2m",
            "shutdown_command":"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
            "vnc_port_min":5900,
            "vnc_port_max":5980,
            "communicator":"winrm",
            "winrm_username":"vagrant",
            "winrm_password":"vagrant",
            "winrm_port":"5985",
            "winrm_timeout":"30m",
            "skip_compaction":"true",            
            "vmx_data":{
                "RemoteDisplay.vnc.enabled":"true",
                "RemoteDisplay.vnc.port":"5900",
                "memsize":"2048",
                "numvcpus":"1",
                "scsi0.virtualDev":"lsisas1068"
            }
        }
  ],
  "provisioners": [
    {
      "type": "powershell",
      "valid_exit_codes": [ 0, 3010 ],
      "execute_command": "powershell.exe -NoProfile \"if (Test-Path variable:global:ProgressPreference){`$ProgressPreference='SilentlyContinue'}; & '{{.Path}}';exit `$LastExitCode\"; exit $LastExitCode",
      "scripts": [
        "./scripts/AddDisk.ps1",
        "./scripts/InstallSql2014.ps1"
      ]
    }
  ]
}



Cheers,
Andrew

Rickard von Essen

unread,
Aug 15, 2017, 1:38:06 AM8/15/17
to packe...@googlegroups.com
This is a default value from this line

Unfortunately the template value is not interpolated. That is a bug. 

It would be great if you could report this at https://github.com/hashicorp/packer

/ Rickard 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/2da6c4ab-ee84-4a2f-8378-3077c7fb4bfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages