vagrant won't start virtual machine - (Errno::EADDRNOTAVAIL)

限于喜欢 提交于 2019-12-03 06:00:33

It appears to be an issue with the new vagrant 1.9.3 (see https://github.com/mitchellh/vagrant/issues/8395)

some were able to fix with following

I managed to make the 1.9.3 version working by rewritten all my Vagrantfile(s) and adding the host_ip: "127.0.0.1" parameter for each of the "forwarded_port" network configuration.

E.g.: config.vm.network "forwarded_port", guest: 22, host: 1022, host_ip: "127.0.0.1", id: 'ssh'

For puphpet, you can edit your /puphpet/vagrant/Vagrantfile-local search for forwarded_ports and replace

if !machine['network']['forwarded_port'].nil?
  machine['network']['forwarded_port'].each do |i, port|
    if port['guest'] != '' && port['host'] != ''
      machine_id.vm.network :forwarded_port,
        guest:        port['guest'].to_i,
        host:         port['host'].to_i,
        host_ip:      "127.0.0.1",
        auto_correct: true
    end
  end
end

This appears to be a problem with latest version of Vagrant, 1.9.3.

I downgraded to 1.9.2 and fixed the problem.

Modify the 'vagrantFile'...

network forwarded ports net the socket info... IP+port

config.vm.network :forwarded_port, guest: 80, host: 8932, host_ip: "127.0.0.1", auto_correct: true

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!