Seems like it tries to chmod the script on windows. starting local command: chmod +x "C:\Users\ADMINI~1.ISS\AppData \Local\Temp\packer-shell486898063";
The problem with shell-local is that it ties the template to a host machine with certain properties (OS, tools, etc). You can try to override some of the configuration options such as execute_command but I'm not sure it will work for Windows. On Jul 6, 2017 01:12, "James Elmes" <[email protected]> wrote: > The log doesn't really say anything, see below. I am running this on a > windows machine, is there something else i need to do.. like use the > "execute-command" option? > > 2017/07/05 21:12:19 packer.exe: 2017/07/05 21:12:19 starting remote > command: ls -1p /vmfs/volumes/datastore1/output-Windows2012R2v1-2017-07 > 2017/07/05 21:12:19 ui: ==> Windows2012R2v1-2017-07: Running > post-processor: shell-local > 2017/07/05 21:12:19 ui: ==> Windows2012R2v1-2017-07 (shell-local): Post > processing with local shell script: C:\Users\ADMINI~1.ISS\AppData\ > Local\Temp\packer-shell486898063 > 2017/07/05 21:12:19 packer.exe: 2017/07/05 21:12:19 starting local > command: chmod +x > "C:\Users\ADMINI~1.ISS\AppData\Local\Temp\packer-shell486898063"; > PACKER_BUILDER_TYPE='vmware-iso' PACKER_BUILD_NAME='Windows2012R2v1-2017-07' > "C:\Users\ADMINI~1.ISS\AppData\Local\Temp\packer-shell486898063" > 2017/07/05 21:12:19 Deleting original artifact for build > 'Windows2012R2v1-2017-07' > 2017/07/05 21:12:19 packer.exe: 2017/07/05 21:12:19 opening new ssh session > 2017/07/05 21:12:19 packer.exe: 2017/07/05 21:12:19 starting remote > command: rm -rf /vmfs/volumes/datastore1/output-Windows2012R2v1-2017-07 > 2017/07/05 21:12:19 ui error: Build 'Windows2012R2v1-2017-07' errored: 1 > error(s) occurred: > > * Post-processor failed: Error executing script: > C:\Users\ADMINI~1.ISS\AppData\Local\Temp\packer-shell486898063 > > -- > 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/fd0bb126-2f6d-49a9-a2c4-2d7f3d65d2bb%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/fd0bb126-2f6d-49a9-a2c4-2d7f3d65d2bb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CALz9Rt--s8-2GLbsBc6NZUKwJNC_1CxtmX09tg%2BnHYnkAyXjBA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
