SSH on port 22 fails in NSX-T
search cancel

SSH on port 22 fails in NSX-T

book

Article ID: 325119

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

On certain (latest versions with newer cloud-init versions), the Bionic virtual machines will see SSH connectivity failures after NSX Tools are installed. This article provides information to recover such VMs and can also be useful to apply the workaround before NSX tools are installed.

Symptoms:
SSH on port 22 fails due to connectivity issues.

Environment

VMware NSX-T Data Center 3.x
VMware NSX-T Data Center

Cause

This issue occurs due to a netplan config change that newer cloud-init versions bring into the Bionic VMs. It fails to bring up the management interface after the NSX tools installation.

Resolution

This is a known issue affecting VMware NSX-T Data Center 3.1.0.

Currently, there is no resolution.

Workaround:
To work around this issue, run this command before the NSX tools are installed:

sed -i '/driver:/d' /etc/netplan/50-cloud-init.yaml

Note: If this issue is seen after NSX tools are installed.
  1. SSH into the VM using port 8888. Ensure that inbound port 8888 is open for the VM.
  2. Run this command:

    /opt/vmware/nsx-agent/bin/nsx_container_pipe_client.py "sed -i '/driver:/d' /etc/netplan/50-cloud-init.yaml"
     
  3. Restart the nsx-agent using the command: 

    service nsx-agent restart