“vagrant halt”因错误“远程端意外关闭了SSH连接......”而死机,但机器成功关闭。 (

时间:2017-03-27 14:39:43

标签: linux ubuntu ssh vagrant ubuntu-16.04

我有6个VM运行Ubuntu 16.04,主机也是Ubuntu 16.04。 Vagrant版本1.8.1

当我停止流浪汉时,我收到错误:

The SSH connection was unexpectedly closed by the remote end. This
usually indicates that SSH within the guest machine was unable to                                      
properly start up. Please boot the VM in GUI mode to check whether                                     
it is booting properly. 

观看VirtualBox GUI我看到VM已关闭。但是,vagrant脚本停止并且不会尝试关闭其他VM。对于我运行的每个VM,我必须运行一次“vagrant halt”。每次它关闭下一个VM,但随后再次出现SSH连接错误。

当我再次启动虚拟机时,我没有注意到它们有任何问题。

我向install libpam-systemd发现了一个建议:“否则网络会在sshd之前停止,并且连接会保持打开状态。”我使用apt在每个VM上安装libpam-systemd,但我仍然遇到SSH连接错误。

1 个答案:

答案 0 :(得分:0)

这是一个在以后的版本中修复的流浪汉错误。我没有使用ubuntu apt软件包,而是安装了最新的流浪汉网站。