Skip to content

Instantly share code, notes, and snippets.

@pbanderas
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbanderas/8731877 to your computer and use it in GitHub Desktop.
Save pbanderas/8731877 to your computer and use it in GitHub Desktop.
Vagrant error with private network IP

Occurred with Centos 6.4 installations.

After specifying a private IP address in Vagrant file, command vagrant up crashed with this error

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

/sbin/ifdown eth1 2> /dev/null

Stdout from the command:

It's because there is no eth1 interface define. In order to solve the issue, create /etc/sysconfig/network-scripts/ifcfg-eth1 file with default content

DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp

Vagrant is not capable of creating it on uptime, so we must prepare the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment