如何更改GCE实例的机器类型? [英] How to change machine type of GCE instance?

查看:84
本文介绍了如何更改GCE实例的机器类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于没有任何直接选项可以更改机器类型,因此我必须创建一个新实例.要执行哪些步骤才能使我安装的配置/软件保持不变?

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 installed remain same ?

推荐答案

1)通过保留其启动磁盘来删除要升级的实例.

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

  gcloud compute instances delete <instance-name> --keep-disks boot

2)现在从该启动磁盘创建映像

2) Now create image from this boot disk

  gcloud compute images create <any-image-name> --source-disk <instance-name>

3)现在检查图像列表

3) Now Check Images list

 gcloud compute images list

4)现在从开发者控制台或使用gcloud computing创建新实例

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

,然后选择映像作为启动盘.

and select your image as boot disk.

5)完成.

="a =" a 是链接

这篇关于如何更改GCE实例的机器类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆