-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If The SSH Connection Drops, Packer Does Not Detect The Dropped Connection and Hangs #200
Comments
I wonder if the same thing would happen if VirtualBox would die suddenly? Or kernel in VM panic ... We could have small heartbeat that will "poke" SSH port and try to open it (and maybe possibly read banner), and if it fails to do it, then we could try to abort step. |
Due to the bugs in go's SSH lib, I'm a fan of @kwilczynski's idea. With the latest changes that allows SSH to reconnect (https://github.com/mitchellh/packer/blob/38ae1a0ba9eeca963166bcfa83a69ab0cdcb2104/communicator/ssh/communicator.go#L30), it would be pretty trivial I think for the communicator to actually spin off a goroutine to constantly poke it... ah hah! |
Fixed, using @kwilczynski's suggested technique. See the associated commit for more info. |
hashicorpGH-200]" This reverts commit c16c467. This change makes denyhosts happy.
Reproduction:
To be fair, this appears to have nothing to do with Packer specifically, and more to do with the go SSH package:
The text was updated successfully, but these errors were encountered: