问题
I halted the linux vm instances for couple of days. I dont see any options to turn it back on. I hit reboot and it pops the error here is detailed log "RESOURCE_NOT_READY: The resource 'projects/myproject/zones/us-central1-a/instances/myinstance' is not ready" I still see the disk for instance there and it marks active. Is there any way to reactivate the instance ? thanks
回答1:
Instances in a "TERMINATED" state cannot be restarted. If your instance is in this state, the only option is to delete the instance. Any data on scratch disks is gone.
Persistent Disks are independent of instances. If your disk is a Persistent Disk, you can create a new instance with the disk attached and continue using the disk.
回答2:
This is now possible!
Please have a look at the instances.start API call https://developers.google.com/apis-explorer/#p/compute/v1/compute.instances.start
回答3:
as of 2019-03-22, a machine in the state of "terminated", use can choose to either "start" or "delete" it.
https://cloud.google.com/compute/docs/instances/instance-life-cycle
来源:https://stackoverflow.com/questions/20103294/how-to-restore-vm-instance-from-terminated-state