Vagrant + Chef: Error in provision “Shared folders that Chef requires are missing on the virtual machine.”

后端 未结 2 715
北恋
北恋 2021-01-30 10:45

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 aft

相关标签:
2条回答
  • 2021-01-30 11:23

    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

    0 讨论(0)
  • 2021-01-30 11:29

    That's a fairly common issue with the Vagrant plugins for both Berkshelf and Librarian. Just get used to running that command.

    The way to avoid it is to use something like Test-Kitchen instead of the Vagrant plugins. That isn't a drop-in replacement though.

    0 讨论(0)
提交回复
热议问题