上次写了一篇 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
看看具体效果是不是可以啦!