How to change machine type of GCE instance?

后端 未结 3 1746
遇见更好的自我
遇见更好的自我 2020-12-03 18:25

As there isn\'t any direct option to change machine type and i have to create a new instance. What are the steps to do so that the configuration/software that I had installe

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 18:59

    1) Delete the instance that you want to upgrade by keeping its boot disk.

      gcloud compute instances delete  --keep-disks boot
    

    2) Now create image from this boot disk

      gcloud compute images create  --source-disk 
    

    3) Now Check Images list

     gcloud compute images list
    

    4) Now Create new instance from developer console or using gcloud compute

    and select your image as boot disk.

    5) Done.

    Here is the link.

提交回复
热议问题