Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Why do VM Instances restarts within 2 hours interval.

Hi

We have provision few VM instances in us-central zone. CPU/Memory uses consistently less than 50%. I wonder why does it restart automatically?

1 1 557
1 REPLY 1

Hi @KrishnaSunuwar ,

Upon checking Google Cloud Status, there were incidents reported last June 12, 2023 that might have been the cause of the automatic restart of your VMs deployed in us-central. But this should have been fixed by now. 

If this re-occurs, here are some steps you can follow to address the issue:

  1. Examine the VM instance logs: Review the serial console logs and syslog to identify any error messages or events that might explain the automatic restart. Access the logs through the GCP Console or by using the "gcloud" command-line tool.

  2. Verify resource availability: Check if the VM has sufficient resources allocated, such as CPU, memory, and disk space. Inadequate resources can trigger automatic restarts. Utilize Stackdriver Monitoring or other monitoring tools to track resource usage.

  3. Investigate application or system issues: Examine application logs and system logs to identify any errors or crashes that may be triggering the automatic restart. Both the application running on the VM and the operating system itself should be scrutinized.

  4. Seek Google Cloud support: If you have exhausted all troubleshooting steps and the issue persists, consider contacting Google Cloud support for further assistance. They can help investigate the problem and provide guidance based on your specific environment.