Vagrant network collides with a non-hostonly network

前端 未结 5 1127
陌清茗
陌清茗 2021-02-18 23:53

I am trying to get a vagrant box up and running, but I keep getting network collide errors. This box is a fresh download of trusty64. I have been searching every file and folder

5条回答
  •  别跟我提以往
    2021-02-19 00:25

    I had the same challenge, and did the following to solve it:

    In VirtualBox, go to File -> Host Network Manager

    Take note of the IPv4 address in this window. In your Vagrantfile, use any IP in the reserved private IPv4 network range. Let's say your VirtualBox IPv4 address is 192.168.56.1/24. In your Vagrantfile you could then add

    config.vm.network "private_network", ip: "192.168.56.5"

    Remember to configure your hosts file accordingly, should that be required.

提交回复
热议问题