vagrant up throws 次のコマンドはゼロ以外の終了ステータスで応答しました

vagrant up throws 次のコマンドはゼロ以外の終了ステータスで応答しました

vagrant up の実行中に次のエラーが発生します。

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/freid/www/projects /vagrant

Stdout from the command:



Stderr from the command:

mount.nfs: requested NFS version or transport protocol is not supported

私の Vagrant ファイルは次のようになります:

Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
    v.name = "projects"
    v.customize [
        "modifyvm", :id,
        "--name", "projects",
        "--memory", 2048,
        "--natdnshostresolver1", "on",
        "--cpus", 1,
    ]
end

config.vm.box = "ubuntu/trusty64"

config.vm.network :private_network, ip: "192.168.33.71"
config.ssh.forward_agent = true

config.vm.synced_folder "./", "/vagrant", type: "nfs"   
end

vagrant box updateを実行し、vagrantのバージョンを最新のv1.9.5に更新しました。

これを Mac マシン上のローカル開発環境として設定しようとしていますが、何が間違っているのでしょうか。何か提案はありますか?

ありがとう

答え1

127.0.0.1 localhost を /etc/hosts ファイルに追加した後、問題は解決したようです。

関連情報