在Centos 7上使用Devstack快速安裝Openstack

來源:互聯網
上載者:User

標籤:devstack

準備環境:

1)最小安裝Centos 7(6G記憶體+50G硬碟)

2) selinux、iptables關閉systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall開機啟動setenforce 0

# 使用豆瓣pip源

 

mkdir -p ~/.pip           vi ~/.pip/pip.conf[global]index-url = http://pypi.douban.com/simple/[install]trusted-host = pypi.douban.com


下載並安裝EPEL

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm -ivh epel-release-latest-7.noarch.rpmyum repolist      ##檢查是否已添加至源列表


為系統安裝必要的工具包:

yum install -y Python-pippip install --upgrade pippip install -U os-testr yum -y install bridge-utils  yum -y install net-tools  yum install -y git yum-utils

 更新系統

yum update

3)添加一個openstack使用者

useradd -d /opt/stack -m -s /bin/bash stackecho "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

4)su進入新使用者並複製devstack

su - stackgit clone https://git.openstack.org/openstack-dev/devstack5)安裝devstackcd devstack./stack.sh

等待2-3分鐘,您將看到MySQL資料庫,RabbitMQ,服務管理員,服務身分識別驗證和Horizon和Keystone服務的密碼提示。

預計剩餘的安裝步驟需要至少10-30分鐘的長時間(具體取決於您的互連網串連。

6)安裝完成後就可以訪問




*************************************************************************************************

啟動 OpenStack

報錯問題處理:

/stack.sh: line 488: generate-subunit: command not found

sudo yum install -y Python-pip

sudo pip install --upgrade pip

sudo pip install -U os-testr 


本文出自 “Mr-G營運知識庫” 部落格,謝絕轉載!

在Centos 7上使用Devstack快速安裝Openstack

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.