Vagrant + Chef:配置中的错误“Chef需要的共享文件夹在虚拟机上丢失”。 [英] Vagrant + Chef: Error in provision "Shared folders that Chef requires are missing on the virtual machine."
问题描述
vagrant up
时,食谱正确加载。但是,当我以后做出规定(是 vagrant provision
, vagrant reload --provision
或 vagrant up --provision
我收到这个错误: 厨师需要的共享文件夹缺少虚拟机
这通常是由于在启动
机器后配置更改,修复程序是运行vagrant reload,以便正确的共享
文件夹将被准备和安装在虚拟机上
我搜索到无处不在,唯一的解决方案是做 vagrant reload --provision
,这对Vagrant 1.3.1起作用。
就像有同步文件夹的错误一样,这会清除缓存并修复它(从您的项目目录)
rm .vagrant / machines / default / virtualbox / synced_folders
vagrant reload --provision
https://github.com/mitchellh/vagrant/issues/5199
编辑:这个应该是固定的在流氓 1.7.4
I've installed a Vagrant + Virtualbox using Chef (+library chef). When I do vagrant up
first time, cookbooks get loaded correctly. However, when I do provision afterwards (be it vagrant provision
, vagrant reload --provision
or vagrant up --provision
I get this error:
Shared folders that Chef requires are missing on the virtual machine.
This is usually due to configuration changing after already booting the
machine. The fix is to run a `vagrant reload` so that the proper shared
folders will be prepared and mounted on the VM.
I searched everywhere and the only solution given is to do vagrant reload --provision
, this worked up up to Vagrant 1.3.1.
it seems like there is a bug with sync folders, this clears the cache and fixed it for me. (from your project directory)
rm .vagrant/machines/default/virtualbox/synced_folders
vagrant reload --provision
https://github.com/mitchellh/vagrant/issues/5199
EDIT: this should be fixed in vagrant 1.7.4
这篇关于Vagrant + Chef:配置中的错误“Chef需要的共享文件夹在虚拟机上丢失”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!