convirt(二)—— 建立第一臺虛機

<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>網絡

相關文章
相關標籤/搜索