Take the 2-minute tour ×

I am trying to build a vagrant box from a VirtualBox machine. When I give vagrant up, I get an error saying

Vagrant assumes that this means the command failed!

/sbin/ifup eth1

If I try to run the command manually, I get

/etc/network/interfaces:17: duplicate interface

The network-related part of the vagrantfile is

config.vm.network :hostonly, ""

(if I disable this line and use only a NAT interface, things work, but I would like both a NAT and a host-only network connection)

The contents of /etc/network/interfaces is

# This file describes the network interfaces available on your system

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug eth1
iface eth1 inet dhcp
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet static

I tried commenting out the iface eth1 inet dhcp before packaging the machine, but it didn't have any effect (the line was not commented out on the vagrant box).

share|improve this question
Created a vagrant bugreport: #1092 –  Tgr Aug 29 '12 at 16:08
add comment

1 Answer

Take a look at this:


Removing the entries other than eth0 in the /etc/udev/rules.d/70-persistent-net.rules

and removing all but the eth0 ifcfg-eth files in /etc/sysconfig/network/

did the trick for me.

Running virtualbox on ubuntu 12.1, with a suse 11 operating system on the vbox

share|improve this answer
the second place is actually /etc/sysconfig/network-scripts/ –  Jose Muanis Jun 28 at 4:53
add comment

Your Answer


