Is it possible to disable default /vagrant synced folder?

49

9

According to source code - it's not, but what if I'm wrong?

So the final question: is it possible to run a vagrant VM (virtualbox-driven) without /vagrant synced folder?

zerkms

Posted 2014-05-20T21:55:11.337

Reputation: 946

Answers

80

Yes. In the Vagrantfile:

Vagrant.configure('2') do |config|
  config.vm.synced_folder '.', '/vagrant', disabled: true
  # ...
end

tmatilai

Posted 2014-05-20T21:55:11.337

Reputation: 1 892

This also works if I just wanted Vagrant not to wait for the VMware HGFS kernel module to load, which I don't have in my box. – Ikon – 2016-02-08T12:45:04.690