Skip to content

SSH occasional disconnection after vMotion of a containerVM finishes #4484

@keramix

Description

@keramix

Details

If a user is attached to a containerVM that gets vMotioned, there is a chance the ssh connection will get disconnected after vMotion completes. The containerVM will be powered on but the user might get detached after vmotion completes. This event happens if the user is typing on the stdin right before the containerVM goes to the downtime state (usually between 58% and 72% of the vMotion progress)

By further investigating the issue, it turns out that the SSH Server at the tether side closes the connection because of a MAC (Message Authentication Code) failure. This possibly means that a few bytes that the SSH client sends do not get read by the SSH server while vMotion is happening leading to an incorrect SSH MAC. Attached are the logs (enabled the crypto/ssh logs as well). Most relevant are the tether logs.

Steps to Reproduce

1- Run a container and attach to it
2- Start vmotion
3- Type random keys on the containerVM stdin between 58% and 72% of vmotion progress

log10.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions