Vagrant disable Guest Additions

后端 未结 2 1838
慢半拍i
慢半拍i 2021-02-13 02:38

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 th

2条回答
  •  忘了有多久
    2021-02-13 03:04

    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
    

提交回复
热议问题