Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant disable Guest Additions

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?

like image 567
r.v Avatar asked May 31 '16 22:05

r.v


People also ask

What is vagrant guest additions?

The VirtualBox Guest Additions are a set of drivers and applications to be deployed on a virtual machine to have better performance and enable features such as folder sharing.

What is vagrant Vbguest?

vagrant-vbguest is a Vagrant plugin which automatically installs the host's VirtualBox Guest Additions on the guest system.

What is the difference between vagrant and VirtualBox?

VirtualBox is basically inception for your computer. You can use VirtualBox to run entire sandboxed operating systems within your own computer. Vagrant is software that is used to manage a development environment.

Does vagrant require VirtualBox?

Vagrant comes with support out of the box for VirtualBox, a free, cross-platform consumer virtualization product. The VirtualBox provider is compatible with VirtualBox versions 4.0.


2 Answers

In your Vagrantfile, add the following param

Vagrant.configure("2") do |config|
    ....
    config.vbguest.auto_update = false
    ....
end
like image 68
Frederic Henri Avatar answered Oct 14 '22 18:10

Frederic Henri


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
like image 22
bbaassssiiee Avatar answered Oct 14 '22 17:10

bbaassssiiee