创建ECS实例

<p>1.1&nbsp;&nbsp; 创建ECS实例</p> <p>1、登录后点击左上角【全部】-&gt;【计算】-&gt;【云服务器ECS】-&gt;【概览】</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307165650-147111a59841.png" style="height:431px; width:880px" /></p> <p>2、创建ECS实例前若无专有网络,网络域和子网,必须前去创建,具体步骤参见专有网络操作指南</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307165911-114de62c940b.png" style="height:215px; width:880px" /><br /> 3、选择【云服务器ECS】-&gt;【实例】,点击右上角【<strong>+</strong>创建】实例</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170011-13176ab09c90.png" style="height:289px; width:880px" /></p> <p>4、在创建页面以下信息:</p> <p>l&nbsp; 【区域选择】</p> <p>选择对应地域和可用区。如无特殊需求,高可用域默认即可</p> <p>l&nbsp; 【网络配置】</p> <p>VPC 详见专有网络VPC帮助文档</p> <p>网络域 详见专有网络VPC帮助文档</p> <p>安全组 可以选择添加到现在安全组或创建安全组</p> <p>l&nbsp; 【主机配置】</p> <p>产品系列 分为容量性云主机、标准云主机、SSD云主机</p> <p>选择CPU核数与Mem大小</p> <p>操作系统类型 分为CentOS、WindowsServer、Ubuntu</p> <p>镜像 分为标准镜像和自定义镜像。标准镜像版本CentOS包括CentOS-7.2、CentOS-6.7、WindowsServer包括Win2012R2_Standard_64bit_CN、Win2012R2_Standard_64bit_EN、Win2012R2_Standard_64bit_CN_DBTerminal、Win2016_DataCenter_64bit_CN、Win2016_DataCenter_64bit_EN、Win2008R2_Standard_64bit_CN、Win2008R2_Standard_64bit_EN&nbsp; Ubuntu包括Ubuntu14.04_64bit、Ubuntu16.04_64bit。自定义镜像可以用户自定义上传</p> <p>主机名 可以自定义主机名称,默认与实例名称相同,多个主机名称以英文逗号分隔</p> <p>描述 用户自定义主机描述</p> <p>l&nbsp; 【磁盘配置】</p> <p>创建云硬盘 用户选择是或否</p> <p>产品系列 可选择容量型磁盘和性能型磁盘</p> <p>类型 选择磁盘大小</p> <p>磁盘数 配置购买磁盘数量</p> <p>l&nbsp; 【安全配置】&nbsp; 详见安全中心</p> <p>l&nbsp; 【购买选项】</p> <p>付费方式 可选按小时或者包月,按月付费详细可以参考计费方式</p> <p>数量&nbsp; 选择购买实例数量</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170305-198206839070.png" style="height:549px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170432-12cfd3839af1.png" style="height:702px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170506-180f67f495e2.png" style="height:679px; width:880px" /></p> <p>5、以上选择完毕后,核实配置信息,点击购买</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170734-11331c7091d5.png" style="height:444px; width:880px" /></p> <p>6、购买后,开始创建实例,显示创建中</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170704-1f2a19139800.png" style="height:146px; width:880px" /></p> <p>7、几分钟后,显示运行中,说明实例创建完成。</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170849-1c5c7d299af1.png" style="height:187px; width:880px" /></p> <p>8、概览可以查询自己实例数量</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307170931-1acdbbad91ef.png" style="height:425px; width:880px" /></p> <p>点击【云服务器ECS】-&gt;【实例】,在实例管理可以选择不同区域管理的所有ECS实例</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307171026-195c37f797cf.png" style="height:268px; width:880px" /></p> <p>1.2&nbsp;&nbsp; 开关机实例</p> <p>可以对运行中的实例关机操作,表示对实例立即关机</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307171113-1ee43a5d9bf7.png" style="height:187px; width:880px" /></p> <p>可以对已停止的实例开机操作,表示对实例立即开机</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307174850-19cba20e92c6.png" style="height:163px; width:880px" /></p> <p>1.3&nbsp;&nbsp; 重启实例</p> <p>可以对运行中的实例重启操作,表示对实例重启</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307175025-1de672339f99.png" style="height:372px; width:880px" /></p> <p>1.4&nbsp;&nbsp; 密钥对</p> <p>使用前提条件</p> <p>l&nbsp; Linux实例</p> <p>l&nbsp; 密钥只能下载一次,请妥善保存。如需重新下载,需解绑实例,重新生成</p> <p>l&nbsp; 私钥使用未加密的 PEM(Privacy-enhanced Electronic Mail) 编码的 PKCS#8 格</p> <p>1、创建密钥对</p> <p>点击左上角【全部】-&gt;【计算】-&gt;【云服务器ECS】-&gt;【密钥对】-&gt;【+创建】。保存好下载的.pem格式的密钥。</p> <p>注意:点击确定后,私钥立即下载到本地,平安云不做保存,无法再次下载,请妥善保管</p> <p>当该密钥对绑定某个 ECS 实例时,如果没有私钥,您将再也不能登录该 ECS 实例。用户名,密码也无法登录</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307171409-16c8aae09cdc.png" style="height:350px; width:880px" /></p> <p>2、密钥対关联实例</p> <p>点击 &ldquo;关联实例&rdquo;输入手机验证码,即可关联实例</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160311-1514521e9aee.png" style="height:194px; width:554px" /></p> <p>使用密钥对连接密钥对关联的linux实例</p> <p>示范1:采用免安装PuTTY和PuTTYgen软件为例</p> <p>3、转换密钥格式。打开PuTTYgen软件,第一步,load刚刚下载的.pem格式的密钥。转换成.ppk格式的密钥。第二步,单击 Save private key,弹出警告。选择 &ldquo;是(Y)&rdquo;。输入一个英文名字和保存路径。</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160329-1586ee3f9b4f.png" style="height:471px; width:488px" /></p> <p>4、连接linux实例。打开PuTTY软件。选择【Connection】-&gt;【SSH】-&gt;【Auth】上传转换的.ppk的私钥。登录</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160405-152366a19bd9.png" style="height:446px; width:466px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160414-1f4e7e1a9abc.png" style="height:432px; width:455px" /></p> <p>5、验证成功,登录linux实例</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160425-11c4c31b9ef3.png" style="height:196px; width:554px" /></p> <p>示范2:以xshell连接工具为例,打开xshell,然后在工具选项选择用户密钥管理者(U)</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160437-177f3ee795ce.png" style="height:336px; width:554px" /></p> <p>1、选择后,在弹出的对话框例导入之前保存的pem文件,如下:</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160452-1ad075639376.png" style="height:311px; width:554px" /></p> <p>2、导入后,新建连接,如下所示:</p> <p>然后在&ldquo;连接&rdquo;里面输入名称、协议,主机(ip)、端口号22</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160507-15cfb4b698b5.png" style="height:434px; width:554px" /></p> <p>3、选择&ldquo;用户身份验证&rdquo;选项,如下设置</p> <p>方法(M)选择Public Key</p> <p>用户名(U)填写root</p> <p>用户密钥(K)选择导入的pem密钥即可</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160524-1336a7719f4c.png" style="height:374px; width:554px" /></p> <p>4、弹出警告,接收并保存。成功连接</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160535-1cf9424f901c.png" style="height:252px; width:422px" /></p> <p>&nbsp;</p> <p>1.5&nbsp;&nbsp; 远程连接</p> <p>使用SSH工具或MSTSC连接管理自己实例,IP、用户名、密码可以点击实例详情查看</p> <p>1、&nbsp; 查看ECS实例详情是否申请过公网IP,没有申请到第2步,存在公网请到第5步</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307171705-1da754e79109.png" style="height:307px; width:880px" /></p> <p>2、【互联网网关IGW】创建互联网网关,注意选择ECS实例所在的VPC</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307175725-1937b53b96ee.png" style="height:411px; width:880px" /></p> <p>3、【互联网网关】到互联网网关申请公网IP</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172247-146b01579d01.png" style="height:206px; width:880px" /></p> <p>&nbsp;</p> <p>4、【创建公网IP地址】选择添加到公网的ECS实例</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172329-137d1dae97be.png" style="height:349px; width:880px" /></p> <p>5、申请后到管理界面创建安全策略</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172438-1c1da60899d6.png" style="height:203px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172532-1125c6f498ab.png" style="height:185px; width:880px" /></p> <p>1.6&nbsp;&nbsp; NAT网关</p> <p>虚拟机连接公网有2种方式,第一种使用ECS实例直接申请公网IP,第二种采用NAT网关方式,当内部网络需要与外部网络通讯时,需要配置NAT,将内部私有IP地址转换成全局唯一IP地址。可以配置静态或动态的NAT来实现互联互通的目的,或者需要同时配置静态和动态的NAT</p> <p>1、选择【全部】-&gt;【专用网络VPC】-&gt;【NAT网关】-&gt;【+创建】</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172616-19a175c39449.png" style="height:166px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172650-1c02bf259693.png" style="height:252px; width:880px" /></p> <p>2、稍等几分钟,创建成功</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307175437-1948d2c69e0d.png" style="height:210px; width:880px" /></p> <p>3、点击实例名&ldquo;Nat-T0600004&rdquo;进入【NAT网关详情】-&gt;【带外包管理】-&gt;【+创建】。选择需求的总带宽和公网IP数量。点击购买</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307175509-1cbf563c91dc.png" style="height:253px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307175535-1d6391d99192.png" style="height:201px; width:880px" /></p> <p>4、点击【NAT网关详情】-&gt;【DNAT规则管理】-&gt;【+创建】,填写端口映射</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307175606-104b51d893a6.png" style="height:458px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307175305-1ead1dc194db.png" style="height:226px; width:880px" /></p> <p>5、返回【云服务器ECS】-&gt;【安全组】-&gt;【安全组规则】,创建安全组规则</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172843-153701579e8d.png" style="height:194px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307172947-15a18a899671.png" style="height:429px; width:880px" /></p> <p>6、创建完成后,可以telnet +公网IP+ 端口 测试。示例 telnet x.x.x.x 22 然后使用终端软件连接即可。</p> <p>1.7&nbsp;&nbsp; 升配实例</p> <p>可以对已关机的实例进行升级配置</p> <p>选择ECS实例更多,点击升配</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307173301-167da7589910.png" style="height:219px; width:880px" /></p> <p>选择对应的配置,确定</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307173238-15b682669650.png" style="height:281px; width:880px" /></p> <p>1.8&nbsp;&nbsp; 续费实例</p> <p>可以对包月主机进行续费操作</p> <p>选择ECS实例更多,点击续费</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307173430-1dc116ab9c42.png" style="height:197px; width:880px" /></p> <p>选择指定月数,点击确定</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160854-1726af70972e.png" style="height:188px; width:554px" /></p> <p>1.9&nbsp;&nbsp; 重置密码</p> <p>忘记密码后,可以对实例重置密码,需要关机操作</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307173658-18599d529544.png" style="height:329px; width:880px" /></p> <p>&nbsp;</p> <p>修改成功后,提示新密码</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307160919-1cc9463e9795.png" style="height:200px; width:383px" /></p> <p>1.10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 远程控制台</p> <p>提供一种ECS实例救援模式,在使用远程连接无法连接到ECS实例的情况下使用,一种带外管理方式</p> <p>需要是开机状态实例可以使用远程连接</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307180458-10857f60931a.png" style="height:258px; width:880px" /></p> <p>1.11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 批量操作</p> <p>实例列表可以批量操作目前支持开机、关机、释放</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307173952-1f26b97a9975.png" style="height:281px; width:880px" /></p> <p>1.12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 编辑主机名</p> <p>可以对已停止的实例编辑主机名操作,表示对实例编辑Hostname,默认与实例名相同</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307174111-157366639a6d.png" style="height:441px; width:880px" /></p> <p>1.13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 删除实例</p> <p>可以对已停止的实例释放操作,表示对实例立即删除,删除后资源随即释放</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307180022-1b557e3f9090.png" style="height:237px; width:880px" /></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p>

创建GPU实例

<p>1.1 您可以参照 <a href="https://yun.pingan.com/ssr/help/compute/ecs/manual">创建ECS实例</a> 的描述创建GPU实例。在创建时,您需要注意以下几点:</p> <p>&nbsp; &nbsp; 1, <strong>计费方式</strong>:目前只支持 <strong>按量付费。</strong></p> <p>&nbsp; &nbsp; 2, <strong>地域</strong>:目前只支持<strong> 华南1(可用区A)</strong>可供应GPU实例创建。</p> <p>&nbsp; &nbsp; 3, <strong>产品系列:</strong>选择<strong> 【GPU云主机】,</strong>按需求选择合适的实力规格。</p> <p><strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 说明</strong></p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#fdad87">成功创建GPU实例后,目前不支持对GPU实例进行升降配。</span></p> <p>&nbsp; &nbsp; 4, <strong>镜像</strong>:您可以选择 【<strong>标准镜像】 </strong>或<strong> 【自定义镜像】。</strong></p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;当前支持如下版本操作系统:</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &bull;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CentOS7.2</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &bull;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ubuntu16.04</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &bull;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows2016-CN</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &bull;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows2016-EN</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &bull;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows2012R2-CN</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &bull;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows2012R2-EN</p> <p><strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 说明</strong></p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;标准镜像都已预装GPU驱动,如果您选择的自定义镜像没有预装GPU驱动,请在实例创建完成后,自行 <span style="color:#fdad87">下载并安装GPU驱动</span>。</p> <p>&nbsp;</p> <p>1.2&nbsp; &nbsp;<strong>GPU实例安装驱动 和 CUDA工具包</strong></p> <p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;如果没有使用预装GPU驱动的镜像,您必须为实例安装GPU驱动。</p> <p><strong>&nbsp; &nbsp; &nbsp; &nbsp;操作步骤</strong>:</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1, 下载GPU驱动安装包:</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1) 进入<a href="https://www.nvidia.com/zh-cn/">NVIDIA官网</a>。</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2) 进入驱动下载页面,查找合适您创建实例的驱动。目前支持NVIDIA产品系列类型如下:</p> <table border="1" cellpadding="1" cellspacing="1" style="width:500px"> <thead> <tr> <th scope="col">实例类型</th> <th scope="col">产品类型</th> <th scope="col">产品系列</th> <th scope="col">产品家族</th> </tr> </thead> <tbody> <tr> <td style="text-align:center">v1</td> <td style="text-align:center">Tesla</td> <td style="text-align:center">V-Series</td> <td style="text-align:center">Tesla V100</td> </tr> </tbody> </table> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3) 选择对应的操作系统,确认无误下载。</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20180409193010-1a97d5649daf.png" style="height:222px; width:611px" /></p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2, 安装驱动:</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&bull;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Linux实例安装GPU驱动:</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1) 首先安装kernel对应版本的kernel-devel和kernel-header包。</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2) 按照NVIDIA官网GPU驱动下载页面的 <strong>其他信息 </strong>来安装GPU驱动。如下图:</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20180409193350-1884a54292e0.png" style="height:291px; width:495px" /></p> <p>&nbsp;</p> <p><strong>安装CUDA工具包</strong></p> <p>如果您的GPU实例需要安装CUDA驱动,具体操作,请参见 <a href="https://yun.pingan.com/ssr/help/compute/ecs/Best_Practices">GPU实例安装CUDA驱动。</a></p>

安全组

<p>1、进入云服务器ECS控制台,选择&ldquo;安全组&rdquo;菜单,点击&ldquo;创建安全组&rdquo;创建安全组。</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307181720-18219e229b55.png" style="height:291px; width:880px" /></p> <p>2、选择对应VPC与网络域</p> <p><img alt="" src="https://fincloud.pingan.com/zh/docs/ecs/imgs/Create_SG_02.png" style="height:452px; width:880px" /></p> <p>3、创建后需要首先创建安全规则,需要指定方向、协议类型与授权IP段</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307181835-15fac27d9c5d.png" style="height:377px; width:880px" /></p> <p>添加实例到对应安全组</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307181917-18cd6e6b982e.png" style="height:306px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307181947-10446784992b.png" style="height:266px; width:880px" /></p> <p>&nbsp;</p>

快照

<p>3.1创建手动快照</p> <p>1、 在【云服务器ECS】&gt;【云硬盘】页面,根据【所挂载ECS实例】,选择实例对应的云磁盘,点击&ldquo;创建快照&rdquo;;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182200-17fd53439d3b.png" style="height:379px; width:880px" /></p> <p>或是在【实例管理】页面,点击【实例名】进入【实例详情】页面,在详情页面找到【磁盘信息】点击 &ldquo;磁盘名称&rdquo;,跳转到【磁盘信息】页面,在【快照】目录,点击&ldquo;创建快照&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182238-1bbdcee890f3.png" style="height:346px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182303-1031591b9d46.png" style="height:312px; width:880px" /></p> <p>2、 在&ldquo;创建快照&rdquo;页面,核对&ldquo;云磁盘名称&rdquo;和&ldquo;实例&rdquo;,填写&ldquo;描述信息&rdquo;,点击&ldquo;确定&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182322-1739ca1294ce.png" style="height:329px; width:880px" /></p> <p>3、 在【云硬盘】列表页面,点击云硬盘的&ldquo;名称&rdquo;,进入【磁盘信息】页面,可见该磁盘下所创建的快照,状态为&ldquo;创建中&rdquo;,等待一会,状态变为&ldquo;可用&rdquo;,表示快照创建成功</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182412-10226a0f9566.png" style="height:353px; width:880px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182433-1ea5b24495d4.png" style="height:313px; width:880px" /></p> <p>4、 单个磁盘最多可手动创建8个快照</p> <p>3.2创建自动快照策略</p> <p>1) 在【磁盘信息】页面,点击&ldquo;创建自动快照策略&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182523-1d77a3b29f4f.png" style="height:371px; width:880px" /></p> <p>2)在弹出的&ldquo;创建自动快照策略&rdquo;页面,填写:描述、重复类型、时间、保留份数,点击&ldquo;确定&rdquo;。单个磁盘每种&rdquo;重复类型&rdquo;的策略只能创建一个;单个磁盘所有自动快照最多保留8份</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182544-1151ff1c94a1.png" style="height:428px; width:880px" /></p> <p>3)&nbsp; 创建成功,在&ldquo;磁盘信息&rdquo;页面可见创建的所有&ldquo;自定义快照策略&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182604-15216241945c.png" style="height:412px; width:880px" /></p> <p>4) 磁盘在指定时间自动创建快照,并在&ldquo;磁盘信息&rdquo;页面的&ldquo;快照&rdquo;列表中显示</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182647-1decd9979b8f.png" style="height:553px; width:880px" /></p> <p>3.3删除自动快照策略</p> <p>在磁盘信息页面,可以对自动快照策略进行删除操作,表示对自动快照策略立即删除,删除后策略失效。</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307182915-1b39b32994a7.png" style="height:252px; width:880px" /></p> <p>3.4回滚磁盘</p> <p>1) &nbsp;在【磁盘信息】页面,选择需要回滚的快照,点击&ldquo;回滚磁盘&rdquo;。&ldquo;回滚磁盘&rdquo;前请先将磁盘所挂载的ECS实例关机,关机步骤参考&ldquo;云服务器ECS -&gt;操作手册-&gt;开关机实例&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183045-19e600ef9d98.png" style="height:341px; width:880px" /></p> <p>2)&nbsp; 开始回滚磁盘,快照状态变为&ldquo;还原中&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183102-1a29dc059e1e.png" style="height:341px; width:880px" /></p> <p>3)&nbsp; 等待一会,快照状态变为&ldquo;可用&rdquo;,表示磁盘回滚成功</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183122-1f1507de9158.png" style="height:310px; width:880px" /></p> <p>3.5删除快照</p> <p>在磁盘信息页面,可以对快照进行删除操作,表示对快照立即删除</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183147-19d2e3a39a60.png" style="height:323px; width:880px" /></p>

自定义镜像

<p>4.1创建自定义镜像</p> <p>可以对已关机的实例进行制作镜像操作,表示将实例所挂载系统盘的数据,全部完整的复制到自定义镜像中。如果在进行制作镜像操作前,实例已经购买了EIP,需要先将EIP释放,否则无法进行制作镜像的操作。</p> <p>对于Linux系统还需执行清理命令</p> <p>rm -f /etc/udev/rules.d/70-persistent-* /var/lib/dhclient/* /var/lib/dhcp/*</p> <p>然后关机</p> <p>1)在【实例管理】页面,选择要进行&ldquo;制作镜像&rdquo;操作的实例,点击&ldquo;更多&rdquo;,选择&ldquo;制作镜像&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183414-1ad082389042.png" style="height:347px; width:880px" /></p> <p>2)在&ldquo;制作镜像&rdquo;页面,填写&ldquo;镜像名称&rdquo;和&ldquo;显示名称&rdquo;,并点击&ldquo;确定&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183500-1e0b28049f6e.png" style="height:341px; width:880px" /></p> <p>3)确定后,开始制作镜像。在&ldquo;云服务器&rdquo;菜单栏,点击&ldquo;镜像&rdquo;,进入镜像页面,可见制作的自定义镜像,状态为&ldquo;创建中&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183521-1f533f089a1f.png" style="height:226px; width:880px" /></p> <p>4)一段时间后,自定义镜像状态变为&ldquo;可用&rdquo;,表示自定义镜像制作完成</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183541-155f284893af.png" style="height:236px; width:880px" /></p> <p>5) 一个租户最多允许创建5个自定义镜像</p> <p>4.2自定义镜像创建实例</p> <p>1) &nbsp;在【云服务器ECS】-&gt;【实例】管理列表页面,点击&ldquo;<strong>+</strong>创建&rdquo;</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183617-1bade8029da1.png" style="height:204px; width:880px" /></p> <p>2) 在创建实例页面,根据需要选择各选项,镜像一栏选择&ldquo;自定义镜像&rdquo;,系统自动展示所选操作系统类型下的所有自定义镜像</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183634-1d9ca1959800.png" style="height:321px; width:880px" /></p> <p>3) 核对配置信息并点击购买</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183657-14ce41e89cf8.png" style="height:445px; width:880px" /></p> <p>4) 购买后开始创建实例,实例管理列表中状态为&ldquo;创建中&ldquo;,实例镜像名称后有一面绿色小旗帜,几分钟之后状态变为&rdquo;运行中&ldquo;,表示该自定义镜像实例创建完成。</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183725-1ac906c99c91.png" style="height:178px; width:880px" /></p> <p>4.3删除自定义镜像</p> <p>可以对自定义镜像进行删除操作,表示对自定义镜像立即删除。</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183741-1eea32cd93ec.png" style="height:238px; width:880px" /></p> <p>4.4编辑自定义镜像</p> <p>可以对自定义镜像的显示名称进行编辑操作</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183758-1b3ffe869a35.png" style="height:243px; width:880px" /></p> <p>4.5上传镜像</p> <p>支持用户上传镜像,在上传镜像前需按照详细镜像制作手册制作镜像手册及安装包如下,如果跳过此步骤将会影响云服务器功能使用,强烈推荐按照如下步骤执行:</p> <p>Linux:</p> <p><a href="https://obs-cn-shanghai.yun.pingan.com/pacloud/%E5%85%AC%E6%9C%89%E4%BA%91Linux%E4%B8%BB%E6%9C%BA%E6%A8%A1%E6%9D%BF%E5%88%B6%E4%BD%9C%E6%8C%87%E5%AF%BC%E6%89%8B%E5%86%8C.zip?response-content-disposition=attachment%3Bfilename%3D%25E5%2585%25AC%25E6%259C%2589%25E4%25BA%2591Linux%25E4%25B8%25BB%25E6%259C%25BA%25E6%25A8%25A1%25E6%259D%25BF%25E5%2588%25B6%25E4%25BD%259C%25E6%258C%2587%25E5%25AF%25BC%25E6%2589%258B%25E5%2586%258C.zip">https://obs-cn-shanghai.yun.pingan.com/pacloud/%E5%85%AC%E6%9C%89%E4%BA%91Linux%E4%B8%BB%E6%9C%BA%E6%A8%A1%E6%9D%BF%E5%88%B6%E4%BD%9C%E6%8C%87%E5%AF%BC%E6%89%8B%E5%86%8C.zip?response-content-disposition=attachment%3Bfilename%3D%25E5%2585%25AC%25E6%259C%2589%25E4%25BA%2591Linux%25E4%25B8%25BB%25E6%259C%25BA%25E6%25A8%25A1%25E6%259D%25BF%25E5%2588%25B6%25E4%25BD%259C%25E6%258C%2587%25E5%25AF%25BC%25E6%2589%258B%25E5%2586%258C.zip</a></p> <p>Windows:</p> <p><a href="https://obs-cn-shanghai.yun.pingan.com/pacloud/%E5%85%AC%E6%9C%89%E4%BA%91Windows%E4%B8%BB%E6%9C%BA%E6%A8%A1%E6%9D%BF%E5%88%B6%E4%BD%9C%E6%8C%87%E5%AF%BC%E6%89%8B%E5%86%8C.zip?response-content-disposition=attachment%3Bfilename%3D%25E5%2585%25AC%25E6%259C%2589%25E4%25BA%2591Windows%25E4%25B8%25BB%25E6%259C%25BA%25E6%25A8%25A1%25E6%259D%25BF%25E5%2588%25B6%25E4%25BD%259C%25E6%258C%2587%25E5%25AF%25BC%25E6%2589%258B%25E5%2586%258C.zip">https://obs-cn-shanghai.yun.pingan.com/pacloud/%E5%85%AC%E6%9C%89%E4%BA%91Windows%E4%B8%BB%E6%9C%BA%E6%A8%A1%E6%9D%BF%E5%88%B6%E4%BD%9C%E6%8C%87%E5%AF%BC%E6%89%8B%E5%86%8C.zip?response-content-disposition=attachment%3Bfilename%3D%25E5%2585%25AC%25E6%259C%2589%25E4%25BA%2591Windows%25E4%25B8%25BB%25E6%259C%25BA%25E6%25A8%25A1%25E6%259D%25BF%25E5%2588%25B6%25E4%25BD%259C%25E6%258C%2587%25E5%25AF%25BC%25E6%2589%258B%25E5%2586%258C.zip</a></p> <p>制作完成后,上传到OBS存储中,注意区域选择,上传镜像的模板区域应该与上传OBS区域相同。</p> <p>选择【云服务器】-&gt;【镜像】-&gt;【区域】,点击右上角 上传镜像</p> <p>| &nbsp;URL &nbsp;镜像文件的OBS下载URL</p> <p>l&nbsp; 格式 需要上传镜像的格式如QCOW2</p> <p>l&nbsp; 操作系统类型 镜像操作类型,目前支持6种</p> <p>l&nbsp; MD5SUM 镜像的MD5值</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20182307183848-1a4e5aa4954d.png" style="height:421px; width:880px" /></p> <p><span style="color:#333333; font-family:Arial Normal,Arial">导入镜像步骤:</span></p> <p><span style="color:#333333; font-family:Arial Normal,Arial">第1步:请务必按照详细镜像制作手册步骤自定义您的镜像</span></p> <p><span style="color:#333333; font-family:Arial Normal,Arial">第2步:开通对象存储OBS服务</span></p> <p><span style="color:#333333; font-family:Arial Normal,Arial">第3步:参考云服务器ECS帮助文档,将制作好的镜像文件上传到与导入镜像相同地域的bucket下</span></p> <p><span style="color:#333333; font-family:Arial Normal,Arial">第4步:请确认已经授权账号可以访问您的OBS的权限确认地址</span></p> <p>&nbsp;</p> <p>镜像文件暂时有如下限制</p> <p>模板格式</p> <p>QCOW2</p> <p>模板操作系统</p> <p>CentOS6.7_64bit&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>CentOS7.2_64bit</p> <p>UbuntuServer14.04_64bit</p> <p>UbuntuServer16.04_64bit</p> <p>Windows Server 2008 R2_64bit</p> <p>Windows Server 2012 R2_64bit</p>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询 - 7x24 小时

400-151-8800

邮件咨询

pub_pinganyun@pingan.com.cn

在线客服

7x24 小时,急速解答

工单支持

解决云产品相关技术问题