Anand Suresh
Anand Suresh

Reputation: 113

Is there a way to prevent Vagrant from auto-sharing /vagrant?

I'm using FreeBSD 10 with Vagrant and run into a problem with shared folders, which are currently not supported on FreeBSD 10 VirtualBox guest additions. I get around the problem by using the rsync method for sharing folders. However, Vagrant ALWAYS tries to load the working folder at /vagrant.

Is there a way to prevent this?

Upvotes: 0

Views: 391

Answers (1)

Akos Bannerth
Akos Bannerth

Reputation: 1984

You can do it with the config.vm.synced_folder method, by setting the disabled option - with this you can disable previously configured synced folders, including the default (at least, it worked for me with the default too):

config.vm.synced_folder ".", "/vagrant", disabled: true

See: http://docs.vagrantup.com/v2/synced-folders/basic_usage.html

Upvotes: 1

Related Questions