GCE Instance terminated by guest OS shutdown

google-cloud-platformgoogle-compute-engine

I have a GCE instance running and was creating using the gcloud SDK. For some reason, each time a start such instance, this is stopped automatically without a logic reason.

I read the log and I'm the getting the following:

Stackdrive Logging

Would you have some recommendations of what would be the problem?

Thanks,

Best Answer

Regarding the compute.instances.guestTerminate event in the log appears that the instance's guest OS itself was the one which requested to shutdown / halt so the instance was terminated as a result. This could be due a command such as shutdown -h now inside the VM.

Regarding your provided document the VM instance will shut itself down when the crawl is complete:

enter image description here

Also, I recommend you to remove or hide your project ID and instance ID in your provided Stackdriver log as is visible in public.

Related Topic