stream浪ifup eth1失败(重复接口)

我正在试图从VirtualBox机器上build立一个stream浪盒子。 当我vagrant up ,我得到一个错误的说法

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

如果我尝试手动运行命令,我会得到

 /etc/network/interfaces:17: duplicate interface ifup: couldn't read interfaces file "/etc/network/interfaces" 

vagrantfile的networking相关部分是

 config.vm.network :hostonly, "192.168.56.11" 

(如果我禁用这条线,只使用一个NAT接口,事情的工作,但我希望既一个NAT和主机只有networking连接)

/etc/network/interfaces

 # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # 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 #VAGRANT-BEGIN # The contents below are automatically generated by Vagrant. Do not modify. auto eth1 iface eth1 inet static address 192.168.56.11 netmask 255.255.255.0 #VAGRANT-END 

在打包机器之前,我尝试了一下iface eth1 inet dhcp ,但是没有任何效果(在stream浪盒子里没有注释)。

看看这个:

https://github.com/mitchellh/vagrant/issues/997

删除/etc/udev/rules.d/70-persistent-net.rules中除eth0以外的条目

并删除/ etc / sysconfig / network / etc目录下的所有eth0 ifcfg-eth文件

为我做了诡计。

在ubox 12.1上运行virtualbox,在vbox上运行suse 11操作系统