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
成功再次挂载!
反正我是这种解决的,有些情况可能是确实是box版本的问题。下面是解决我问题的githu链接
https://github.com/scotch-io/scotch-box/issues/296
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 was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxs
- Vagrant was unable to mount VirtualBox shared folders
- [已解决]vagrant共享文件夹挂载失败.Vagrant was unable to mount VirtualBox shared folders
- This is usually because the "vboxsf" file system is not available.
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot – please use a kernel appropriate for your CPU"(安装深度Linux的时候就需要)
- 解决VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot – please use a kernel appropriate for your CPU"
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- SharePoint 2013 搜索报错"Unable to retrieve topology component health. This may be because the admin component is not up and running"
- SharePoint 2013 搜索报错"Unable to retrieve topology component health. This may be because the admin component is not up and running"
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- The configuration file "vmname.vmx" was created by a VMware product that is incompatible with this v
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- Unable to mount the CD/DVD image virtualbox解决方法
- Unable to perform this action because the process is running.
- Bug on Build Solution: "Unable to copy file... because it is being used by another process.."
- Vagrant 启动报错:the "vboxsf" file system is not available