diff --git a/plugins/provisioners/chef/provisioner/chef_solo.rb b/plugins/provisioners/chef/provisioner/chef_solo.rb index adcadb4a116..ccb9a52d2f8 100644 --- a/plugins/provisioners/chef/provisioner/chef_solo.rb +++ b/plugins/provisioners/chef/provisioner/chef_solo.rb @@ -111,9 +111,10 @@ def expanded_folders(paths, appended_folder=nil) def share_folders(root_config, prefix, folders) folders.each do |type, local_path, remote_path| if type == :host - root_config.vm.share_folder( - "v-#{prefix}-#{self.class.get_and_update_counter(:shared_folder)}", - remote_path, local_path, :nfs => @config.nfs) + root_config.vm.synced_folder( + local_path, remote_path, + :id => "v-#{prefix}-#{self.class.get_and_update_counter(:shared_folder)}", + :nfs => @config.nfs) end end end diff --git a/plugins/provisioners/puppet/provisioner/puppet.rb b/plugins/provisioners/puppet/provisioner/puppet.rb index d105a854b79..11a794a6b33 100644 --- a/plugins/provisioners/puppet/provisioner/puppet.rb +++ b/plugins/provisioners/puppet/provisioner/puppet.rb @@ -28,15 +28,15 @@ def configure(root_config) end # Share the manifests directory with the guest - root_config.vm.share_folder( - "manifests", manifests_guest_path, @expanded_manifests_path) + root_config.vm.synced_folder( + @expanded_manifests_path, manifests_guest_path) # Share the module paths count = 0 @module_paths.each do |from, to| # Sorry for the cryptic key here, but VirtualBox has a strange limit on # maximum size for it and its something small (around 10) - root_config.vm.share_folder("v-pp-m#{count}", to, from) + root_config.vm.synced_folder(from, to) count += 1 end end