vagrant up throws Der folgende Befehl antwortete mit einem Exit-Status ungleich Null

vagrant up throws Der folgende Befehl antwortete mit einem Exit-Status ungleich Null

Während der Ausführung von Vagrant Up wird mir folgender Fehler angezeigt:

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

Meine Vagrant-Datei sieht folgendermaßen aus:

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

Ich habe Vagrant Box Update ausgeführt und gleichzeitig meine Version von Vagrant auf die neueste Version v1.9.5 aktualisiert

Ich versuche, dies als lokale Entwicklungsumgebung auf meinem Mac-Computer einzurichten, aber was mache ich falsch, irgendwelche Vorschläge?

Danke

Antwort1

Nach dem Hinzufügen von 127.0.0.1 localhost zur Datei /etc/hosts scheint das Problem behoben zu sein.

verwandte Informationen