从根云盘创建根云盘镜像(CreateRootVolumeTemplateFromRootVolume)
管理员可以使用CreateRootVolumeTemplateFromRootVolume从根云盘创建根云盘镜像。例如:
CreateRootVolumeTemplateFromRootVolume rootVolumeUuid=cc83fc9639cf456c8e43c35f6d2d52cd \
backupStorageUuids=ab3d53288bd14e6eba6ea56324b66a3f name=new-rootvolume
参数(Parameters)
名字 | 描述 | 可选的 | 可选的参数值 | 起始支持版本 |
---|---|---|---|---|
name | 根云盘镜像名称 | 0.6 | ||
description | 根云盘镜像的详细描述 | 是 | 0.6 | |
guestOsType | 根云盘镜像对应客户机操作系统类型 | 是 | 0.6 | |
backupStorageUuids | 镜像服务器uuid列表 | 是 | 0.6 | |
rootVolumeUuid | 根云盘uuid | 是 | 0.6 | |
platform | 根云盘镜像对应的系统平台 | 是 |
|
0.6 |
system | 是否系统根云盘镜像 | 是 | 0.6 | |
resourceUuid | 资源uuid。若指定,根云盘镜像会使用该字段值作为uuid | 是 | 0.6 | |
architecture | 是 | 4.0.0 | ||
tagUuids | 标签UUID列表 | 是 | 4.0.0 | |
userTags | 用户标签,请参见 创建用户标签(CreateUserTag);资源类型是 ImageVO | 是 | 0.6 | |
systemTags | 系统标签,请参见 创建系统标签(CreateSystemTag); 资源类型是 ImageVO | 是 | 0.6 | |
timeout | 是 |
Note:
- ZStack Cloud从根云盘创建根云盘镜像时支持从云主机拷贝GuestTools标签值到镜像,
使用该镜像创建云主机时,从镜像拷贝GuestTools标签值到新云主机。SystemTags增加GuestTools选项。
- 选项格式为:
GuestTools::TOOLS_VERSION
,其中TOOLS_VERSION初值为1.0.0,未来随着工具版本的提升,这个值会随之变化。 - 例如:
GuestTools::1.0.0
- 补充说明:云主机根云盘创建镜像时,从云主机拷贝GuestTools标签值到镜像。
- 选项格式为: