{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/3820","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/3820/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/3820/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/3820/events","html_url":"https://github.com/mitchellh/packer/issues/3820","id":172339770,"number":3820,"title":"Unable to connect to WinRM on Windows Server 2016","user":{"login":"BenHall","id":82614,"avatar_url":"https://avatars.githubusercontent.com/u/82614?v=3","gravatar_id":"","url":"https://api.github.com/users/BenHall","html_url":"https://github.com/BenHall","followers_url":"https://api.github.com/users/BenHall/followers","following_url":"https://api.github.com/users/BenHall/following{/other_user}","gists_url":"https://api.github.com/users/BenHall/gists{/gist_id}","starred_url":"https://api.github.com/users/BenHall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenHall/subscriptions","organizations_url":"https://api.github.com/users/BenHall/orgs","repos_url":"https://api.github.com/users/BenHall/repos","events_url":"https://api.github.com/users/BenHall/events{/privacy}","received_events_url":"https://api.github.com/users/BenHall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-21T20:30:26Z","updated_at":"2016-08-21T20:49:36Z","closed_at":null,"body":"```\r\n2016/08/21 22:26:02 packer: 2016/08/21 22:26:02 [INFO] Attempting WinRM connection...\r\n2016/08/21 22:26:02 packer: 2016/08/21 22:26:02 [DEBUG] connecting to remote shell using WinRM\r\n2016/08/21 22:27:17 packer: 2016/08/21 22:27:17 [ERROR] connection error: unknown error Post http://127.0.0.1:5985/wsman: read tcp 127.0.0.1:45978->127.0.0.1:5985: read: connection reset by peer\r\n2016/08/21 22:27:17 packer: 2016/08/21 22:27:17 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:5985/wsman: read tcp 127.0.0.1:45978->127.0.0.1:5985: read: connection reset by peer\r\n2016/08/21 22:27:22 packer: 2016/08/21 22:27:22 [INFO] Attempting WinRM connection...\r\n```\r\n\r\nIn the builder I've force the port to be 5985 but it doesn't seem to work\r\n```\r\n\"ssh_host_port_min\": \"5985\",\r\n\"ssh_host_port_max\": \"5985\",\r\n```\r\n\r\nI can connect to the WinRM port:\r\n```\r\nnc -z -w1 localhost 5985;echo $?\r\n0\r\n```\r\n\r\nBoot command:\r\n```\r\n2016/08/21 22:25:45 packer: 2016/08/21 22:25:45 Executing /usr/bin/qemu-system-x86_64: []string{\"-netdev\", \"user,id=user.0,hostfwd=tcp::5985-:5985\", \"-boot\", \"once=d\", \"-fda\", \"/tmp/packer032696661\", \"-m\", \"8048M\", \"-name\", \"packer-qemu\", \"-machine\", \"type=pc,accel=kvm\", \"-device\", \"virtio-net,netdev=user.0\", \"-cdrom\", \"/home/projects/packer-windows2016-standard/iso/14300.1000.160324-1723.RS1_RELEASE_SVC_SERVER_OEMRET_X64FRE_EN-US.ISO\", \"-drive\", \"file=output-qemu/packer-qemu,if=virtio,cache=writeback,discard=ignore\", \"-vnc\", \"0.0.0.0:31\", \"-cpu\", \"Westmere\"}\r\n```\r\n\r\nI'm using Packer v0.10.1.\r\n\r\nAny ideas? Instead of 127.0.0.1:45978, I expected it to use 127.0.0.1:5985"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/241281205","html_url":"https://github.com/mitchellh/packer/issues/3820#issuecomment-241281205","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/3820","id":241281205,"user":{"login":"rickard-von-essen","id":557699,"avatar_url":"https://avatars.githubusercontent.com/u/557699?v=3","gravatar_id":"","url":"https://api.github.com/users/rickard-von-essen","html_url":"https://github.com/rickard-von-essen","followers_url":"https://api.github.com/users/rickard-von-essen/followers","following_url":"https://api.github.com/users/rickard-von-essen/following{/other_user}","gists_url":"https://api.github.com/users/rickard-von-essen/gists{/gist_id}","starred_url":"https://api.github.com/users/rickard-von-essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickard-von-essen/subscriptions","organizations_url":"https://api.github.com/users/rickard-von-essen/orgs","repos_url":"https://api.github.com/users/rickard-von-essen/repos","events_url":"https://api.github.com/users/rickard-von-essen/events{/privacy}","received_events_url":"https://api.github.com/users/rickard-von-essen/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T20:49:36Z","updated_at":"2016-08-21T20:49:36Z","body":"Please supply the information requested in the issue template:\r\n- Packer version (`packer version`)\r\n- Host platform (`uname -a` etc.)\r\n- Debug log output from `PACKER_LOG=1 packer build template.json`.\r\n  Please paste this in a [gist](https://gist.github.com).\r\n- The _simplest example template and scripts_ needed to reproduce the bug.\r\n  Include these in your [gist](https://gist.github.com)."}}
{"actor":{"display_login":"rickard-von-essen"}}