When you get stuck with "Waiting for domain to get an IP address..." while running a vagrant box with libvirt provider, you should look at your logs (journalctl -f
) and you may find the following error :
dnsmasq-dhcp[]: DHCP packet received on virbr1 which has no address
This means there is no IP address on our bridge. A simple solution is : delete vagrant network :
sudo virsh net-destroy --network vagrant-libvirt
sudo virsh net-undefine --network vagrant-libvirt
Then, we can try to boot our box again:
vagrant destroy --force
vagrant up