vagrant up throws 다음 명령은 0이 아닌 종료 상태로 응답했습니다.

vagrant up throws 다음 명령은 0이 아닌 종료 상태로 응답했습니다.

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 버전을 최신 v1.9.5로 업데이트하면서 vagrant box 업데이트를 실행했습니다.

내 Mac 컴퓨터에서 로컬 개발 환경으로 설정하려고 하는데, 내가 뭘 잘못하고 있는 걸까요? 제안 사항이 있나요?

감사해요

답변1

/etc/hosts 파일에 127.0.0.1 localhost를 추가한 후. 문제가 사라진 것 같습니다.

관련 정보