{"action":"created","issue":{"url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/48","labels_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/48/comments","events_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/48/events","html_url":"https://github.com/packer-community/packer-windows-plugins/issues/48","id":73649377,"number":48,"title":"powershell/windows-shell provisioner hangs on lengthy scripts","user":{"login":"gildas","id":56485,"avatar_url":"https://avatars.githubusercontent.com/u/56485?v=3","gravatar_id":"","url":"https://api.github.com/users/gildas","html_url":"https://github.com/gildas","followers_url":"https://api.github.com/users/gildas/followers","following_url":"https://api.github.com/users/gildas/following{/other_user}","gists_url":"https://api.github.com/users/gildas/gists{/gist_id}","starred_url":"https://api.github.com/users/gildas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gildas/subscriptions","organizations_url":"https://api.github.com/users/gildas/orgs","repos_url":"https://api.github.com/users/gildas/repos","events_url":"https://api.github.com/users/gildas/events{/privacy}","received_events_url":"https://api.github.com/users/gildas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T15:02:58Z","updated_at":"2015-05-07T09:03:01Z","closed_at":null,"body":"I have a powershell script that takes roughly 12 minutes to complete successfully.\r\nWhen I execute it through a powershell provisioner, like (in packer.json):\r\n```json\r\n {\r\n   \"type\": \"powershell\",  \"script\": \"./scripts/install-thing.ps1\",\r\n   \"elevated_user\": \"vagrant\", \r\n   \"elevated_password\": \"vagrant\"\r\n },  \r\n```\r\nPacker will at some point hang, not show any Write-Output/Write-Host the script emits, and not return anymore (I have to hit ^C to stop the build).\r\n\r\nDoes this ring a bell to anybody?\r\n\r\n- The builder does not matter, I can reproduce this in Virtualbox, VMWare, and Parallels.\r\n- I also have the same issue with the standard shell provisioner (over openssh).\r\n- I did configure winrm in the VM properly (I think), see the gist: [config-winrm.cmd](https://gist.github.com/gildas/d3a9d71ea5a9a240140a)"},"comment":{"url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/comments/99784059","html_url":"https://github.com/packer-community/packer-windows-plugins/issues/48#issuecomment-99784059","issue_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/48","id":99784059,"user":{"login":"mefellows","id":53900,"avatar_url":"https://avatars.githubusercontent.com/u/53900?v=3","gravatar_id":"","url":"https://api.github.com/users/mefellows","html_url":"https://github.com/mefellows","followers_url":"https://api.github.com/users/mefellows/followers","following_url":"https://api.github.com/users/mefellows/following{/other_user}","gists_url":"https://api.github.com/users/mefellows/gists{/gist_id}","starred_url":"https://api.github.com/users/mefellows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mefellows/subscriptions","organizations_url":"https://api.github.com/users/mefellows/orgs","repos_url":"https://api.github.com/users/mefellows/repos","events_url":"https://api.github.com/users/mefellows/events{/privacy}","received_events_url":"https://api.github.com/users/mefellows/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T09:03:00Z","updated_at":"2015-05-07T09:03:00Z","body":"No I've not had/seen that issue before but it sounds nasty. Are you able to share the details of the script you're running and/or the output of a build with the packer debug logs enabled? "}}