How to hibernate for Google Compute Engine Server?

I would like to use the GCE and VNC server to run some of the desktop programs that I wrote. However, I would like the GCE server not to work all the time (to save money), and I would like my VNC desktop settings to be saved (to save time). It seems that the easiest way to achieve this is to somehow have a sleeping instance of GCE. Is there a way to do this either from a script or from the command line?

+4
source share
2 answers

The only method currently supported that I know is to use a bootable permanent drive that survives the virtual machine so that you can remove and restart the virtual machine with moderately fast (less than 30 seconds) startup time, but I don’t think it would be Meet your needs, because if your application does not have a built-in, reliable checkpoint / resume logic, you may not be able to find the place where you left off on your desktop.

- , Docker, / , . Docker Google Compute Engine, Docker GCE, .

, , - . , - .

+5

Compute Engine - . :

gcloud alpha compute instances suspend Google Compute Engine. : ACPI S3, . , RUNNING. SUSPENDED.

- Compute Engine, , :

gcloud alpha compute instances suspend my-vm
0

All Articles