You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "devbox"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "./my-recipes/cookbooks"
end
end
After the VM boots up, vagrant cannot provision it because of missing shared folders Shared folders that Chef requires are missing on the virtual machine
After some debugging, I figured out that vagrant-parallels synced the cookbook folders to the wrong locations.
This is what i get on the VM:
vagrant@ubuntu:~$ ls -alh /tmp/vagrant-chef-1/chef-solo-1/cookbooks
lrwxrwxrwx 1 vagrant root 52 Dec 19 03:31 /tmp/vagrant-chef-1/chef-solo-1/cookbooks -> /media/psf//tmp/vagrant-chef-1/chef-solo-1/cookbooks
vagrant@ubuntu:~$ ls -alh /media/psf/
total 4.0K
drwxr-xr-x 1 root root 0 Dec 18 21:31 .
drwxr-xr-x 4 root root 4.0K Aug 19 00:53 ..
drwxr-xr-x 1 vagrant vagrant 68 Dec 15 10:56 tmp_vagrant-chef-1_chef-solo-1_cookbooks
drwxr-xr-x 1 vagrant vagrant 238 Dec 18 22:30 vagrant
So instead of sync-ing the cookbooks to /media/psf//tmp/vagrant-chef-1/chef-solo-1/cookbooks, vagrant-parallels syncs them to /media/psf/tmp_vagrant-chef-1_chef-solo-1_cookbooks
The text was updated successfully, but these errors were encountered:
The problem occured first with CentOS 6.5 minimal box created with veewee (https://github.com/jedi4ever/veewee/blob/master/templates/CentOS-6.5-x86_64-minimal/definition.rb). Then I tried and reproduced it with the devbox.
Following is the Vagrantfile
After the VM boots up, vagrant cannot provision it because of missing shared folders
Shared folders that Chef requires are missing on the virtual machine
After some debugging, I figured out that vagrant-parallels synced the cookbook folders to the wrong locations.
This is what i get on the VM:
So instead of sync-ing the cookbooks to
/media/psf//tmp/vagrant-chef-1/chef-solo-1/cookbooks
, vagrant-parallels syncs them to/media/psf/tmp_vagrant-chef-1_chef-solo-1_cookbooks
The text was updated successfully, but these errors were encountered: