代码之家  ›  专栏  ›  技术社区  ›  leoOrion

使用多个专用网络时,Vagrant up失败

  •  0
  • leoOrion  · 技术社区  · 7 年前

    流浪汉档案:

    Vagrant.configure("2") do |c|
      c.vm.box = "bento/centos-7.3"
      c.vm.box_url = ""
      c.vm.hostname = "default-centos-7.vagrantup.com"
        c.vm.network "public_network", bridge: "en0: Wi-Fi (AirPort)", ip: "192.100.2.10"
        c.vm.network(:private_network, {:ip=>"192.100.2.15"})
        c.vm.network(:private_network, {:ip=>"192.100.2.16"})
        c.vm.network(:private_network, {:ip=>"192.100.2.17"})
      end
      c.vm.synced_folder "../../../", "/vagrant"
      c.vm.provider :virtualbox do |p|
      end
    end
    

    ==> default: Waiting for machine to boot. This may take a few minutes...
        default: SSH address: 127.0.0.1:2222
        default: SSH username: vagrant
        default: SSH auth method: private key
        default: Warning: Connection reset. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Connection reset. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Connection reset. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Connection reset. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Connection timeout. Retrying...
    Timed out while waiting for the machine to boot. This means that
    Vagrant was unable to communicate with the guest machine within
    the configured ("config.vm.boot_timeout" value) time period.
    

    我错过了什么?

    1 回复  |  直到 7 年前
        1
  •  0
  •   leoOrion    6 年前

    10.x.x.x 价值观,它出现了。我不知道为什么流浪汉不能使用这些问题中提到的特定IP虽然。