58

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
  • 1,036
  • 1
  • 9
  • 22

1 Answers1

102

Yes. In the Vagrantfile:

Vagrant.configure('2') do |config|
  config.vm.synced_folder '.', '/vagrant', disabled: true
  # ...
end
tmatilai
  • 2,232
  • 1
  • 18
  • 13
  • 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 Feb 08 '16 at 12:45
  • Pro tip (I just learned this): Put this into `$HOME/.vagrant.d/Vagrantfile` to apply it per default. This is documented here: https://developer.hashicorp.com/vagrant/docs/vagrantfile#load-order – Jakob Nov 10 '22 at 20:28