{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/packer/issues/5220","repository_url":"https://api.github.com/repos/hashicorp/packer","labels_url":"https://api.github.com/repos/hashicorp/packer/issues/5220/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/packer/issues/5220/comments","events_url":"https://api.github.com/repos/hashicorp/packer/issues/5220/events","html_url":"https://github.com/hashicorp/packer/issues/5220","id":248056017,"number":5220,"title":"Chef-solo provisioning on Windows","user":{"login":"Chan9390","id":12944530,"avatar_url":"https://avatars3.githubusercontent.com/u/12944530?v=4","gravatar_id":"","url":"https://api.github.com/users/Chan9390","html_url":"https://github.com/Chan9390","followers_url":"https://api.github.com/users/Chan9390/followers","following_url":"https://api.github.com/users/Chan9390/following{/other_user}","gists_url":"https://api.github.com/users/Chan9390/gists{/gist_id}","starred_url":"https://api.github.com/users/Chan9390/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chan9390/subscriptions","organizations_url":"https://api.github.com/users/Chan9390/orgs","repos_url":"https://api.github.com/users/Chan9390/repos","events_url":"https://api.github.com/users/Chan9390/events{/privacy}","received_events_url":"https://api.github.com/users/Chan9390/received_events","type":"User","site_admin":false},"labels":[{"id":33051538,"url":"https://api.github.com/repos/hashicorp/packer/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":126941967,"url":"https://api.github.com/repos/hashicorp/packer/labels/provisioner/chef","name":"provisioner/chef","color":"bfd4f2","default":false},{"id":95839186,"url":"https://api.github.com/repos/hashicorp/packer/labels/windows-guest","name":"windows-guest","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-08-04T16:32:15Z","updated_at":"2017-12-09T15:29:42Z","closed_at":null,"author_association":"NONE","body":"**Chef solo isn't installing on Windows Server 2008 R2**. Other provisioning like shell and powershell are working fine, but when it comes to chef-solo provisioning, the **inbuilt installation script gets stuck**.\r\n\r\nI tried the following workarounds:\r\n- Overriding the inbuilt command with `install_command`. Doesnt work\r\n- Have a shell provisioning with installation command. Doesnt work\r\n- Have a powershell provisioning with installation command. Doesnt work\r\n\r\nThe guest VM is *Windows Server 2008 R2*. It has dotNet 4.5 and Windows Management Framework 5.0 installed (Powershell v5 is present).\r\n\r\n- Packer version : Tested with 1.0.0 and 1.0.3\r\n- Host platform : Ubuntu 16.04\r\n- End output from logs:\r\n  ```\r\n  2017/08/04 21:10:01 [INFO] (telemetry) Starting provisioner chef-solo\r\n  2017/08/04 21:10:01 ui: ==> virtualbox-iso: Provisioning with chef-solo\r\n  2017/08/04 21:10:01 ui:     virtualbox-iso: Installing Chef...\r\n  2017/08/04 21:10:01 packer: 2017/08/04 21:10:01 opening new ssh session\r\n  2017/08/04 21:10:01 packer: 2017/08/04 21:10:01 starting remote command: powershell.exe -Command \". { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; Install-Project\"\r\n  2017/08/04 21:10:22 ui:     virtualbox-iso:\r\n  2017/08/04 21:10:22 ui:     virtualbox-iso: ModuleType Version    Name                                ExportedCommands\r\n  2017/08/04 21:10:22 ui:     virtualbox-iso: ---------- -------    ----                                ----------------\r\n  2017/08/04 21:10:22 ui:     virtualbox-iso: Script     0.0        Omnitruck                           {Get-ProjectMetada...\r\n  ```\r\n\r\n- Provisioning script:\r\n  ```\r\n    {\r\n      \"type\": \"chef-solo\",\r\n      \"guest_os_type\": \"windows\",\r\n      \"cookbook_paths\": [\"chef/cookbooks\"],\r\n      \"run_list\": [\r\n        \"recipe[metasploitable::root_certs]\",\r\n        \"recipe[metasploitable::vagrant_ssh]\",\r\n        \"recipe[metasploitable::disable_auto_logon]\",\r\n        \"recipe[metasploitable::enable_rdp]\"\r\n      ]\r\n    },\r\n  ```\r\n\r\nLook at the entire script [here](https://github.com/rapid7/metasploitable3/blob/windows_chef/windows_2008_r2.json).\r\n  \r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/packer/issues/comments/350478423","html_url":"https://github.com/hashicorp/packer/issues/5220#issuecomment-350478423","issue_url":"https://api.github.com/repos/hashicorp/packer/issues/5220","id":350478423,"user":{"login":"Chan9390","id":12944530,"avatar_url":"https://avatars3.githubusercontent.com/u/12944530?v=4","gravatar_id":"","url":"https://api.github.com/users/Chan9390","html_url":"https://github.com/Chan9390","followers_url":"https://api.github.com/users/Chan9390/followers","following_url":"https://api.github.com/users/Chan9390/following{/other_user}","gists_url":"https://api.github.com/users/Chan9390/gists{/gist_id}","starred_url":"https://api.github.com/users/Chan9390/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chan9390/subscriptions","organizations_url":"https://api.github.com/users/Chan9390/orgs","repos_url":"https://api.github.com/users/Chan9390/repos","events_url":"https://api.github.com/users/Chan9390/events{/privacy}","received_events_url":"https://api.github.com/users/Chan9390/received_events","type":"User","site_admin":false},"created_at":"2017-12-09T15:29:42Z","updated_at":"2017-12-09T15:29:42Z","author_association":"NONE","body":"@SwampDragons @mwhooker  Any updates ?"}}
{"actor":{"display_login":"Chan9390"}}