VM on VMware or vSphere always got disconnected after a few seconds or minutes.
CentOS or RHEL VM cannot be accessed via SSH and unable to activate or make the Interface UP.
Typing: ip link show
nmcli dev status
nmcli gen staus
Shows that VM interface is not yet UP.
Typing: ip link set ens192 up
Will bring the interface UP but still SSH is not working and not able to reach the VM.
Typing: nmcli con up ens192
Shows "STATE" connecting but will never shows "connected".
Restarting the VM and creating new interface will not help either.
Typing: nmtui (network manager text user interface)
It shows that the interface has been assigned with correct IP Address, DNS and Gateway
But the VM still not available on the network and SSH cannot access to the VM.
Well the solution, might just be an overlooked by configuring so fast the VM that a simple option was not carefully set.
If the VM was set with IP Address, DNS and Gateway manually, however, the option "Automatic" was not set to Manual on nmtui interface might be the issue.
Technically, nmtui was set with correct IP Details but the connection method was still DHCP and the "manual" or static option was not clicked or chosen as the preferred type of connection.
Selecting to Manual, and selecting "activate" for the interface will resolve the issue.
However, the above method will work only if there are no other issues on the system.
If above method will not work, then further troubleshooting is required.
Cheers! Till next time.
Pray always, it is the gateway to Heaven!
CentOS or RHEL VM cannot be accessed via SSH and unable to activate or make the Interface UP.
Typing: ip link show
nmcli dev status
nmcli gen staus
Shows that VM interface is not yet UP.
Typing: ip link set ens192 up
Will bring the interface UP but still SSH is not working and not able to reach the VM.
Typing: nmcli con up ens192
Shows "STATE" connecting but will never shows "connected".
Restarting the VM and creating new interface will not help either.
Typing: nmtui (network manager text user interface)
It shows that the interface has been assigned with correct IP Address, DNS and Gateway
But the VM still not available on the network and SSH cannot access to the VM.
Well the solution, might just be an overlooked by configuring so fast the VM that a simple option was not carefully set.
If the VM was set with IP Address, DNS and Gateway manually, however, the option "Automatic" was not set to Manual on nmtui interface might be the issue.
Technically, nmtui was set with correct IP Details but the connection method was still DHCP and the "manual" or static option was not clicked or chosen as the preferred type of connection.
Selecting to Manual, and selecting "activate" for the interface will resolve the issue.
However, the above method will work only if there are no other issues on the system.
If above method will not work, then further troubleshooting is required.
Cheers! Till next time.
Pray always, it is the gateway to Heaven!
Comments
Post a Comment