分类: LINUX
2013-12-05 12:03:56
一、系统配置
1.修改网卡 emX为ethX
修改/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x14e4:0x163b (bnx2) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d4:ae:53:c4:ff:22", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x14e4:0x163b (bnx2) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d4:ae:53:c4:ff:23", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
重命名网卡配置文件并修改设备名称
mv /etc/sysconfig/network-scripts/ifcfg-em1 /etc/sysconfig/network-scripts/ifcfg-eth0
mv /etc/sysconfig/network-scripts/ifcfg-em2 /etc/sysconfig/network-scripts/ifcfg-eth1
将其中的DEVICE=em1改为eth0,DEVICE=em2改为eth1
修改完之后重启机器。
2.配置IP
主机名 角色 NIC1 IP地址(外网) NIC2 IP地址(内网) controller 控制节点 eth0 192.168.2.92 eht1 10.1.1.10 compute1 计算节点 eth0 192.168.2.93 eth1 10.1.1.11
3.安装packstack
yum install -yyum install openstack-packstack -y
二、packstack安装openstack
1.创建应答文件packstack --gen-answer-file my_answers.txt
2.编辑CONFIG_SWIFT_INSTALL=y CONFIG_NOVA_COMPUTE_HOSTS=10.1.1.10,10.1.1.11
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=gre CONFIG_NEUTRON_OVS_TUNNEL_RANGES=1:1000 CONFIG_NEUTRON_OVS_TUNNEL_IF=eth1
3.开始安装packstack --answer-file my_answers.txt
三、调整
1.设置br-excat /etc/sysconfig/network-scripts/ifcfg-br-ex
DEVICE=br-ex
IPADDR=192.168.2.92
PREFIX=16
GATEWAY=192.168.2.1
DNS1=114.114.114.114
ONBOOT=yescat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
HWADDR=78:2b:cb:4c:de:64
2.升级dnsmasq
版本要求高于2.59。
rpm -Uvh
参考链接