安装共享文件夹时,由于SSH错误,我无法离开

这是我收到的错误代码:

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 

这就是我的Vagrantfile的样子:

 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 

额外的信息:我使用OS X Lion作为我的主机。

我有同样的问题,原来我的厨师.ookbooks_path不存在。 在你的情况下,你的主机上是否存在一个名为“/ cookbooks”的目录? 你的意思是将path设置为根目录?

如果你在目录中有一个名为“cookbooks”的子目录,你应该使用这个值来代替(不带前导斜杠):

chef.cookbooks_path =“食谱”