您的位置:首页 > 产品设计 > UI/UE

Fuel for OpenStack体验

2013-12-20 15:29 501 查看
这次体验了下用Fule图形界面面快速安装openstack,确实挺不错的 。下面介绍下在kvm虚拟机下安装使用Fuse。

安装前说明

准备3台kvm虚拟机,vm1安装Fuel master,vm2安装openstack controller Node vm3 安装openstack computer node。

vm3 需要支持cpu虚拟化,可以参看http://inaction.blog.51cto.com/2629206/1265072

http://software.mirantis.com/ 注册下载Mirantis OpenStack iso文件

安装配置过程
1 fuel master虚拟机配置4个网络接口,其中br0连接连接到办公网络,虚拟机配置文件如下

<domain type='kvm'>
<name>test</name>
<description>test install instance</description>
<memory>4096288</memory>
<currentMemory>4096288</currentMemory> <!-- 1G鍐呭瓨-->
<vcpu>3</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/mnt/damon/mirantis.qcow2' />
<target dev='vda' bus='virtio'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/mnt/damon/Mirantis.iso'/>
<target dev='hdb' bus='ide'/>
</disk>
<!-- <disk type='file' device='cdrom'>
<source file='/home/Windows_Server_2003_x64_zhengban_CD1.iso'/>
<target dev='hdb' bus='ide'/>
</disk>
<disk type='file' device='floppy'>
<source file='/home/virtio-win-1.1.16.vfd'/>
<target dev='fda' bus='fdc'/>
</disk> -->
<interface type='bridge'>
<mac address='52:54:00:f5:78:11'/>
<source bridge='br0'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:66:67:12'/>
<source bridge='br1'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:66:66:23'/>
<source bridge='br2'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:66:77:77'/>
<source bridge='br3'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:66:88:88'/>
<source bridge='br4'/>
<model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' autoport='yes' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<alias name='video0'/>
</video>
<memballoon model='virtio'>
<alias name='balloon0'/>
</memballoon>
</devices>
</domain>
安装最好配置PXE的dhcp服务,重启后,就可以打开网页管理页面

2 再启动2台虚拟机本别作为openstack controller Node和openstack computer node,虚拟机配置如下

<domain type='kvm'>
<name>test1</name>
<description>test install instance</description>
<memory>4096288</memory>
<currentMemory>4096288</currentMemory>
<vcpu>3</vcpu>
<cpu mode='host-passthrough' />
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='network'/>
</os>
<features>
<acpi/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/mnt/damon/mirantis1.qcow2' />
<target dev='vda' bus='virtio'/>
</disk>
<!-- <disk type='file' device='cdrom'>
<source file='/home/Windows_Server_2003_x64_zhengban_CD1.iso'/>
<target dev='hdb' bus='ide'/>
</disk>
<disk type='file' device='floppy'>
<source file='/home/virtio-win-1.1.16.vfd'/>
<target dev='fda' bus='fdc'/>
</disk> -->
<interface type='bridge'>
<mac address='52:54:00:6d:44:66'/>
<source bridge='br1'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:6d:43:77'/>
<source bridge='br2'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:61:54:46'/>
<source bridge='br3'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:61:54:aa'/>
<source bridge='br4'/>
<model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' autoport='yes' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<alias name='video0'/>
</video>
<memballoon model='virtio'>
<alias name='balloon0'/>
</memballoon>
</devices>
</domain>


两台虚拟机启动后,正常的话会在页面自动监测到,然后可以配置网络如下







注意给连接管理的网络接口的的网桥配置网关,不然因为计算节点连不上mysqld而失败

3 配置好后,点击部署即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息