为什么"流浪"无法通过"ifdown eth1" SSH测试?



我最近销毁了我的家园盒子,然后重新建造。从那以后,我一直收到这个错误:

$ vagrant up
...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> 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!
/sbin/ifdown eth1 2> /dev/null
Stdout from the command:

Stderr from the command:

这个错误有点神秘,我想不通。我重新安装了流浪者/虚拟箱并清除了配置文件,但错误仍然存在。

主机:Ubuntu 16.04
方框:Homestead v0.5

我曾在网络配置结束时添加auto_config:false

config.vm.network 'private_network', ip: '192.168.14.10', auto_config: false

如果其他人遇到同样的问题,想尝试其他方法(对我有效):

我从Vagrant v1.7.0升级到v1.7.4,出现了错误。安装了Vagrant v1.8.4,它成功了!

Ubuntu 16.04中没有eth1接口。它是enp0s3

对我来说,在不手动更新Vagrant版本的情况下解决问题的是在VM上安装ifupdown包。

vagrant ssh
sudo apt-get install ifupdown
exit
vagrant reload

来源:https://laracasts.com/discuss/channels/laravel/laravel-homestead-not-mapping-projects-folder-and-throwing-an-error#

唯一对我有帮助的是将流浪者版本从1.8.1升级到2.2.14

最新更新