設定 /etc/sysconfig/network-scripts/ifcfg-eth0 內容如下
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=static
IPADDR=162.243.64.147
NETMASK=255.255.255.0
GATEWAY=162.243.64.1
DOMAIN=freelab.tw
DNS1=8.8.8.8
DNS2=8.8.4.4
ONBOOT=yes
DEFROUTE=yes
===================================================
設定/etc/sysconfig/network-scripts/ifcfg-eth1 內容如下
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.128.23.110
DEFROUTE=no
===================================================
設定/etc/sysconfig/network-scripts/ifcfg-eth2 內容如下
DEVICE=eth2
TYPE=Ethernet
ONBOOT=yes
DEFROUTE=no
***************************************************
設定 /etc/selinux/config 增加以下內容
SELINUX=permissive
設定 /etc/sysconfig/network-scripts/ifcfg-eth0 內容如下
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=static
IPADDR=162.243.64.148
NETMASK=255.255.255.0
GATEWAY=162.243.64.1
DOMAIN=freelab.tw
DNS1=8.8.8.8
DNS2=8.8.4.4
ONBOOT=yes
DEFROUTE=yes
===================================================
設定/etc/sysconfig/network-scripts/ifcfg-eth1 內容如下
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.128.23.136
DEFROUTE=no
===================================================
設定/etc/sysconfig/network-scripts/ifcfg-eth2 內容如下
DEVICE=eth2
TYPE=Ethernet
ONBOOT=yes
DEFROUTE=no
***************************************************
設定 /etc/selinux/config 增加以下內容
SELINUX=permissive
1.測試openstack1與openstack2可以正確連結
登入至openstack1主機
ping openstack2主機外部ip
ping 162.243.64.148
ping openstack2主機內部ip
ping 10.128.23.136
登入至openstack2主機
ping openstack1主機外部ip
ping 162.243.64.147
ping openstack1主機內部ip
ping 10.128.23.110
2.先安裝第一部OpenStack節點,相關配置如下
CentOS 6.4 x64、記憶體2GB、硬碟20GB、網路卡2片
3.安裝步驟
更新套件
yum upgrade;yum update
安裝nmap及vim(筆者常用的工具)
yum install nmap vim tcpdump
###################################################
4.安裝OpenStack Havana套件來源套件庫
yum install -y http://rdo.fedorapeople.org/openstack-havana/rdo-release-havana.rpm
5.安裝Packstack套件
yum install -y openstack-packstack
6.執行Packstack開始安裝openstack套件,匯入answer-file
請登入到openstack1主機
產生multi-node.txt
packstack --gen-answer-file=multi-node.txt
修改multi-node.txt內容如下
CONFIG_NOVA_VNCPROXY_HOST=162.243.64.147
CONFIG_NOVA_COMPUTE_HOSTS=10.128.23.110,10.128.23.136
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=vlan
CONFIG_NEUTRON_OVS_VLAN_RANGES=physnet1:10:20
CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet1:br-eth2
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-eth2:eth2
CONFIG_NTP_SERVERS=0.uk.pool.ntp.org,1.uk.pool.ntp.org
CONFIG_SWIFT_INSTALL=y
CONFIG_HEAT_INSTALL=y
CONFIG_HEAT_CFN_INSTALL=y
CONFIG_NOVA_SCHED_CPU_ALLOC_RATIO=1.0
CONFIG_NOVA_SCHED_RAM_ALLOC_RATIO=1.0
開始安裝openstack havana
packstack --answer-file=multi-node.txt
請登入到openstack2主機
產生multi-node.txt
packstack --gen-answer-file=multi-node.txt
修改multi-node.txt內容如下
CONFIG_NOVA_VNCPROXY_HOST=162.243.64.147
CONFIG_NOVA_COMPUTE_HOSTS=10.128.23.110,10.128.23.136
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=vlan
CONFIG_NEUTRON_OVS_VLAN_RANGES=physnet1:10:20
CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet1:br-eth2
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-eth2:eth2
CONFIG_NTP_SERVERS=0.uk.pool.ntp.org,1.uk.pool.ntp.org,2.uk.pool.ntp.org,3.uk.pool.ntp.org
CONFIG_SWIFT_INSTALL=y
CONFIG_HEAT_INSTALL=y
CONFIG_HEAT_CFN_INSTALL=y
CONFIG_NOVA_SCHED_CPU_ALLOC_RATIO=1.0
CONFIG_NOVA_SCHED_RAM_ALLOC_RATIO=1.0
開始安裝openstack havana
packstack --answer-file=multi-node.txt
補充參考資料
Building an Openstack Cloud
CentOS 6.4 Openstack Havana 多節點安裝(OVS+VLAN)
openflow.org
OpenFlow原理
你的網卡有設定為 promiscuous mode 嗎?
還在設定耶~
加油, 不用臉色鐵青啦.
compute 不需promiscuous mode, 但是data和management需要promiscuous mode.
不知你的data和management是否分開?