ubuntu - 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 内核时没有任何运气。
解决方案
这不是一个真正的答案,但最终成为我的解决方案。
我努力让我的旧 ubuntu 16.04 更新到 20.04。
这对我来说是相当多的工作,所以我的建议很简单:
保持你的箱子是最新的,这样你就不会在这种情况下着陆。:)
推荐阅读
- javascript - 测试从回调中调用的 window.open 是否已执行
- karate - 空手道:dynamic-csv.feature 可以用于 Get Request,如何从 CSV 传递动态路径参数?
- javascript - 如何增加全局变量 onmousehover,但让它返回到正常值 onmouseout?
- c# - CefSharp Javascript异步响应太快
- delphi - 当我的光标悬停在 Delphi 中时,如何更改 TLabel 的颜色?
- node.js - 使用谷歌中等图像触发器时的应用程序/八位字节流问题(模糊图像)
- python - 为什么我不通过scrapy抓取数据?
- c++ - CTAD 无法在部分专业化中使用 SFINAE 推断模板参数
- asp.net - 使用 web.config 设置特定文件夹的权限
- javascript - 如何使用 JavaScript 变量的值更新虚拟 html 元素的样式属性?