Vagrant 无法创建绑定装载目标路径“/var/www”已经是bindfs装载

Vagrant 无法创建绑定装载目标路径“/var/www”已经是bindfs装载,vagrant,virtual-machine,mount,Vagrant,Virtual Machine,Mount,今天早上我去流浪了,发现了这个错误 VirtualMachine: Cannot create bind mount from '/mnt/vagrant-vflsf_7p872mq5085x' to '/var/www': Destination path '/var/www' is already a bindfs mount 没有更新我的vagrant配置1.9.1或操作系统MacOS 10.12.2。我今天也遇到了同样的问题,这是由于主机上的/etc/exports文件中有一些旧的无效

今天早上我去流浪了,发现了这个错误

VirtualMachine: Cannot create bind mount from '/mnt/vagrant-vflsf_7p872mq5085x' to '/var/www': Destination path '/var/www' is already a bindfs mount

没有更新我的vagrant配置1.9.1或操作系统MacOS 10.12.2。

我今天也遇到了同样的问题,这是由于主机上的/etc/exports文件中有一些旧的无效条目来自已销毁的vagrant框

打开/etc/exports文件,删除所有无效条目和/或编辑现有条目的路径


我还需要进行一次随机重新加载。

如果两个文件系统具有相似的名称,则可能会发生这种情况。修复方法是在存储绑定挂载点的任何文件中,将它们从最不唯一到更唯一排序

例如,假设您mount/abc/this_dir和/abc/this_dir

这行不通

/abc/this_dir_too
/abc/this_dir
这会奏效的

/abc/this_dir
/abc/this_dir_too
问题是vagrant发出了一个非常愚蠢的命令,以查找是否已经发生装载:

mount | grep '^bindfs' | grep #{directory.shellescape}"
很明显,如果一个FS是另一个FS的子集,将会发生什么