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,如需转载请自行联系原作者