"vagrant halt" 死于错误 "The SSH connection was unexpectedly closed by the remote end..." 但机器成功关闭。 (
"vagrant halt" dies with error "The SSH connection was unexpectedly closed by the remote end..." But the machine successfully shuts down. (
我有6台VM的运行ning Ubuntu 16.04,主机也是Ubuntu 16.04。 Vagrant 版本 1.8.1
当我 运行 vagrant halt 时,出现错误:
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 脚本停止并且不会尝试关闭其他虚拟机。我必须 运行 "vagrant halt" 为我有 运行ning 的每个 VM 一次。每次它关闭下一个 VM,但随后又因 SSH 连接错误而死掉。
当我再次启动虚拟机时,我没有注意到它们有任何问题。
我找到了 install libpam-systemd 的建议:"otherwise networking stops before sshd and the connection gets left open." 我使用 apt 在每个虚拟机上安装了 libpam-systemd,但仍然出现 SSH 连接错误。
这是一个vagrant bug,在以后的版本中被修复了。我没有使用 ubuntu apt 包,而是从 vagrants 网站安装了最新的包。
我有6台VM的运行ning Ubuntu 16.04,主机也是Ubuntu 16.04。 Vagrant 版本 1.8.1
当我 运行 vagrant halt 时,出现错误:
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 脚本停止并且不会尝试关闭其他虚拟机。我必须 运行 "vagrant halt" 为我有 运行ning 的每个 VM 一次。每次它关闭下一个 VM,但随后又因 SSH 连接错误而死掉。
当我再次启动虚拟机时,我没有注意到它们有任何问题。
我找到了 install libpam-systemd 的建议:"otherwise networking stops before sshd and the connection gets left open." 我使用 apt 在每个虚拟机上安装了 libpam-systemd,但仍然出现 SSH 连接错误。
这是一个vagrant bug,在以后的版本中被修复了。我没有使用 ubuntu apt 包,而是从 vagrants 网站安装了最新的包。