当前位置: 首页>>技术教程>>正文


具有加密的ubuntu主目录的NFS

, , , ,

问题描述

我在使用Vagrant进行NFS安装时遇到了麻烦:

在我的本地计算机上,我已经安装了NFS:

apt-get install nfs-common nfs-kernel-server

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

config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)

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.

我在这里错过一两个步骤吗?

我知道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

最佳办法

实际上,不可能通过ecryptfs卷中的NFS导出任何内容。 exportfs: Warning: /home/user/share does not support NFS export

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/10200.html,未经允许,请勿转载。