美文网首页工作室
openstack单节点安装

openstack单节点安装

作者: 薛落花随泪绽放 | 来源:发表于2018-05-03 11:30 被阅读17次

    一、ip,主机名设置

    #vi /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=controller
    
    #vi /etc/sysconfig/network-scripts/ifcfg-eth0
    ONBOOT=yes
    NM_CONTROLLED=no
    BOOTPROTO=static
    IPADDR=192.168.154.230
    NETMASK=255.255.255.0
    GATEWAY=192.168.154.2
    

    二 、防火墙设置

    #iptables -F
    #iptables -X
    #iptables -Z
    #service iptables save
    

    三、配置映射

    #vi /etc/hosts
    192.168.154.230 controller
    

    四 、配置selinux

    #vi /etc/selinux/config
    SELINUX=permissive
    #setenforce 0
    #getenforce
    

    五、挂载

    //先上传XianDian-IaaS-v1.4.iso和CentOS-6.5-x86_64-bin_DVD.iso
    # mount -o loop XianDian-IaaS-v1.4.iso /mnt/
    #cp -rvf /mnt/* /opt
    #umount /mnt/
    #mkdir /opt/centos6/
    # mount -o loop CentOS-6.5-x86_64-bin_DVD.iso /mnt/
    # cp -rvf /mnt/* /opt/centos6
    # umount /mnt/
    

    六、设置yum源

    # cd /etc/yum.repos.d/
    # rm -rvf *
    # vi local.repo
    [centos]
    name=centos
    baseurl=file:///opt/centos6/
    gpgcheck=0
    enabled=1
    [iaas]
    name=iaas
    baseurl=file:///opt/iaas-repo/
    gpgcheck=0
    enabled=1
    

    七、安装组件

    # cd
    # yum install qpid-cpp-server
    vi /etc/qpidd.conf
    auto=no
    service qpidd start
    chkconfig qpidd on
    
    #yum install iaas-xiandian openstack-utils openstack-selinux
    #sed -i 's/^#//g' /etc/xiandian/openrc.sh
    #vi /etc/xiandian/openrc.sh
    :%s/PASS=/PASS=000000/g
    HOST_IP=192.168.154.230
    HOST_NAME=controller
    HOST_IP_NODE=192.168.154.230
    HOST_NAME_NODE=controller
    OBJECT_DISK_1=sdc
    BLOCK_DISK=sdb
    SWIFT_ZONE=3
    SWIFT_NODE=1
    

    八。运行脚本。

    #vi iaas-install-all-in-one.sh
    #!/bin/bash
    iaas-install-mysql.sh
    iaas-install-keystone.sh
    iaas-install-glance.sh
    iaas-install-nova-controller.sh
    iaas-install-nova-compute.sh
    iaas-install-neutron-controller.sh
    iaas-install-neutron-compute.sh
    iaas-install-neutron-controller-gre.sh
    iaas-install-dashboard.sh
    iaas-install-cinder-controller.sh
    iaas-install-cinder-compute.sh
    iaas-install-swift-controller.sh
    iaas-install-swift-compute.sh 
    iaas-install-heat.sh 
    iaas-install-ceilometer-controller.sh 
    iaas-install-ceilometer-compute.sh 
    
    #chmod +x iaas-install-all-in-one.sh
    ./iaas-install-all-in-one.sh
    

    九.修改nova.conf

    #vi /etc/nova/nova.conf
    virt_type=qemu
    #openstack-service restart
    

    相关文章

      网友评论

        本文标题:openstack单节点安装

        本文链接:https://www.haomeiwen.com/subject/sxqkrftx.html