當前位置: 首頁>>技術教程>>正文


具有加密的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/zh-tw/article/10200.html,未經允許,請勿轉載。