Vagrant 启动 ubuntu 20.04 时报错,mount /vagrant file 失败

环境

  • OS: Manjaro-21.1.0
  • Vagrant: 2.2.16

报错信息

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:

/sbin/mount.vboxsf: mounting failed with the error: Invalid argument

解决方案

$ vagrant plugin install vagrant-vbguest
$ vagrant reload
点赞

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注