Vagrant 禁用访客添加 [英] Vagrant disable Guest Additions

查看:27
本文介绍了Vagrant 禁用访客添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁用 VirtualBox Guest Additions.我不将它们用于文件夹同步等,对于我正在处理的盒子(例如,centos/7),它们无论如何都无法构建.有没有办法告诉 vagrant 不要尝试在 vagrant up 安装它们?

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?

推荐答案

在你的 Vagrantfile 中,添加以下参数

In your Vagrantfile, add the following param

Vagrant.configure("2") do |config|
    ....
    config.vbguest.auto_update = false
    ....
end

这篇关于Vagrant 禁用访客添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆