Vagrant启动报错

Vagrant虚拟机,使用centos6.6,配置文件中,设置网络问public network, 启动过程老是报错,通过端口跳转的方式登录虚拟机之后,执行ifconfig发现取不到DHCP提供的IP:

==> 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:

Device eth1 does not seem to be present, delaying initialization.

Stderr from the command:

网上搜了出来的例子无非都是说:

问题就处在在持久网络设备udev规则(persistent network device udev rules)是被原VM设置好的,再用box生成新VM时,这些rules需要被更新。

然后执行命令删除某个文件:sudo rm -f /etc/udev/rules.d/70-persistent-net.rules 然后重启


但我实际运行之后发现还是无非解决,后来在github上一个老外提供了解决办法,在此记录一下以备日后需要:

sudo ln -sf /dev/null /etc/udev/rules.d/70-persistent-net.rules
具体见https://github.com/mitchellh/vagrant/issues/2614#issuecomment-105314244



  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值