Vagrant VirtualBox同步文件夹安装失败,多个VM

时间:2017-02-06 16:06:05

标签: linux vagrant virtualbox bento

我们已经尝试了Vagrant和VirtualBox一段时间了。在生产环境中对VM进行本地模拟整个部署管道配置之前。

我们有一个带有流浪文件和Ansible剧本/角色的GIT仓库。在Vagrant文​​件中,我们定义了多个VM。我们全局定义共享文件夹。将当前项目根映射到/vagrant。如果我使用命令vagrant up vm1 vm2 vm3启动3 vm,这一切都正常。

Altough做vagrant reload vm1 vm2 vm3 --provision会给我装错误。

Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

The error output from the last command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

我们正在为所有VM使用bento/centos-7.3基本框。 在仅运行一个VM时,我没有遇到重装问题。

我正在运行Fedora 24.我安装了vagrant vbguest插件(0.13.0)。

如何指出问题,有没有办法解决这个问题?令人烦恼的是每次都要销毁所有VM并进行vagrant up。因为它必须再次配置整个机器,而不仅仅是改变了安塞的任务。

0 个答案:

没有答案