检查基础环境:安装额外的软件包 是否卸载firewalld 和 NetworkManager

本案例要求准备基础环境,为安装openstack做准备:

安装额外的软件包
是否卸载firewalld 和 NetworkManager
检查配置主机网络参数(静态IP)
主机名必须能够相互 ping 通
检查配置主机yum源(4个,10670)
依赖软件包是否安装
检查NTP服务器是否可用
检查 /etc/resolv.conf 不能有 search 开头的行

4.2 步骤

实现此案例需要按照如下步骤进行。

步骤一:检查基础环境

1)安装额外软件包(三台机器操作,这里以一台为例)

[root@openstack yum.repos.d]# yum install -y qemu-kvm libvirt-client libvirt-daemon libvirt-daemon-driver-qemu python-setuptools

2)是否卸载firewalld 和 NetworkManager

[root@openstack ~]# rpm -qa  | grep NetworkManager*
[root@openstack ~]# rpm -qa  | grep firewalld*   

3)检查配置主机网络参数

[root@openstack ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 
# Generated by dracut initrd
DEVICE="eth0"
ONBOOT="yes"
NM_CONTROLLED="no"
TYPE="Ethernet"
BOOTPROTO="static"
PERSISTENT_DHCLIENT="yes"
IPADDR=192.168.1.10
NEMASK=255.255.255.0
GATEWAY=192.168.1.254

4)验证主机名是否互通

[root@openstack ~]# ping openstack
...
64 bytes from openstack (192.168.1.10): icmp_seq=1 ttl=255 time=0.023 ms
64 bytes from openstack (192.168.1.10): icmp_seq=2 ttl=255 time=0.027 ms
...
[root@openstack ~]# ping nova01
PING nova01 (192.168.1.11) 56(84) bytes of data.
64 bytes from nova01 (192.168.1.11): icmp_seq=1 ttl=255 time=0.139 ms
...
[root@openstack ~]# ping nova02
PING nova02 (192.168.1.12) 56(84) bytes of data.
64 bytes from nova02 (192.168.1.12): icmp_seq=1 ttl=255 time=0.251 ms
...

5)检查配置主机yum源

[root@openstack ~]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
源标识                                                          源名称                                                           状态
RHEL7-extras                                                    RHEL7-extras                                                        76
RHEL7OSP-devtools                                               RHEL7OSP-devtools                                                    3
RHEL7OSP-package                                                RHEL7OSP-package                                                   680
local_repo                                                      CentOS-7 - Base                                                  9,911
repolist: 10,670

6)检查时间同步是否可用

[root@openstack ~]# chronyc  sources -v
210 Number of sources = 1
....
||                                 |    |           \
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^* gateway                       3   7   377    28    +31us[  +89us] +/-   25ms
[root@openstack ~]#

7)检查/etc/resolv.conf 不能有 search 开头的行

[root@openstack ~]# cat /etc/resolv.conf 
; generated by /usr/sbin/dhclient-script
nameserver 192.168.1.254

你可能感兴趣的:(CLOUD)