我正在尝试Vagrantfile
在我的 Ubuntu 服务器上运行一个。我收到以下错误消息:
An error occurred during installation of VirtualBox Guest Additions 6.1.26. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Unmounting Virtualbox Guest Additions ISO from: /mnt
Cleaning up downloaded VirtualBox Guest Additions ISO...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.2.0
VBoxService inside the vm claims: 6.1.26
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.2.0
VBoxService inside the vm claims: 6.1.26
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.2.0
VBoxService inside the vm claims: 6.1.26
Going on, assuming VBoxService is correct...
Restarting VM to apply changes...
我使用以下命令安装 Virtualbox 和 Vagrant:
# Install VirtualBox
sudo apt-get install linux-headers-$(uname -r) build-essential dkms
sudo apt-get install libgl1-mesa-glx libxmu6 libxt6 -y
sudo apt-get install virtualbox -y
# Install vagrant and its plugins
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - && sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" && sudo apt-get update && sudo apt-get install vagrant -y
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-disksize
vagrant plugin install vagrant-hostmanager
安装的版本:
Vagrant 2.2.18
Virtualbox 6.1.26
安装卡在:
Installing rsync to the VM...
==> worker-customer: Rsyncing folder: /home/worker/ => /vagrant
这似乎是合乎逻辑的,因为来宾添加无法正常工作。
如何修复版本不匹配?
vagrant-vbguest Github 页面说
但似乎有几份报告称不同版本发生了同样的事情。有一个 vagrantfile 的例子,它有一个注释掉的行:
取消注释并设置正确的相对行应该可以解决问题。根据这个讨论,使用命令将 vagrant-vbguest 更新到最新版本
似乎已经解决了多个用户的问题。
这位 SU 社区成员说,可以通过在来宾操作系统中安装来宾添加来解决该问题。
通过谷歌搜索消息可以找到更多可能的解决方案
VBox Guest Additions 的所有版本都可以从这个virtualbox.org 下载页面下载。