1

I have a gcloud vm instance of type custom (4 vCPUs, 8 GB memory), with ubuntu 16.04, 10Gb disk space. Today at specific time (7:30 am), start using the 99% of cpu. I restart the machine but continue to use the 99% of cpu. Now I cannot connect through ssh. There is any workaround to connect to my instance and see what the problem is?? Thank you!!!

Luis Lopez
  • 133
  • 1
  • 9

1 Answers1

2

You can connect to the instance through serial port if you want an interactive shell. The command is gcloud compute connect-to-serial-port [INSTANCE_NAME].

The viewing-serial-port-output for GCE instances also might be helpful in quickly glancing through serial port logs.

Daniel t.
  • 9,291
  • 1
  • 33
  • 36
  • Thank you very much!! That works great!! I was able to clear the hdd. That was the problem, hdd out of space – Luis Lopez Nov 08 '18 at 13:02