Back

google cloud - 为不同用户共享一个镜像或者快照 share snapshot image within google accounts

发布时间: 2018-04-16 06:42:00

1. 打开  IAM和管理

2. 找到项目设置。

3. 添加成员(另一个google 账号)

4. 给到相关区权限即可(权限这里有点儿细)

Google Account

5. 保存后,会有EMAIL 发往 刚才加进来的google账户中。 让他登陆后,打开这个邮件,点击 接受 即可。

现在, 第二个人就可以看到之前的全部东东了。

然后,我们创建新的 VM的时候, 不要选择“新建”,要选择 “导入”

这时候, 我们就会进入到 google 的合作伙伴的页面,  (cloudendure.com)  

它会问我们要一个  google cloud 的东东。 

6. 然后进入到 “API”这一栏中,  生成一个service key ,   

Gc Generate Api

选择  “server account key ” 也就是 “服务账号密钥”。 JSON 格式。保存。

然后回到 cloudendure这个页面, 输入相关信息:  (注意,下图中的第一项是 项目的id, 不是项目的名称。 项目的id可以直接在下图中的 json中看到 ) 

Cloudendure Gcp Credentials

提交后,我们进入到了  replication settings 页面中, (选择 live migration target应该是你的目标区域) 

其他留着空就可以了。

Replication Settings

点击 “SHOW ME HOW”之后 ,就可以看到说明,需要在“source server”上安装个小软件。 

然后,进入到 google console, 源服务器, 安装:  

Your Agent installation token:

E70D-034A-2274-E385-8855-D18A-313F-960F-8D6F-07DD-DA9C-DFD4-240F-79FC-????-????
To generate a replacement token, go to Setup & Info > Other Settings


For Linux machines

Download the Installer:

wget -O ./installer_linux.py https://gcp.cloudendure.com/installer_linux.py
Then run the Installer and follow the instructions:

sudo python ./installer_linux.py -t E70D-034A-2274-E385-8855-D18A-313F-960F-8D6F-07DD-DA9C-DFD4-240F-79FC-????-???? --no-prompt

Back