I have the exact same error with vagrant 1.6.2 and vsphere 0.8.2 It will connect via winrm but this error pops up when chef provisioning. I also confirmed the recipe I was calling works if i rdp on the box and run it manually.
On Tuesday, May 13, 2014 2:02:44 PM UTC+1, Tom Deprez wrote: > > Hi, > > I'm running Vagrant 1.6.1 with Virtual box 4.3.10 on a windows 8 machine, > with a windows 2012 R2 vagrant box. > > I get this error when trying to use chef_solo: > C:\Files\vagrant\windows>vagrant provision > ==> default: Running provisioner: chef_solo... > Generating chef JSON and uploading... > ==> default: Warning: Chef run list is empty. This may not be what you > want. > ==> default: Running chef-solo... > ==> default: The command line is too long. > Chef never successfully completed! Any errors should be visible in the > output above. Please fix your recipes so that they properly complete. > > > My vagrantfile is basically this: > config.vm.box = "Windows2012_beforeupdates.box" > config.vm.hostname = "Win2012-2" > config.vm.network :forwarded_port, guest: 5985, host: 5985 > config.vm.network :forwarded_port, guest: 3389, host: 3389 > config.vm.guest = :windows > config.vm.communicator = "winrm" > config.winrm.timeout = 500 > > # Set local user details if default vagrant/vagrant isn't used > config.winrm.username = "**" > config.winrm.password = "**" > > config.vm.provision :chef_solo do |chef| > chef.cookbooks_path = "c:/chef-repo/cookbooks" > chef.roles_path = "c:/chef-repo/roles" > end > > > I know the runlist is empty, if I use a recipe it gives the same error of > "The command line is too long" and it still doesn't run. > This looks to be caused by winrm from what I can see. > > Winrm has been enabled on the box and the chef client installed. > > Full debug is too long, but here's enough of the end: > http://pastebin.com/Gx6M5dDz > > Am I doing something wrong here? > > Thanks > Tom > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
