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

后端 未结 3 555
南旧
南旧 2021-02-08 08:41

I really hit a wall with this problem. I am on windows machine (with admin privileges) and I want to start setup my working environment with vagrant.

Problem is that I a

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-08 09:10

    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
    

提交回复
热议问题