I have tried this but it doesn't work, just "error running script"
the ovftool command needs to be run in CMD.EXE i believe, the below is what it looks like C:\PACKER\packer_config>ovftool -tt=ova vi:// root:[email protected]/Windows2012R2v1-2017-07 <http://root:[email protected]/Windows2012R2v1-2017-07> ovaexport1.ova Opening VI source: vi://[email protected]:443/Windows2012R2v1-2017-07 Opening OVA target: ovaexport1.ova Writing OVA package: ovaexport1.ova Disk progress: 2% I have tried the below "type":"shell-local", "execute_command": "cmd.exe {{.Script}}.cmd", "inline": ["ovftool.exe -tt=ova vi://root: <http://root:[email protected]/Windows2012R2v1-2017-07> root:[email protected] <http://root:[email protected]/Windows2012R2v1-2017-07> /Windows2012R2v1-2017-07 ovaexport12.ova"] AND "type":"shell-local", "execute_command": "Powershell.exe Move-Item {{.Script}} {{.Script}}.ps1; cmd.exe {{.Script}}.cmd", "inline": ["ovftool.exe -tt=ova vi://root: <http://root:[email protected]/Windows2012R2v1-2017-07> root:[email protected] <http://root:[email protected]/Windows2012R2v1-2017-07> /Windows2012R2v1-2017-07 ovaexport12.ova"] AND "type":"shell-local", "execute_command": "cmd.exe /c {{.Script}}", "script": "ovftool/ovftool_command.cmd" I get the below result, furthermore i never actually see this file get created.. which me be part of the puzzle.. ==> null: Running post-processor: shell-local ==> null (shell-local): Post processing with local shell script: C:\Users\ADMINI~1.ISS\AppData\Local\Temp\packer-shell35 9109543 Build 'null' errored: 1 error(s) occurred: OR ==> null: Running post-processor: shell-local ==> null (shell-local): Post processing with local shell script: scripts/ovftool_command.cmd Build 'null' errored: 1 error(s) occurred: * Post-processor failed: Error executing script: scripts/ovftool_command.cmd any idea how to run a .CMD guys? -- 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/de3eaf80-5e2b-4fc7-9073-026fb621e42e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
