Mac$ vim Vagrantfile
config.vm.synced_folder "/Users/xxx/app/", "/app/", nfs: true
下記エラーが発生。
1234567
Mac$ 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":
Can't open /etc/exports
ホスト側で/etc/exportsを作成(空ファイルでよい)
1
Mac$ sudo touch /etc/exports
NFSは起動していた。
123
Mac$ sudo nfsd status
nfsd service is enabled
nfsd is running (pid 3697, 8 threads)
起動していなかった場合は以下を実行。
1
Mac$ sudo nfsd enable
別エラー発生。
12345678910111213141516
Mac$ vagrant reload
[default] Exporting NFS shared folders...
Preparing to edit /etc/exports. Administrator privileges will be required...
[default] Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o 'vers=3,udp' 192.168.33.1:'/Users/xxx/app' /app
Stdout from the command:
Stderr from the command:
mount.nfs: access denied by server while mounting 192.168.33.1:/Users/xxx/app
[default] Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o 'vers=3,udp' 192.168.33.1:'/Users/xxx/app' /app
Stdout from the command:
Stderr from the command:
mount.nfs: access denied by server while mounting 192.168.33.1:/Users/xxx/app