how to restore vm instance from terminated state ?

不打扰是莪最后的温柔 提交于 2020-01-01 16:37:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!