Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is the error code I'm receiving:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1 /tmp/vagrant-chef-1/chef-solo-1/cookbooks

and this is what my Vagrantfile looks like:

Vagrant::Config.run do |config|
  config.vm.box = "ubuntu-lucid-32"

  config.vm.forward_port 80, 8080

  config.vm.share_folder "mysite.de", "/var/www/mysite.de", "../data"

  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = "/cookbooks"
    chef.add_recipe "apache2"
    chef.add_recipe "php"
    chef.add_recipe "mysql"
    chef.add_recipe "vim"
    chef.add_recipe "git"
    chef.add_recipe "openssl"
    chef.json = { :mysql_password => "whatever" }
  end
end

Extra info: I'm using OS X Lion as my host machine.

share|improve this question
    
i have exactly the same problem but only with a CentOS 5.7 x86_64.box –  rkmax Nov 29 '12 at 19:22

1 Answer 1

I was having the same problem and it turned out my chef.cookbooks_path didn't exist. In your case does a directory called '/cookbooks' exist on your host machine? Do you mean to set the path to a root level directory?

If you have a sub-directory called 'cookbooks' within the directory you're executing vagrant from, you should use this value instead (without leading slash):

chef.cookbooks_path = "cookbooks"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.