CloudStack 4.4+KVM之管理伺服器安裝
CloudStack 4.4+KVM之KVM計算節點安裝
CloudStack 4.4+KVM之CloudStack配置過程
CloudStack 4.4+KVM之通過ISO檔案建立CentOS虛拟機
<a href="http://koumm.blog.51cto.com/703525/1564958" target="_blank">http://koumm.blog.51cto.com/703525/1564958</a>
CloudStack 4.4+KVM之虛拟機模闆建立
<a href="http://koumm.blog.51cto.com/703525/1565551" target="_blank">http://koumm.blog.51cto.com/703525/1565551</a>
CloudStack 4.4+KVM之虛拟機線上動态遷移
<a href="http://koumm.blog.51cto.com/703525/1565556" target="_blank">http://koumm.blog.51cto.com/703525/1565556</a>
本文出自:http://koumm.blog.51cto.com
與其它虛拟化平台管理平台一樣,Cloudstack可以通過作業系統ISO檔案進行安裝Linux虛拟機作業系統。但是Cloudstack不支援直接上傳ISO檔案到伺服器上,需要采用http方式下載下傳ISO
檔案下載下傳到輔助存儲空間中。
本例是在192.168.10.185伺服器上安裝apache伺服器,将CentOS-5.8 ISO檔案上傳到/var/www/html目錄下。
1
2
3
4
5
6
7
8
<code># yum install httpd</code>
<code># vi /etc/httpd/conf/httpd.conf</code>
<code>取消如下行注釋并修改如下内容 </code>
<code>ServerName 127.0.0.1:80 </code>
<code>新添加如下内容: </code>
<code>AddType text</code><code>/html</code> <code>.iso</code>
<code># service httpd start </code>
<code># service httpd on</code>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470018O2zn.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470024yuW0.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470033mWnv.png" target="_blank"></a>
重新開機方式: 分别點選v-2-VM、s-3-VM虛拟機,按照如下方式重新開機虛拟機。
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470037J6hr.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470040vkYV.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470044N6qs.png" target="_blank"></a>
确定後,提示注冊成功
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470048P3Y3.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_14134700517Kg7.png" target="_blank"></a>
已就緒yes,與狀态Successfully Installed表示成功。
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470054KKgI.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470060t39s.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470067IQYV.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_14134700748458.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470082pLbc.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470090QHma.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470099BN6I.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470108rOx4.png" target="_blank"></a>
點選啟動VM會提示建立完成。如下圖所示。
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470116srtn.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470120IPVV.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_14134701240FBo.png" target="_blank"></a>
點選快速檢視+,檢視控制台可以看到安裝過程。(注:這裡需要在KVM主機上關閉防火牆,否則控制無法打開。)
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470129F5Op.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470142tfBf.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470161Z6Gw.png" target="_blank"></a>
安裝完成後,取消ISO挂載,否則會啟動iso.
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470173jNVI.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470184fulG.png" target="_blank"></a>
ssh登入如下:
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470205n6uw.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_14134702195wa2.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470225ep03.png" target="_blank"></a>
<a href="http://koumm.blog.51cto.com/attachment/201410/16/703525_1413470231YydQ.png" target="_blank"></a>
到此通過在cloudstack平台上通過ISO檔案建立CentOS虛拟機成功。
本文轉自 koumm 51CTO部落格,原文連結:http://blog.51cto.com/koumm/1564958,如需轉載請自行聯系原作者