Blog

Shared folders that Chef requires are missing on the virtual machine

GuestAdditions 4.3.28 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
 default: /vagrant => /Users/gonzo/Workspace/aaaa-chef
 default: /opt/aaaa/current => /Users/gonzo/Workspace/aaaa-chef/workspace/aaaa
==> default: Chef 12.4.0 Omnibus package is already installed.
==> default: Running provisioner: chef_solo...
==> default: Detected Chef (latest) is already installed
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.

After more digging, I’ve found that a VM already experiencing this issue can be fixed by removing the “synced_folders” file (a cache, I presume) and reloading the VM:

rm .vagrant/machines/default/virtualbox/synced_folders
vagrant reload

Not ideal, but better than destroying the VM and initialising from scratch

Leave a Comment