vagrant up:得到关于已安装的 GuestAdditions 版本的不同报告

vagrant up: Got different reports about installed GuestAdditions version

在执行 vagrant up 时,我得到:

Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.28
VBoxService inside the vm claims: 5.1.18
Going on, assuming VBoxService is correct...

我进行了快速搜索,但没有解决这个问题。

它似乎没有任何影响所以只是想知道这里的最佳实践是什么...

对于 OP 来说可能为时已晚,但如果它对其他人有帮助,vagrant-vbguest 插件项目中 GitHub 的评论建议添加的内容已正确安装但报告不正确。更新到最新版本为我修复了它:

vagrant plugin update
Updating installed plugins...
Updated 'vagrant-vbguest' to version '0.14.2'!

如果您使用的是 vagrant,请从 ubuntu 的 apt 存储库 中卸载它并立即离开该场景!

sudo apt-get purge vagrant

sudo apt-get clean

sudo apt-get autoremove

现在从 https://www.vagrantup.com/downloads.html 安装 Hashicop 下载 vagrant 的 .deb,错误就会消失 如果你从 apt 安装 vagrant

cleanautoremove 对于防止安装程序使用来自 apt 的缓存文件很重要,即使您使用 .deb!!

我在 Ubuntu 18.04Virtualbox 5.2.18

上遇到了同样的问题

修复:将以下行添加到您的 vagrant 文件中。

if Vagrant.has_plugin?("vagrant-vbguest")
    config.vbguest.auto_update = false  
end

查看此评论at github

我找到了可行的解决方案。将以下代码添加到您的 Vagrantfile 中 Vagrant.configure("2") do |config| 部分的某处。

if Vagrant.has_plugin? "vagrant-vbguest"
  config.vbguest.no_install  = true
  config.vbguest.auto_update = false
  config.vbguest.no_remote   = true
end