<h3 style="font-size: 16px; padding: 0px; margin: 15px 0px 10px; line-height: 28.799999237060547px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">一、拷贝cms公钥到managed上,cms依赖免秘钥的root执行环境</h3> <pre style="padding: 5px; margin-top: 10px; margin-bottom: 10px; margin-left: 20px; line-height: 18px; font-size: 9pt; font-family: 'Courier New', Arial; border-width: 1px 1px 1px 5px; border-style: solid; border-color: #dddddd #dddddd #dddddd #6ce26c; color: #333333; background-color: #f6f6f6;"><code style="padding: 0px; margin: 0px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, 'monospace !important'; border: none; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; color: #40aa53; background-color: transparent;">#非默认端口,你懂的 <br style="padding: 0px; margin: 0px;" />ssh-copy-id -i ~/.ssh/id_rsa.pub "-p port_number root@192.168.201.74" </code></pre> <h3 style="font-size: 16px; padding: 0px; margin: 15px 0px 10px; line-height: 28.799999237060547px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">二、managed上存放iso目录,拷贝镜像存放到该目录</h3> <pre style="padding: 5px; margin-top: 10px; margin-bottom: 10px; margin-left: 20px; line-height: 18px; font-size: 9pt; font-family: 'Courier New', Arial; border-width: 1px 1px 1px 5px; border-style: solid; border-color: #dddddd #dddddd #dddddd #6ce26c; color: #333333; background-color: #f6f6f6;"><code style="padding: 0px; margin: 0px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, 'monospace !important'; border: none; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; color: #40aa53; background-color: transparent;">#目录位置和名称随意,只是模板里指定的时候须要指定好便可 <br style="padding: 0px; margin: 0px;" />mkdir /opt/iso <br style="padding: 0px; margin: 0px;" /><br style="padding: 0px; margin: 0px;" /># ls /opt/iso/ <br style="padding: 0px; margin: 0px;" />CentOS-6.4-x86_64-bin-DVD1.iso </code></pre> <h3 style="font-size: 16px; padding: 0px; margin: 15px 0px 10px; line-height: 28.799999237060547px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">三、增长managed</h3> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">一、DataCenter增长server pool</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205354_G383.png" alt="NewImage" width="329" height="150" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">二、server pool中增长server,可选XEN和KVM,根据本身的环境,我这里是KVM</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205355_G2Q7.png" alt="NewImage" width="389" height="145" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">三、机器链接信息,这里强调是root免秘钥登陆,不然后面不少操做受限</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205730_iMbw.png" alt="NewImage" width="392" height="283" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">四、增长完成以后就能够看到managed的信息了,之后的虚机都是在CMS管辖范围内的managed上建立的</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205214_GhG9.png" alt="NewImage" width="224" height="64" border="0" /></p> <h3 style="font-size: 16px; padding: 0px; margin: 15px 0px 10px; line-height: 28.799999237060547px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">四、建立模板</h3> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">由于后期都是通用建立操做,因此果断的建立模板,第一次什么模板机都没有的状况下,经过iso安装第一台 <br style="padding: 0px; margin: 0px;" />a.建立template<br style="padding: 0px; margin: 0px;" /> </p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">b.选定镜像路径,名称,平台信息等,建立完成信息以下<br style="padding: 0px; margin: 0px;" /><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205728_42H2.png" alt="NewImage" width="505" height="199" border="0" /> <br style="padding: 0px; margin: 0px;" /><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205729_ZxC9.png" alt="NewImage" width="226" height="194" border="0" /> </p> <h3 style="font-size: 16px; padding: 0px; margin: 15px 0px 10px; line-height: 28.799999237060547px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">五、建立第一台虚机</h3> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">a.建立的方式能够经过两种方式,能够直接操做模板或者直接操做某台managed</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205727_06YN.png" alt="NewImage" width="433" height="499" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">b.下面就是通用信息,选择模板,内存,CPU,等等,注意选择开机启动VM</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205216_dcIB.png" alt="NewImage" width="510" height="385" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">c.第一次启动用光盘镜像启动,后期安装完成以后就改回来</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205725_CSVQ.png" alt="NewImage" width="485" height="363" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">d.网卡必定是br0,除非你不想通讯,其他信息都是template里给定的<br style="padding: 0px; margin: 0px;" /> <img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205726_piMu.png" alt="NewImage" width="494" height="368" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">e.仿照这个模式建立managed承受范围内数量的虚机<br style="padding: 0px; margin: 0px;" /><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205217_dLxO.png" alt="NewImage" width="334" height="176" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">f.建立完成以后,经过console口链接,等同于链接显示器</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205723_mwFb.png" alt="NewImage" width="216" height="403" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">g.实际上console口也是经过vnc链接,注意这二者区别,第一种直接启动本机的Java环境来建立一个vnc的接口,实际上就是经过在cms上建立了一个vnc端口,managed上启动了一个转发端口,因此要求本机的Java环境要正确;第二种是经过启动一个端口,可是不进行任何操做,须要自行启动本机上的vnc程序进行链接,固然方便的是直接启动本机Java环境直接建立一个vnc链接</p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205722_fuyA.png" alt="NewImage" width="256" height="170" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;"><img title="NewImage.png" src="http://static.oschina.net/uploads/img/201407/14205721_0eeA.png" alt="NewImage" width="556" height="346" border="0" /></p> <p style="margin: 8px 0px; letter-spacing: 0.5px; padding: 0px; line-height: 22.5px; font-size: 13px; color: #333333; font-family: 微软雅黑, Verdana, sans-serif, 宋体;">h.到了这里又是很熟悉的界面了,若是环境中有pxe或者是cobbler,那么直接网络安装就OK了。</p>网络