![VMware / Vagrant が NFS 共有を作成しようとするのを停止するにはどうすればよいですか?](https://rvso.com/image/1615520/VMware%20%2F%20Vagrant%20%E3%81%8C%20NFS%20%E5%85%B1%E6%9C%89%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%99%E3%82%8B%E3%81%AE%E3%82%92%E5%81%9C%E6%AD%A2%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F.png)
VM を実行するために、VirtualBox ではなく VMware を使用しようとしています。ホスト: Windows10、ゲスト: CentOS7。必要な vagrant ファイルを作成するために PuPHPet を使用していますが、デフォルト、NFS、SMB、RSync のどのファイル システムを選択しても、vagrant up は常に NFS 共有フォルダーをマウントしようとして失敗します。Windows は NFS をサポートしていないと思うので、失敗しても不思議ではありませんが、これを無効にする方法が見つかりません。Vagrant ファイルに以下を追加しました。
Vagrant.configure('2') do |config|
eval File.read("#{dir}/puphpet/vagrant/Vagrantfile-#{data['target']}")
config.vm.synced_folder ".", "/vagrant"
config.vm.synced_folder "B:\\Web\\www.example.com\\public_html", "/home/example/public_html", type: "rsync"
end
これにより、フォルダーがマウントされて同期されるため、NFS 共有をマウントする必要がなくなると想定しましたが、その後も次のメッセージが表示されます。
==> example: Rsyncing folder: /cygdrive/b/Web/www.example.com/public_html/ => /home/example/public_html
==> example: Exporting NFS shared folders...
==> example: Preparing to edit nfs mounting file.
==> example: 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,vers=3,udp,nolock 192.168.246.1:/B/Web/www.example.com /vagrant
Stdout from the command:
Stderr from the command:
mount.nfs: Connection refused
検索したどの構成ファイルにも IP 192.168.246.1 が含まれていないため、なぜ IP 192.168.246.1 が参照されているのかわかりません。