vagrant 无法挂载共享目录
Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxs
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
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 从 Redis 客户端超时到 .NET 线程池挑战
· C23和C++26的#embed嵌入资源指南
· 「EF Core」框架是如何识别实体类的属性和主键的
· 独立开发,这条路可行吗?
· 我在厂里搞 wine 的日子
· 他没买 iPad,而是花了半年时间,为所有“穷学生”写了个笔记神器
· Visual Studio 现已支持新的、更简洁的解决方案文件(slnx)格式
· 从 Redis 客户端超时到 .NET 线程池挑战:饥饿、窃取与阻塞的全景解析
· 2025年中总结:我想我克服公众演讲的恐惧了,一个社恐分子突破自我的故事
· 3.1k star!推荐一款开源基于AI实现的浏览器自动化插件工具 !
2017-11-22 PHP中file_put_contents追加和换行的实现方法
2016-11-22 sphinx安装记录 转
2016-11-22 安装PHP sphinx扩展 sphinx-1.1.0/sphinx.c:105:2: error: too few arguments 错误
2016-11-22 sphinx的配置
2016-11-22 sphinx :undefined reference to `libiconv' 报错解决办法
2016-11-22 理解Linux系统/etc/init.d目录和/etc/rc.local脚本
2016-11-22 win8启动文件夹