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

后端 未结 3 562
南旧
南旧 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:06

    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

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2021-02-08 09:27

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

    I downgraded to 1.9.2 and fixed the problem.

    0 讨论(0)
提交回复
热议问题