Canonical的 Ubuntu Cloud Archive(https://wiki.ubuntu.com/ServerTeam/CloudArchive)允许用户在Ubuntu 12.04
LTS 服务器版上安装较新版本的OPenStack(和依赖包),因为它们在Ubuntu LTS的后续发布版本上仍然能够使用。
Canonical承诺至少在Ubuntu发布后18个月内,在Ubuntu server 12.04LTS的Ubuntu Cloud Archive里维护和支持Open
stack发布的新版本。Ubuntu Cloud Archive文件应该被用于所有的OpenStack节点(即不需要负载均衡节点)。
在整个安装过程中使用sudo模式或root账户:
sudo su
添加cloud archive的gpg密钥到你的Ubuntu-keyring:
apt-get install ubuntu-cloud-keyring
启用Ubuntu Cloud Archive仓库通过添加下述内容到/etc/apt/sources.list.d/grizzly.list:
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main
更新你的系统:
apt-get update && apt-get upgrade
4.1.3Networking
我们使用VLAN实现分隔某些网络,确保VLAN包已经安装和你的网络交换机已经配置VLAN。否则,只能通过
物理接口复制网络设置:
apt-get install vlan -y
负载均衡节点slb01 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.81
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
负载均衡节点slb02 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.82
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
存储节点 swift01 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# Storage Network
auto eth0.222
iface eth0.222 inet static
address 192.168.222.62
netmask 255.255.255.0
控制节点 control01 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.41
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
控制节点 control02 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.42
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
控制节点 control03 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.43
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
计算节点 compute01 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.51
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
# Public Network: Bridged Interface
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ifconfig $IFACE 0.0.0.0 down
计算节点 compute02 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.52
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
# Public Network: Bridged Interface
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ifconfig $IFACE 0.0.0.0 down
计算节点 compute03 /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.220.53
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
gateway 192.168.220.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.220.254
dns-search dmz-pod2.lab
# Public Network: Bridged Interface
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ifconfig $IFACE 0.0.0.0 down
重启网络:
/etc/init.d/networking restart