我们已经尝试了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.我安装了vagvern vbguest插件(0.13.0) .

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