帝国CMS模板大全
www.admin99.cn
www.92cms.cn 帝国CMS模板下载站!,情怀,养站,二次开发!源码需求比较大的一站式会员下载,价更省!!!

vagrant本地和虚拟机同步目录数据报错

上次写了一篇   之前因为要赶项目没继续往下操作,今继续操作时碰到了以下问题,记录如下。

在本地和虚拟机同步时,修改了配置文件

config.vm.synced_folder “E:/apiweb/git/viphper”, “/home/wwwroot/default/viphper”

但是用 vagrant reload 重启时,总是在报错,数据没办法同步,错误如下:

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:

标红的是重点,说明不支持 vboxsf,需要安装相应的插件。

在window下的cmd中执行

vagrant plugin install vagrant-vbguest

然后重启:vagrant reload

看看具体效果是不是可以啦!

赞(0)
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《vagrant本地和虚拟机同步目录数据报错》
文章链接:https://www.admin99.cn/4554
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
QQ站长交流群:953950264

登录

找回密码

注册