Vagrant was unable to mount VirtualBox shared folders

错误详细输出

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=500,gid=500 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

解决

运行如下命令即可解决:

vagrant plugin install vagrant-winnfsd
vagrant plugin install vagrant-vbguest
vagrant vbguest

你可能感兴趣的:(vagrant)