首页 > 解决方案 > Ubuntu 20.04(主机)上的 Vagrant 和旧版 ubuntu(来宾)

问题描述

我在内核 5.4.0-74-generic 的 Ubuntu Budgie 20.04(主机)上。

VirtualBox 版本 6.1.22 r144080

流浪者:2.2.16

自从某个星期以来,我无法使用较旧的 ubuntu-version 作为我的访客系统运行 vagrant,例如

$ vagrant init ubuntu/xenial64
$ vagrant up

然后我得到信息和错误:

Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.18
VBoxService inside the vm claims: 5.1.38
Going on, assuming VBoxService is correct...
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000,_netdev vagrant /vagrant

The error output from the command was:

: No such device

如果我用焦点开始一个流浪盒子。

$ vagrant init ubuntu/focal64
$ vagrant up

它就像一个魅力。

有什么建议我可以在这里做些什么来让它再次工作?

我不知道,但我认为它在某些时候与内核更新有关,但在降级 Linux 内核时没有任何运气。

标签: ubuntuvagrantvirtualboxvirtualbox-guest-additions

解决方案


这不是一个真正的答案,但最终成为我的解决方案。

我努力让我的旧 ubuntu 16.04 更新到 20.04。

这对我来说是相当多的工作,所以我的建议很简单:

保持你的箱子是最新的,这样你就不会在这种情况下着陆。:)


推荐阅读