Error while vagrant up "network collision"

1

Execute vagrant up the following error occurs:

  

The specified host network collides with a non-hostonly network!

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/xenial64"
  config.vm.network "private_network", ip: "192.168.1.100"
  config.vm.network "forwarded_port", guest: 9042, host: 9042, guest_ip: "192.168.1.100"
  config.vm.network "forwarded_port", guest: 9160, host: 9160, guest_ip: "192.168.1.100"
  config.vm.provider "virtualbox" do |vb|
     vb.memory = "3072"
     vb.cpus=1
   end
end

Trace of the complete error:

  

Bringing machine 'default' up with 'virtualbox' provider ...   == > default: Importing base box 'ubuntu / xenial64' ...   == > default: Matching MAC address for NAT networking ...   == > default: Checking if box 'ubuntu / xenial64' is up to date ...   == > default: Setting the name of the VM: cassandraVM_default_1498184365715_32236   == > default: Clearing any previous set network interfaces ... The specified host network collides with a non-hostonly network! This will   cause your specified IP to be inaccessible. Please change the IP or   name of your host only network that is not longer matches that of a   bridged or non-hostonly network.

    
asked by tutmosis 23.06.2017 в 04:15
source

1 answer

0

The error occurs due to a network collision with the IP assigned to the Host and the private ip that is being created in the Guest ( reference )

Steps:

  • Check the ip of your system ( ipconfig , ifconfig )
  • Modify the ip in your Vagrantfile ej file:

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

  • Start provisioning again using vagrant up

  • answered by 23.06.2017 в 04:27