我已经使用 Chef(+library Chef)安装了 Vagrant + Virtualbox。当我做vagrant up
第一次,食谱被正确加载。但是,当我事后进行配置时(无论是vagrant provision
, vagrant reload --provision
or vagrant up --provision
我收到此错误:
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.
我到处搜索,给出的唯一解决方案是vagrant reload --provision
,这一直持续到 Vagrant 1.3.1。
同步文件夹似乎有一个错误,这会清除缓存并为我修复它。 (来自您的项目目录)
rm .vagrant/machines/default/virtualbox/synced_folders
vagrant reload --provision
https://github.com/mitchellh/vagrant/issues/5199 https://github.com/mitchellh/vagrant/issues/5199
编辑:这个应该修复 https://github.com/mitchellh/vagrant/commit/300b9c910954bf0e6beed0888e121473639ef2c8流浪中1.7.4
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)