jarrettbarnett
3/17/2017 - 4:20 PM

Resolves the following error: Bringing up interface eth2: Device eth2 does not seem to be present, delaying initialization. [FAILED]

Resolves the following error: Bringing up interface eth2: Device eth2 does not seem to be present, delaying initialization. [FAILED]

Option 1

1. Update .Vagrantfile

You can edit Vagrantfile file in any standard text editor or via VIM:

$ cd /Web
$ vim Vagrantfile

Locate a line that starts with:

(Note that the IP address will likely be different on your machine)

config.vm.network "private_network", ip: "192.168.100.1"

and append ":auto_config => false" so it looks like:

config.vm.network "private_network", ip: "192.168.100.1", :auto_config => false

Option 2

1. Destroy vagrant

(might be able to just vagrant halt... then a vagrant reload --provision later, but destroying vagrant has worked thus far)

$ vagrant destroy

2. Update Vagrantfile

$ cd ./WallaWeb
$ vim Vagrantfile

locate (IP address may be different):

config.vm.network "private_network", ip: "192.168.100.1", 

and append ":adapter => 2" so it looks like:

config.vm.network "private_network", ip: "192.168.100.1", :adapter => 2

3. Run vagrant

$ vagrant up

Note that this will probably result in an error about the ethernet devices... but the vagrant box should spin up.

4. SSH into Vagrant box

$ vagrant ssh

5. Swap ethernet config within vagrant box

$ vagrant ssh
$ sudo sed -i 's/eth1/eth2/' /etc/sysconfig/network-scripts/ifcfg-eth1
$ sudo /sbin/ifup eth1

6. Run vagrant up again

$ vagrant up