2014-06-23

在Windows上的VMWare CentOS Linux上安裝OpenStack IceHouse 步驟 第二章

上週參加Taiwan OpenStack User Group (TWOSUG) 1st Meetup in 2014, 有百餘人參加.
主講者Tom Fifield表示他就是在Notebook的VMWare上裝OpenStack的. 最新的 Ice House 版安裝說明已由20餘萬字大幅縮減至2萬餘字 所以應該是很容易了解的
到OpenStack 上找到 RedHat/ CentOS 的安裝說明如下連結:
Installation Guide for Red Hat Enterprise Linux, CentOS, and Fedora
有14大項. 研討會主持人表示能在兩日內裝完就已是神人.
我由第二章開始嘗試.
先在VMware上安裝CentOS 64Bit V6.5
除自動產生的NAT網卡外 另新加5張固定IP的網卡
10.0.0.11
10.0.0.21
10.0.0.31
10.0.1.21
10.0.1.31
2. Basic environment configuration
Figure 2.1. Three-node architecture with OpenStack Networking (neutron)

 Controller node

 
To configure networking:
  • Configure the first interface as the management interface:
    IP address: 10.0.0.11
    Network mask: 255.255.255.0 (or /24)
    Default gateway: 10.0.0.1

 Network node

 
To configure networking:
  1. Configure the first interface as the management interface:
    IP address: 10.0.0.21
    Network mask: 255.255.255.0 (or /24)
    Default gateway: 10.0.0.1
  2. Configure the second interface as the instance tunnels interface:
    IP address: 10.0.1.21
    Network mask: 255.255.255.0 (or /24)
  3. The external interface uses a special configuration without an IP address assigned to it. Configure the third interface as the external interface:
    Replace INTERFACE_NAME with the actual interface name. For example, eth2 or ens256.
    1. Edit the /etc/sysconfig/network-scripts/ifcfg-INTERFACE_NAME file to contain the following:
      Do not change the HWADDR and UUID keys.
      DEVICE=INTERFACE_NAME
      TYPE=Ethernet
      ONBOOT="yes"
      BOOTPROTO="none"
  4. Restart networking:
    # service network restart
 
To configure name resolution:
  • Edit the /etc/hosts file to contain the following:
    # network
    10.0.0.21       network
    
    # controller
    10.0.0.11       controller
    
    # compute1
    10.0.0.31       compute1

 Compute node

 
To configure networking:
  1. Configure the first interface as the management interface:
    IP address: 10.0.0.31
    Network mask: 255.255.255.0 (or /24)
    Default gateway: 10.0.0.1
    [Note] Note
    Additional compute nodes should use 10.0.0.32, 10.0.0.33, and so on.
  2. Configure the second interface as the instance tunnels interface:
    IP address: 10.0.1.31
    Network mask: 255.255.255.0 (or /24)
    [Note] Note
    Additional compute nodes should use 10.0.1.32, 10.0.1.33, and so on.
 
To configure name resolution:
  • Edit the /etc/hosts file to contain the following:
    # compute1
    10.0.0.31       compute1
    
    # controller
    10.0.0.11       controller
    
    # network
    10.0.0.21       network

Verify connectivity

We recommend that you verify network connectivity to the internet and among the nodes before proceeding further.
  1. From the controller node, ping a site on the internet:
    # ping -c 4 openstack.org
    PING openstack.org (174.143.194.225) 56(84) bytes of data.
    64 bytes from 174.143.194.225: icmp_seq=1 ttl=54 time=18.3 ms
    
  2. From the controller node, ping the management interface on the network node:
    # ping -c 4 network
    PING network (10.0.0.21) 56(84) bytes of data.
    64 bytes from network (10.0.0.21): icmp_seq=1 ttl=64 time=0.263 ms
    
  3. From the controller node, ping the management interface on the compute node:
    # ping -c 4 compute1
    PING compute1 (10.0.0.31) 56(84) bytes of data.
    64 bytes from compute1 (10.0.0.31): icmp_seq=1 ttl=64 time=0.263 ms
    
  4. From the network node, ping a site on the internet:
    # ping -c 4 openstack.org
    PING openstack.org (174.143.194.225) 56(84) bytes of data.
    64 bytes from 174.143.194.225: icmp_seq=1 ttl=54 time=18.3 ms
    
  5. From the network node, ping the management interface on the controller node:
    # ping -c 4 controller
    PING controller (10.0.0.11) 56(84) bytes of data.
    64 bytes from controller (10.0.0.11): icmp_seq=1 ttl=64 time=0.263 ms
    
  6. From the network node, ping the instance tunnels interface on the compute node:
    # ping -c 4 10.0.1.31
    PING 10.0.1.31 (10.0.1.31) 56(84) bytes of data.
    64 bytes from 10.0.1.31 (10.0.1.31): icmp_seq=1 ttl=64 time=0.263 ms
    
  7. From the compute node, ping a site on the internet:
    # ping -c 4 openstack.org
    PING openstack.org (174.143.194.225) 56(84) bytes of data.
    64 bytes from 174.143.194.225: icmp_seq=1 ttl=54 time=18.3 ms
    
  8. From the compute node, ping the management interface on the controller node:
    # ping -c 4 controller
    PING controller (10.0.0.11) 56(84) bytes of data.
    64 bytes from controller (10.0.0.11): icmp_seq=1 ttl=64 time=0.263 ms
    
  9. From the compute node, ping the instance tunnels interface on the network node:
    # ping -c 4 10.0.1.21
    PING 10.0.1.21 (10.0.1.21) 56(84) bytes of data.
    64 bytes from 10.0.1.21 (10.0.1.21): icmp_seq=1 ttl=64 time=0.263 ms
    

沒有留言:

張貼留言