vagrant private network and /etc/udev/rules.d/70-persistent-net.rules

Developer from somewhere

Encountered the following error when trying to setup private networking in vagrant:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

ARPCHECK=no /sbin/ifup eth1 2> /dev/null

Stdout from the command:

Device eth1 does not seem to be present, delaying initialization.


Stderr from the command:

Additionally, the call to private_network had to be changed to this:

box.vm.network "private_network", ip: "whatever_ip", :auto_config => false

The issue is discussed here, and this post helped me fix the issue. Basically, you have to check the contents of the file: /etc/udev/rules.d/70-persistent-net.rules. The safest bet seems to be to delete that file, so that vagrant can assign device names without MAC address issues. Thanks a lot, ablecoder!