问题描述
我使用内核为 5.4.0-74-generic 的 Ubuntu Budgie 20.04(主机)。
VirtualBox 版本 6.1.22 r144080
流浪者:2.2.16
自从某个星期以来,我无法使用旧版 ubuntu 版本作为我的访客系统运行 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 内核。
解决方法
这不是真正的答案,但最终成为我的解决方案。
我努力让我的旧 ubuntu 16.04 更新到 20.04。
这对我来说是相当多的工作,所以我的建议很简单:
让您的盒子保持最新状态,这样您就不会遇到这种情况。 :)