GETEWAY=10.50.9.254
修改主机名
# vi /etc/sysconfig/network
HOSTNAME=compute-1
yum list
for compute-1 host only:
yum -y update
init 6
CONFIG_SWIFT_INSTALL=y
CONFIG_HEAT_INSTALL=y
CONFIG_NTP_SERVERS=0.cn.pool.ntp.org,1.asia.pool.ntp.org
CONFIG_NAGIOS_INSTALL=y
CONFIG_KEYSTONE_ADMIN_PW=r
CONFIG_CINDER_VOLUMES_CREATE=n
CONFIG_NEUTRON_OVS_TUNNEL_IF=eth1
CONFIG_NAGIOS_PW=admin
按提示输入其他结点的密码
一、安装时增加一条rule
二、
1. Configure the EXTERNAL_INTERFACE without an IP address and in promiscuous mode. Additionally, you must set the newly created br-ex interface to have the IP address that formerly belonged to EXTERNAL_INTERFACE. Edit the /etc/sysconfig/network-scripts/ifcfg-EXTERNAL_INTERFACE file: DEVICE_INFO_HERE ONBOOT=yes BOOTPROTO=none PROMISC=yes 2. Create and edit the /etc/sysconfig/network-scripts/ifcfg-br-ex file: DEVICE=br-ex TYPE=Bridge ONBOOT=no BOOTPROTO=none IPADDR=EXTERNAL_INTERFACE_IP NETMASK=EXTERNAL_INTERFACE_NETMASK GATEWAY=EXTERNAL_INTERFACE_GATEWAY3. Add a port (connection) from the EXTERNAL_INTERFACE interface to br-ex interface: # ovs-vsctl add-port br-ex EXTERNAL_INTERFACE
4.ovs-vsctl add-port br-ex eth0; service network restart
三、所有计算结点修改/etc/nova/nova.conf,,以便启动VM的时候可以注入密码
libvirt_inject_passwd=true
四、关闭网卡LRO/GRO功能
现在大多数网卡都具有LRO/GRO功能,即 网卡收包时将同一流的小包合并成大包(tcpdump抓包可以看到>MTU 1500bytes的数据包)交给内核协议栈;LVS内核模块在处理>MTU的数据包时,会丢弃;
因此,如果我们用LVS来传输大文件,很容易出现丢包,传输速度慢;
解决方法,关闭LRO/GRO功能,命令:
ethtool -k eth0 查看LRO/GRO当前是否打开
ethtool -K eth0 lro off 关闭GRO
ethtool -K eth0 gro off 关闭GRO