我知道这些年来其他人也遇到过类似的问题(像这样),但是在我的情况下,安装了来宾添加(0.30.0 版本)并且我尝试重新安装了很多次。
我在 Windows10 上工作,这些是 VirtualBox 和虚拟机的版本。
Virtualbox on your host claims: 5.2.8
VBoxService inside the vm claims: 6.1.22
这是问题的代码:
default: /vagrant => C:/Users/XXXX XXXX/Documents/src
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
我从来没有在类似的情况下发现错误Invalid argument所以我的问题是这是否需要一个特定的过程。
非常感谢