Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I probably got the whole concept wrong: I have a working Vagrant VM with Ubuntu 12.04, on top of it I want to install a few packages and config files. I have them set in Chef, in the path cookbooks/my_project/recipes I have a vagrant-dev.rb file with all the instructions. Now my Vagrant config in Vagrantfile must be the problem here:

config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = "cookbooks/my_project/recipes"
    chef.add_recipe "vagrant-dev.rb"

and when I load the VM I get

FATAL: Chef::Exceptions::CookbookNotFound: Cookbook vagrant-dev.rb not found.

I tried without the .rb at the end. I guess it's a completely different matter and I'm not using it the correct way. But after searching I couldn't find anything that explained how to do it properly.

share|improve this question

Try removing the /my_project/recipes from cookbooks_path.

share|improve this answer
Welcome to Superuser, please be aware 1 line answers a commonly frowned upon :( please consider elaborating on your answer – 50-3 Oct 17 '13 at 0:39

Your Answer


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.