在网络之间移动Google Compute VM实例 [英] Moving Google Compute VM instances between Networks

查看:43
本文介绍了在网络之间移动Google Compute VM实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在项目上配置的Google Cloud Networks之间移动现有VM实例吗?我知道您可以在创建新VM时指定网络,但是似乎没有一种实例化它即可对其进行更改的功能.任何指针表示赞赏!-保罗

Does anyone know how to move an existing VM instance between Google Cloud Networks configured on a project? I know you can specify the Network at the point of creating an new VM, but there doesn't appear to be a facility for changing it once instantiated. Any pointers appreciated! -Paul

推荐答案

要将现有GCE VM实例移至其他网络,您首先需要删除VM实例,同时保留其所有磁盘(--keep-disks all 标志(使用gcloud命令)[1].然后,使用现有的启动磁盘[2],[3]创建一个新的VM实例,并将其他磁盘附加到该新的VM实例(如果有).

In order to move an existing GCE VM instance to a different network, you will first need to delete the VM instance while keeping all its disks (--keep-disks all flag with gcloud command) [1]. Then create a new VM instance with the existing boot disk [2],[3] and attach other disks to the new VM instance if there is any.

上述所有步骤也可以使用开发人员控制台完成.

All of the above mentioned steps can be done using the Developers Console as well.

链接1 : gcloud计算实例删除NAME-保留所有磁盘
链接2 :使用现有的根永久磁盘
链接3 : gcloud计算实例创建

Link 1: gcloud compute instances delete NAME --keep-disks all
Link 2: Using an existing root persistent disk
Link 3: gcloud compute instances create

这篇关于在网络之间移动Google Compute VM实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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