veewee: Centos 7: Error "Device eth1 does not seem to be present" with private network

Trying to use a private network with the new Centos 7 config doesn’t work and results in the error below:

Steps to reproduce:

veewee vbox define 'centos70' CentOS-7.0-1406-x86_64-netinstall --force
veewee vbox build 'centos70' 
veewee vbox export 'centos70'
vagrant box add 'centos70' centos70.box
vagrant init 'centos70'

Now edit the Vagrantfile and uncomment the line:

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

Then run:

vagrant up

This results in the following error:

==> default: Configuring and enabling network interfaces...
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:

ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device eth1 does not seem to be present, delaying initialization.


Stderr from the command:

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 23

Most upvoted comments

Eventually managed to get it to work by changing the Vagrantfile line to

config.vm.network "private_network", ip: "192.168.33.10", auto_config: false

Would be nice if this could work straight out of the box though!