修改vagrantfile裏的public_network以後啓動報錯: vim
The following SSH command responded with a non-zero exit status. ssh
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,不能讀取 this
解決辦法:1.vagrant ssh vagrant
2.vagrant@precise64:~$ sudo vim /etc/network/interfaces ci
用dd 把兩個eth2刪除
it