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
?
Asked
Active
Viewed 1.3k times
23

r.v
- 4,697
- 6
- 35
- 57
2 Answers
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
-
Make sure you install the [vagrant-vbguest plugin](https://github.com/dotless-de/vagrant-vbguest) too. – Martin Woolstenhulme Mar 13 '17 at 20:51
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