使用centos6.5搭建单节点OpenStack
条件:需要CentOS-6.5-x86_64-bin-DVD1、CentOS-6.5-x86_64-bin-DVD2、XianDian-IaaS-v1.4镜像
- 修改主机名
hostname controller
vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=controller
- 配置网络
##内部网络,我使用的是仅主机模式
[root@controller ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:45:97:3D
TYPE=Ethernet
UUID=dab56baa-0af8-4811-9662-79118507986a
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.100.50
GATEWAY=192.168.100.1
NETMASK=255.255.255.0
##外部网络,使用NAT模式
[root@controller ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth1
HWADDR=00:0C:29:45:97:47
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.131.50
GATEWAY=192.168.131.2
NETMASK=255.255.255.0
DNS1=114.114.114.114
- 关闭防火墙
service iptables stop #关闭防火墙
chkconfig iptables off #设置开机不自启
- 关闭SELinux