Vagrant disable Guest Additions

后端 未结 2 1839
慢半拍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
    
    0 讨论(0)
  • 2021-02-13 03:12

    In your Vagrantfile, add the following param

    Vagrant.configure("2") do |config|
        ....
        config.vbguest.auto_update = false
        ....
    end
    
    0 讨论(0)
提交回复
热议问题