Google Cloud Platform (GCP) has introduced a new feature – Screenshot. This can be very handy during troubleshooting when your VM doesn’t respond, stuck at a blue screen, or waiting for some inputs. It supports Windows and Linux, both, and the good news is you can capture a screenshot on-demand through GCP console or API. When you log in to GCP and go to VM instance, you will notice a Screenshot tab.

As you can make out with the above image, it is not enabled by default. But it doesn’t take more than a minute to activate this feature. Let’s see how. VM must be in the stop state. If not, please do so.

Navigate to the VM instance and click Edit Scroll to the Display device and select “Turn on display device”

Save the settings and start the VM.

Let’s see how the screenshot looks like of CentOS.

And for Windows.

Imagine how useful this can be when the server is stuck at boot, patching, or hardware failure, and you can’t log in. I find this super helpful.

How to Take a Google Cloud VM Screenshot  - 85How to Take a Google Cloud VM Screenshot  - 48How to Take a Google Cloud VM Screenshot  - 51How to Take a Google Cloud VM Screenshot  - 14How to Take a Google Cloud VM Screenshot  - 51How to Take a Google Cloud VM Screenshot  - 76How to Take a Google Cloud VM Screenshot  - 74How to Take a Google Cloud VM Screenshot  - 62How to Take a Google Cloud VM Screenshot  - 27How to Take a Google Cloud VM Screenshot  - 67How to Take a Google Cloud VM Screenshot  - 6How to Take a Google Cloud VM Screenshot  - 73How to Take a Google Cloud VM Screenshot  - 55How to Take a Google Cloud VM Screenshot  - 43How to Take a Google Cloud VM Screenshot  - 16How to Take a Google Cloud VM Screenshot  - 83How to Take a Google Cloud VM Screenshot  - 60How to Take a Google Cloud VM Screenshot  - 23How to Take a Google Cloud VM Screenshot  - 59How to Take a Google Cloud VM Screenshot  - 54How to Take a Google Cloud VM Screenshot  - 65How to Take a Google Cloud VM Screenshot  - 1How to Take a Google Cloud VM Screenshot  - 96How to Take a Google Cloud VM Screenshot  - 26How to Take a Google Cloud VM Screenshot  - 77How to Take a Google Cloud VM Screenshot  - 6How to Take a Google Cloud VM Screenshot  - 3