I cant seem to get to the bottom of this and could use some fresh pair of eyes on this. Somehow, my vagrant setup started using the wrong interface and doesnt respont to the configuration in my Vagrantfile. Gut feeling tells me that there are various leftover files that Vagrant doesnt clean up maybe?
Running Vagrant 2.2.9 with the libvirt provider (system install on Arch Linux). I can reproduce the behavior if I use dockerized / podman image with libvirt.
Before firing up vagrant:
$ virsh net-list
Name State Autostart Persistent
--------------------------------------------
default active yes yes
After firing up vagrant:
$ virsh net-list
Name State Autostart Persistent
----------------------------------------------------
default active yes yes
valkyrie-redox0 active no yes (NOT as configured [172.16.33.20](https://172.16.33.20) )
vagrant-libvirt active no yes (this is in use 192.168.121.0/24)
My vagrantfile
# -*- mode: ruby -*-# vi: set ft=ruby :require 'yaml'
Vagrant.require_version ">= 2.2.10"
Vagrant.configure("2") do |vagrant|
vagrant.vm.box = "archlinux/archlinux"
vagrant.vm.synced_folder "ansible", '/vagrant', type: '9p', disabled: true, accessmode: "squash"
vagrant.ssh.forward_agent = true
vagrant.ssh.compression = false
vagrant.ssh.dsa_authentication = false
nodes=1(1..nodes).each do |i|
vagrant.vm.define "node#{i}" do |node|
node.vm.hostname = "node#{i}"node.vm.network "private_network", ip: "172.16.36" + "." + "#{19+i}"
node.vm.provider :libvirt do |libvirt|
libvirt.memory = 2048
libvirt.cpus = 2
end
# Wait until all the machines are ready to be provisioned.if i == nodes
vagrant.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbooks/vagrant.yml"
ansible.config_file = "ansible/ansible.cfg"
ansible.verbose = "v"
#ansible.raw_arguments = ["--inventory","ansible/inventories/development/hosts.ini"]
ansible.vault_password_file = "ansible/ansible-vault-password.yml"
end
end
end
end
end
Any thoughts? Input is greatly appreciated