Using serial console to connect to VMs

Working with virtual machines in the public cloud, requires us from time to time to troubleshoot operating system, boot, and network connectivity issues.

In the past, when we worked locally with physical machines, we were able to login to the server console and run commands that assisted us debug problems, but how do we accomplish the same using public clouds?

The cloud providers allow us to connect to a “serial console”, login to the operating system and run commands.

Below are the various alternatives for connecting to a serial console:

· EC2 Serial Console for Linux instances

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-serial-console.html

· Troubleshoot Boot and Networking Issues with New EC2 Serial Console

https://aws.amazon.com/blogs/aws/troubleshoot-boot-and-networking-issues-with-new-ec2-serial-console/

· Azure Serial Console for Windows

https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/serial-console-windows

· Azure Serial Console for Linux

https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/serial-console-linux

· Serial console with Azure VMs — Troubleshooting and diagnosing

https://microsoft.github.io/AzureTipsAndTricks/blog/tip191.html

· Interacting with the serial console

https://cloud.google.com/compute/docs/instances/interacting-with-serial-console

· Viewing serial port output

https://cloud.google.com/compute/docs/instances/viewing-serial-port-output

· gcloud compute connect-to-serial-port

https://cloud.google.com/sdk/gcloud/reference/compute/connect-to-serial-port

· Troubleshooting Instances Using Instance Console Connections

https://docs.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm

About The Author

Eyal Estrin is a cloud and information security architect, the owner of the blog Security & Cloud 24/7, with more than 20 years in the IT industry.
You can connect with him on Twitter and LinkedIn.

Cloud Architect

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store