yah.. What I finally ended up doing was writing a script to winrm the files from the new VM and calling that from the local-shell provisioner. Unfortunately I was not able to find a way to pass the vagrant NAT port to the local-shell provisioner so I had hardcode the port (setting ssh_host_port_min and ssh_host_port_max to the value, so I am no longer able to build more then one host at a time using the same template, but I can live with that
On Friday, September 9, 2016 at 5:51:44 AM UTC-4, Malte Witt wrote: > > I am facing the exact same issue right now trying to download a file, > using WinRM communicator. > > I had no luck using local shell provisioner on windows in the past, so if > you figure out a way to work around this issue, please share your solution > here :-) > > Thanks, > Malte > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/18ad8acd-b6f3-4179-8a6c-598bf1474d84%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.