See https://github.com/hashicorp/packer/issues/4140
On 10 July 2017 at 06:41, James Elmes <[email protected]> wrote: > It seems the post-processors LOCAL-SHELL won't run windows commands out of > the box (example below), it tries to run as a linux command as seen in the > logs. Does anyone know what i need to change to get this working for > windows? I read somewhere its using the "execute-command" option.. any help > appreciated > > "post-processors": [ > { > "type":"shell-local", > "inline":"ovftool/ovftool.exe -tt=ova > vi://root:[email protected]/VMIMAGE ovaexport1.ova" > > > 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"; > > regards > > James > > -- > 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/724d2823-9f46-46bd-926e-4f8d371d75f8%40googlegroups.com. > 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_148-OMxwberGUQaWx296te6tj%2BenENGYN1bqJAAoh2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
