23

I would like to disable VirtualBox Guest Additions. I do not use them for folder syncing, etc. and for the box I am working on (e.g., centos/7), they fail to build anyway. Is there some way to tell vagrant not to try to install them at vagrant up?

r.v
  • 4,697
  • 6
  • 35
  • 57

2 Answers2

24

In your Vagrantfile, add the following param

Vagrant.configure("2") do |config|
    ....
    config.vbguest.auto_update = false
    ....
end
Frederic Henri
  • 51,761
  • 10
  • 113
  • 139
16

Users might not have the vagrant-vbguest plugin, and you could wrap its use in a conditional to avoid confusion.

Vagrant.configure("2") do |config|
  ....
  if Vagrant.has_plugin?("vagrant-vbguest")
    config.vbguest.auto_update = false
  end
  ....
end
bbaassssiiee
  • 6,013
  • 2
  • 42
  • 55