1. 云栖社区>
  2. 博客>
  3. 正文


技术小阿哥 2017-11-27 15:52:00 浏览1068

使用两个节点手动安装OpenStack的Ocata版本     controller   compute



root@controller:~# apt install software-properties-common

root@controller:~# add-apt-repository cloud-archive:ocata

 Ubuntu Cloud Archive for OpenStack Ocata

 More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive

Press [ENTER] to continue or ctrl-c to cancel adding it

Reading package lists...

Building dependency tree...

Reading state information...

The following NEW packages will be installed:


0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.

Need to get 5,086 B of archives.

After this operation, 34.8 kB of additional disk space will be used.

Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el ubuntu-cloud-keyring all 2012.08.14 [5,086 B]

Fetched 5,086 B in 0s (5,433 B/s)

Selecting previously unselected package ubuntu-cloud-keyring.

(Reading database ... 52388 files and directories currently installed.)

Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...

Unpacking ubuntu-cloud-keyring (2012.08.14) ...

Setting up ubuntu-cloud-keyring (2012.08.14) ...

Importing ubuntu-cloud.archive.canonical.com keyring


Processing ubuntu-cloud.archive.canonical.com removal keyring

gpg: /etc/apt/trustdb.gpg: trustdb created


root@controller:/etc/apt/sources.list.d# cat cloudarchive-ocata.list

deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main

# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main

root@controller:~# apt update && apt dist-upgrade 

root@controller:~# apt install python-openstackclient -y


root@controller:~# apt install mariadb-server python-pymysql -y

root@controller:~# cat /etc/mysql/mariadb.conf.d/99-openstack.cnf


bind-address =

default-storage-engine = innodb

innodb_file_per_table = on

max_connections = 4096

collation-server = utf8_general_ci

character-set-server = utf8

root@controller:~# service mysql restart

root@controller:~# service mysql status

3、安装memacached keystone nova neutron dashboard

apt install -y memcached python-memcache keystone glance nova-api nova-conductor nova-consoleauth nova-novncproxy nova-scheduler  neutron-server neutron-plugin-ml2  neutron-linuxbridge-agent neutron-l3-agent neutron-dhcp-agent   neutron-metadata-agent   openstack-dashboard


root@controller:~# apt install rabbitmq-server -y

root@controller:~# rabbitmqctl add_user openstack zoomtech

Creating user "openstack" ...

root@controller:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*"

Setting permissions for user "openstack" in vhost "/" ...


root@controller:~# vim /etc/memcached.conf


root@controller:~# service memcached restart

root@controller:~# service memcached status

本文转自 OpenStack2015 51CTO博客,原文链接:http://blog.51cto.com/andyliu/1902047,如需转载请自行联系原作者