12 Apr

[vagrant][chef] chef missing shared folder

Chef missing shared folder

vagrant logo

Today I found issue after upgrading my virtualbox. I was using vagrant with chef as provisioner. after upgrading virtualbox and VBoxGuestAddons, and updating some component on cheffile, my chef provisioner returning error that Chef missing shared folder.

The error message is looked like this:

then after googling for a while, I got the solutions. the problem is, vagrant cached the synced folder settings, after upgrading VirtualBox, this cache should be invalidated. To invalidate the cache, just run this command from your vagrant directory (The directory where your vagrantfile lies)

and re-run the provisioner

solved, that’s how to solve when Chef missing shared folder when you re-run provisioner after upgrading virtualbox

Leave a Reply

Your email address will not be published. Required fields are marked *