- 追加された行はこの色です。
- 削除された行はこの色です。
*Openstack (mitaka)のインストール [#af26d65a]
RIGHT:更新日 &lastmod();
**CentOSのインストール [#d8afc665]
OpenstackをインストールするOSはVMwareにインストール
-VMWare:Version11.1.4
-CentOS:7.2
***VMWareの設定 [#tcb133ee]
-CPU 4CPU
--優先モード:自動
--Intel VT-x/EPTまたは・・・・をチェック
-HDD 100GB
-他はデフォルト
***CentOSのインストール [#d20cc5a7]
-イメージ:CentOS-7-x86_64-Minimal-1511.iso
-言語は「English」その他は「日本語」
-HDD:100GB /boot:300MB swap:12GB /:残りすべて
&ref("./openstack1.png");
&ref("./openstack2.png");
&ref("./openstack3.png");
&ref("./openstack4.png");
&ref("./openstack5.png");
&ref("./openstack6.png");
&ref("./openstack7.png");
&ref("./openstack8.png");
&ref("./openstack9.png");
&ref("./openstack10.png");
&ref("./openstack11.png");
**Openstackのインストール [#i58eaea7]
***OS環境設定 [#v1bedceb]
-ネットワーク環境の変更
# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
# systemctl stop NetworkManager
# systemctl restart network
# yum -y install net-tools
-ntpdをインストール
時間は正確に合わせる
# yum install -y ntp
# service ntpd start
Redirecting to /bin/systemctl start ntpd.service
# systemctl enable ntpd
-ネットワークインターフェイスを変更
''/etc/sysconfig/network-scripts/ifcfg-eno16777736''
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=eno16777736
DEVICE=eno16777736
ONBOOT=yes
IPADDR=192.168.10.96
PREFIX=24
GATEWAY=192.168.10.245
DNS1=192.168.10.46
DOMAIN=ism21.net
-SELINUX無効化
''/etc/selinux/config''
SELINUX=disabled
# reboot
***Openstack Install [#z2b28c64]
# yum install -y centos-release-openstack-mitaka
# yum install -y openstack-packstack
# yum update -y
-Openstackインストール時の設定パラメータ用ファイルを作成編集
# packstack --gen-answer-file answer-file.txt
''answer-file.txt''
CONFIG_HEAT_INSTALL=y
オーケストレーション機能を有効化
CONFIG_SAHARA_INSTALL=y
データ処理サービスを有効化
CONFIG_LBAAS_INSTALL=y
ロードバランスサービスを有効化
CONFIG_NEUTRON_FWAAS=y
ファイアウォールサービスを有効化
CONFIG_TROVE_INSTALL=y
データベースサービスを有効化
CONFIG_HORIZON_SSL=y
ダッシュボードアクセスをhttpsに変更
CONFIG_KEYSTONE_ADMIN_PW=admin
パスワードをadminに変更
CONFIG_NTP_SERVERS=133.243.238.244
NTPサーバのアドレスを設定(ntp.nict.jp)
CONFIG_PROVISION_DEMO=n
デモ機能の無効化
CONFIG_NOVA_COMPUTE_PRIVIF=lo
CONFIG_NOVA_NETWORK_PUBIF=eno16777736
CONFIG_NOVA_NETWORK_PRIVIF=lo
# packstack --answer-file answer-file.txt
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20160730-061121-YCkNPH/openstack-setup.log
Packstack changed given value to required value /root/.ssh/id_rsa.pub
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
(略)
192.168.10.96_postscript.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
***環境設定 [#w15460fd]
''/etc/sysctl.conf''
net.ipv4.tcp_keepalive_intvl=1
net.ipv4.tcp_keepalive_time=5
net.ipv4.tcp_keepalive_probes=5
# Add JE2ISM
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.all.forwarding = 1
#cp ifcfg-eno16777736 ifcfg-br-ex
# systemctl disable firewalld
# systemctl stop firewalld
systemctl disable iptables
Removed symlink /etc/systemd/system/basic.target.wants/iptables.service.
# reboot
***ネットワークの確認 [#l867c870]
# ovs-vsctl show
a54ec695-21b6-4ca6-8b5a-e17a667f6939
# ovs-vsctl show
a54ec695-21b6-4ca6-8b5a-e17a667f6939
Bridge br-tun
fail_mode: secure
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port br-tun
Port br-tun
Interface br-tun
type: internal
Bridge br-int
Bridge br-int
fail_mode: secure
Port br-int
Interface br-int
type: internal
Port patch-tun
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-ex
Bridge br-ex
Port br-ex
Interface br-ex
type: internal
Port "eno16777736"
Port "eno16777736"
Interface "eno16777736"
ovs_version: "2.5.0"
ovs_version: "2.5.0"
***ダッシュボードにアクセス [#t305d1d4]
- https://(IP)/dashboard
-ID admin
-PASSWORD admin
&ref("./dashboard1.png");
**参考 [#k423bf9c]
-http://hirosanote.hatenablog.jp/entry/2016/04/16/223821
-http://www.adoc.co.jp/blog/e000247.html