Ubuntu 20.04(主機)上的 Vagrant 和較舊的 ubuntu(來賓)

Ubuntu 20.04(主機)上的 Vagrant 和較舊的 ubuntu(來賓)

我使用的是 Ubuntu Budgie 20.04(主機),核心為 5.4.0-74-generic。

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 核心。

這是來自的交叉帖子https://stackoverflow.com/questions/67833305/vagrant-on-ubuntu-20-04-host-with-older-ubuntu-on-guest因為有人建議我在這裡可能會得到更容易的幫助。

答案1

這不是真正的答案,但最終成為我的解決方案。

我費了好大勁才將舊的 ubuntu 16.04 更新到 20.04。

這對我來說是一項相當大的工作,所以我的建議很簡單:

保持你的盒子是最新的,這樣你就不會遇到這樣的情況。 :)

相關內容