修改vagrantfile里的public_network之后启动报错:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!/sbin/ifup eth1
Stdout from the command:
Stderr from the command:
stdin: is not a tty
/etc/network/interfaces:29: interface eth2 declared allow-auto twice
/sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
在/etc/network/interfaces中配置了两个eth2,不能读取
解决办法:1.vagrant ssh
2.vagrant@precise64:~$ sudo vim /etc/network/interfaces
用dd 把两个eth2删除
本文解决了一个在使用Vagrant启动时遇到的错误,该错误源于Vagrant尝试执行一个失败的ifup命令来配置公共网络。通过SSH进入虚拟机并修改/etc/network/interfaces文件删除重复的eth2配置解决了问题。
3141

被折叠的 条评论
为什么被折叠?



