Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

Cookbooks are not shared with VM after reload, restart [4.0.2] #263

Closed
IvanChepurnyi opened this issue Feb 9, 2015 · 1 comment
Closed

Comments

@IvanChepurnyi
Copy link

When first time I run a vagrant up, the cookbooks are shared correctly, and any consecutive call to vagrant provision works like expected. However, if I halt my VM and do up again, any provision with chef fails, since the directory is not shared with VM.

Important findings about this:
First time in console there is an info that directory is shared:

==> default: Mounting shared folders...
    default: /tmp/vagrant-cache => /Volumes/ssd/work/vagrant.d/cache/chef/centos-6.6
    default: /tmp/vagrant-chef/935a7167a832e4dd48a4755c2e19dcad/cookbooks => /Users/ivan/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150209-58460-1gr07n0-default
==> default: Chef 11.16.4 Omnibus package is already installed.

When I restart VM there is only one directory shared:

==> default: Mounting shared folders...
    default: /tmp/vagrant-cache => /Volumes/ssd/work/vagrant.d/cache/chef/centos-6.6
==> default: Chef 11.16.4 Omnibus package is already installed.

Also if I remove a file in .vagrant/machines/default/virtualbox/berkshelf everything gets shared again. I expect it is happing because of bugfix introduced in 4.0.0

@sethvargo
Copy link
Contributor

This is a Vagrant core issue: hashicorp/vagrant#5199

@berkshelf berkshelf locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants