vagrant icon indicating copy to clipboard operation
vagrant copied to clipboard

Disable default mount point

Open leth opened this issue 14 years ago • 7 comments

By default Vagrant mounts the directory containing the Vagrantfile as v-root.

Is there a way to remove this mount? In the mean-time I've mapped it to an empty directory instead.

leth avatar Apr 04 '12 18:04 leth

I'd like this as well (I think). I've run into issues with freebsd guests (which only support nfs) that appear to be related to having one nfs export as a subdirectory of another. Since my Vagrantfile is not in the project root, I need to suppress the normal /vagrant mount so I can mount the whole project.

bdarnell avatar Apr 23 '12 08:04 bdarnell

That, and vboxsf is terrible. No symlink support? Really?

Seems like for at least some projects, it'd be worthwhile to support sshfs, nfs, or really anything else.

masover avatar May 25 '12 22:05 masover

@masover: nfs is already supported.

leth avatar May 27 '12 21:05 leth

Is nfs supported as an option for the default mount?

masover avatar May 29 '12 14:05 masover

Yes, just re-declare it with:

config.vm.share_folder "v-root", "/vagrant", ".", :nfs => true

leth avatar May 29 '12 20:05 leth

closing this one as per @mitchellh's comment on https://github.com/mitchellh/vagrant/issues/1785#issuecomment-18814766

fgrehm avatar Jun 12 '13 22:06 fgrehm

Unfortunately the provided mitigation still means that providers that have this writable mount are not suitable for production use.

mc0e avatar Jan 27 '15 18:01 mc0e