{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/6417","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6417/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6417/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6417/events","html_url":"https://github.com/mitchellh/vagrant/issues/6417","id":112320616,"number":6417,"title":"'chef_install' capability  not working and aws windows","user":{"login":"psimonovsk","id":2189339,"avatar_url":"https://avatars.githubusercontent.com/u/2189339?v=3","gravatar_id":"","url":"https://api.github.com/users/psimonovsk","html_url":"https://github.com/psimonovsk","followers_url":"https://api.github.com/users/psimonovsk/followers","following_url":"https://api.github.com/users/psimonovsk/following{/other_user}","gists_url":"https://api.github.com/users/psimonovsk/gists{/gist_id}","starred_url":"https://api.github.com/users/psimonovsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psimonovsk/subscriptions","organizations_url":"https://api.github.com/users/psimonovsk/orgs","repos_url":"https://api.github.com/users/psimonovsk/repos","events_url":"https://api.github.com/users/psimonovsk/events{/privacy}","received_events_url":"https://api.github.com/users/psimonovsk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T09:11:08Z","updated_at":"2015-11-08T02:37:12Z","closed_at":"2015-11-08T02:37:12Z","body":"Hi.\r\nI have quite simple Vagrantfile, that actually do almost nothing - but run chef-solo test recipe.\r\nProvider is aws. Those vagrant job have to launch aws windows machine 9from standard aws win2012 ami) and run chef-solo recipe that actually creates file. That is all\r\nVagrant file:\r\n\r\n```ruby\r\nrequire File.expand_path('aws\\\\aws_credentials.rb')\r\n\r\nVagrant.configure(\"2\") do |config|\r\n\tconfig.vm.guest = :windows\r\n\tconfig.vm.communicator = :winrm\r\n\tconfig.vm.synced_folder \".\", \"/vagrant\", type: \"winrm\", :disabled => true\r\n\tconfig.vm.box_url = \"https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box\"\r\n\tconfig.vm.box = \"dummy\"\r\n\t# Admin user name and password\r\n    config.winrm.username = \"vagrant\"\r\n    config.winrm.password = \"Pass@123\" \r\n\t#config.winrm.password = \"vagrant\" \r\n \tconfig.nfs.functional = false\r\n\t\r\n\t\r\n\tconfig.vm.provider :aws do |aws, override|\r\n\t\taws.user_data = File.read(\"aws\\\\Setup.txt\")\r\n\t\taws.tags = {\r\n\t\t  'Name' => @aws_machine_name,\r\n\t\t}\r\n\t\taws.access_key_id=@access_key_id\r\n\t\taws.secret_access_key=@secret_access_key\r\n\t\taws.keypair_name=@keypair_name\r\n\t\taws.ami=@ami\r\n\t\taws.region=@region\r\n\t\taws.instance_type=@instance_type\r\n\t\taws.security_groups= [ @security_groups ]\r\n\tend\r\n\t\r\n\tconfig.vm.provision :chef_solo do |chef| \r\n\t\tchef.synced_folder_type = \"winrm\" \r\n\t\tchef.add_recipe(\"Control-M::touch_file\")\r\n\t\t#chef.add_recipe(\"vim-windows\")\r\n\tend\t\r\nend\r\n```\r\n\r\nWhat I get is:\r\n\r\n```\r\n==> default: Running provisioner: chef_solo...\r\n    default: Installing Chef (latest)...\r\nVagrant attempted to execute the capability 'chef_install'\r\non the detect guest OS 'windows', but the guest doesn't\r\nsupport that capability. This capability is required for your\r\nconfiguration of Vagrant. Please either reconfigure Vagrant to\r\navoid this capability or fix the issue by creating the capability.\r\n```\r\n\r\nThat means - when creating windows aws machine, internal vagrant function \"chef_install\" do not work...\r\nI have to mention - exactly same Vagrantfile but launching aws redhat image (after appropriate fix of file pathes syntax to UNIX convention - works like a charm... Installs chef client and runs cookbook with no any problems..."},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/154771394","html_url":"https://github.com/mitchellh/vagrant/issues/6417#issuecomment-154771394","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6417","id":154771394,"user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T02:37:12Z","updated_at":"2015-11-08T02:37:12Z","body":"Duplicate of https://github.com/mitchellh/vagrant/issues/6306"}}