Vagrant disable Guest Additions

2019-04-05 18:52发布

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?

2条回答
聊天终结者
2楼-- · 2019-04-05 18:58

In your Vagrantfile, add the following param

Vagrant.configure("2") do |config|
    ....
    config.vbguest.auto_update = false
    ....
end
查看更多
女痞
3楼-- · 2019-04-05 19:10
Vagrant.configure("2") do |config|
  ....
  if Vagrant.has_plugin?("vagrant-vbguest")
    config.vbguest.auto_update = false
  end
  ....
end
查看更多
登录 后发表回答