您的位置:首页 > 编程语言 > VB

Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxs

2018-01-22 15:36 1091 查看
vagrant 突然有一天发现共享文件夹失效,vagrant up 后提示:

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 vagrant /vagrant

The error output from the command was:

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

大致意思就是 vagrant表示: 这不是我的锅,是因为vagrant box的问题,然后我查询网上解决办法,大部分是说 升级vagrant box 的版本,因为低版本的box确实存在这个bug ,但是我的是之前可以的 ,突然犯病的,我当然不能原谅和接受,然后最后在github上找到一个答案,执行:

vagrant plugin install vagrant-vbguest

等待几分钟后...



安装成功!

重启vagrant  



成功再次挂载!

反正我是这种解决的,有些情况可能是确实是box版本的问题。下面是解决我问题的githu链接
https://github.com/scotch-io/scotch-box/issues/296
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  vagrant virtualbox
相关文章推荐