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

精选文章 2017年5月4日 5.89K

上次写了一篇 windows下VirtualBox 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

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


关注微信公众号『PHP学习网

第一时间了解最新网络动态
关注博主不迷路~

版权声明:转载请注明 PHP学习网 » vagrant本地和虚拟机同步目录数据报错
分享到:
赞(1)

文章评论

您需要之后才可以评论
1点赞 0评论 收藏 QQ分享 微博分享

PHP学习网

PHP学习网