有没有一种方法可以移动vagrant vm文件夹而不会出现nfs共享文件夹和/etc/exports的问题?
尝试移动该机器(已停止)会导致以下错误,每当我尝试在任何其他框中操作时(例如:
尝试移动该机器(已停止)会导致以下错误,每当我尝试在任何其他框中操作时(例如:
vagrant up
):==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
exports:14: path contains non-directory or non-existent components: /Users/[...]/vm
exports:14: no usable directories in export entry
exports:14: using fallback (marked offline): /
/etc/exports
文件中没有其它条目(例如在 OS X 上通常是这种情况),也可以更简单地执行sudo rm /etc/exports
。 - lucianfsynced_folders
和~/.vagrant.d/data/machine-index/index
文件,但没有成功。编辑/etc/exports
才有效。 - Francisco Quinteroetc/exports
确实有效。谢谢大家! - burnsjeremy/etc/exports
文件,但是我成功地将我的.vagrant/
文件夹和Vagrantfile
移动到了一个新的位置,并且按照建议更新了.vagrant/machines/default/virtualbox/synced_folders
。 - wrapperapps