Vagrant: Difference between revisions

imported>GeFrIt42
m vagrant 2.3.4's bug in mounting nfs folders: add reference to vagrant bug issue that contains a workaround
Adding notes about networking firewall blocking DHCP requests
 
Line 88: Line 88:


More information in this [https://github.com/NixOS/nixpkgs/issues/36880 issue]
More information in this [https://github.com/NixOS/nixpkgs/issues/36880 issue]
== Troubleshooting: VM failing to receive IP address ==
If you run <code>vagrant up</code> and your VM is stalling with the message <code>Waiting for domain to get an IP address</code>, your networking firewall may be blocking vagrants DHCP requests. You can allow the requests with the following changes to your configuration.nix file:
<syntaxhighlight lang=nix>
# Trust libvirt bridge interfaces for VM networking (required for Vagrant DHCP)
networking.firewall.trustedInterfaces = [ "virbr0" "virbr1" "virbr2" ];
# Don't let NetworkManager manage libvirt bridges (prevents conflicts)
networking.networkmanager.unmanaged = [ "virbr0" "virbr1" "virbr2" ];
</syntaxhighlight>