Skip to content

Instantly share code, notes, and snippets.

@wedojava
Last active August 29, 2015 14:17
Show Gist options
  • Save wedojava/6f913c14814a417bb881 to your computer and use it in GitHub Desktop.
Save wedojava/6f913c14814a417bb881 to your computer and use it in GitHub Desktop.
vagrant启动报错The following SSH command responded with a non-zero exit status.

###报错信息:

  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:
  

###解决办法: 虽然vagrant up启动报错,但是vagrant ssh还是能登陆虚拟机的,进入虚拟机后,执行如下命令:

sudo rm -f /etc/udev/rules.d/70-persistent-net.rules

对, 问题就处在在持久网络设备udev规则(persistent network device udev rules)是被原VM设置好的,再用box生成新VM时,这些rules需要被更新。而这和Vagrantfile里对新VM设置private network的指令发生冲突。删除就好了。

原文地址

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment