带有加密 ubuntu 主目录的 NFS

15 ubuntu nfs puppet vagrant ubuntu-12.04

我在使用 vagrant 设置 NFS 时遇到问题:

在我的本地机器上,我安装了 NFS:

apt-get install nfs-common nfs-kernel-server
Run Code Online (Sandbox Code Playgroud)

在我的 Vagrantfile 中将其设置为使用:

config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)
Run Code Online (Sandbox Code Playgroud)

vagrant up我得到:

exportfs: /home/<user>/path/to/dir does not support NFS export

Mounting NFS shared folders failed. This is most often caused by the NFS
client software not being installed on the guest machine. Please verify
that the NFS client software is properly installed, and consult any resources
specific to the linux distro you're using for more information on how to
do this.
Run Code Online (Sandbox Code Playgroud)

我在这里错过了一两步吗?

我知道 ubuntus 加密的主文件夹和 NFS 存在一些问题,但我知道这只是在启动前出现问题。

[更新] 我的/etc/exports文件如下所示:

# VAGRANT-BEGIN: 5af3e5d6-b086-416d-8eab-987275445634
/home/<user>/path/to/dir 192.168.33.11(rw,no_subtree_check,all_squash,
anonuid=1000,anongid=1000,fsid$
# VAGRANT-END: 5af3e5d6-b086-416d-8eab-987275445634
Run Code Online (Sandbox Code Playgroud)

Gio*_*ldo 12

实际上不可能通过 ecryptfs 卷内的 NFS 导出任何内容。exportfs:警告:/home/user/share 不支持 NFS 导出


ase*_*seq 0

我假设导出文件中的“<”和“>”仅作为示例...如果不删除它。

/home/<user>/path/to/dir 192.168.33.11(rw,no_subtree_check,all_squash
Run Code Online (Sandbox Code Playgroud)

为什么不先尝试导出 /home 看看是否有效?