centos8.5安装openstack V版(解决centos停服后yum源问题)

1、说明

三台物理服务器:1台控制节点,1台计算节点

操作系统版本:centos8.5

安装源:使用阿里永久镜像站、本地镜像源

2、环境规划

主机名         IP         角色 备注
controller 192.168.6.10 控制/网络/计算节点 开启虚拟化引擎
computer 192.168.6.20 计算节点 开启虚拟化引擎

3、系统环境配置

3.1、网络配置

3.1.1 控制节点

网卡设置

[root@controller ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens01

TYPE=Ethernet

BOOTPROTO=none

NAME=ens01

DEVICE=ens01

ONBOOT=yes

PROXY_METHOD=none

BROWSER_ONLY=no

IPADDR=192.168.6.10

PREFIX=24

GATEWAY=192.168.6.1

DNS1=114.114.114.114

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=no

UUID=ea74cf24-c2a2-ecee-3747-a2d76d46f93b

#重启网络

[root@controller ~]# ifdown ens01 && ifup ens01

Connection 'ens01' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)

Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)

关闭防火墙

[root@controller ~]# systemctl stop firewalld.service

[root@controller ~]# systemctl disable firewalld.service

Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

关闭 SELinux

[root@controller ~]# setenforce 0

[root@controller ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

关闭 NetworkManager

NetworkManager 会和 openstack 网络组件产生冲突,从而导致告警或错误,告警如下:

Warning: NetworkManager is active on 192.168.6.10, 192.168.6.20.

OpenStack networking currently does not work on systems that have the Network Manager service enabled.

[root@controller ~]# systemctl stop NetworkManager

[root@controller ~]# systemctl disable NetworkManager

Removed /etc/systemd/system/multi-user.target.wants/NetworkManager.service.

Removed /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.

Removed /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.

#服务关闭后,如果需要重启节点,有可能无法获取IP地址;可以手工启动服务,获取IP地址后,再次关闭即可。

3.1.2 计算节点

网卡设置

[root@computer ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens01

TYPE=Ethernet

BOOTPROTO=none

NAME=ens160

DEVICE=ens160

ONBOOT=yes

PROXY_METHOD=none

BROWSER_ONLY=no

IPADDR=192.168.6.20

PREFIX=24

GATEWAY=192.168.6.1

DNS1=114.114.114.114

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=no

UUID=f176a607-2cc5-420f-bb6f-b72e7ab5a1a5

#重启网络

[root@computer ~]# ifdown ens01 && ifup ens01

Connection 'ens01' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)

Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)

关闭防火墙

[root@computer ~]# systemctl stop firewalld.service

[root@computer ~]# systemctl disable firewalld.service

Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service

关闭 SELinux

[root@computer ~]# setenforce 0

[root@computer ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

关闭 NetworkManager

[root@computer ~]# systemctl stop NetworkManager

[root@computer ~]# systemctl disable NetworkManager

Removed /etc/systemd/system/multi-user.target.wants/NetworkManager.service.

Removed /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.

Removed /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.

#服务关闭后,如果需要重启节点,有可能无法获取IP地址;可以手工启动服务,获取IP地址后,再次关闭即可。

3.2 IP及主机名设置

3.2.1 控制节点
[root@controller ~]# echo '192.168.6.10 controller' >> /etc/hosts

[root@controller ~]# echo '192.168.6.10 computer' >> /etc/hosts

[root@controller ~]# cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.6.10 controller

192.168.6.20 computer

#拷贝至计算节点

[root@controller ~]# scp /etc/hosts root@computer:/etc/

The authenticity of host 'computer (192.168.6.20)' can't be established.

ECDSA key fingerprint is SHA256:46NRy6BtLjvAXpdXFKaLvAeA93QxkYRAtMaBxxiFRkg.

A
### CentOS 8.5 PPC 架构安装配置使用指南 #### 一、准备工作 对于PPC架构下的CentOS 8.5操作系统而言,在准备阶段需确认硬件兼容性和网络连接状况良好。由于官方支持有限,建议提前查阅社区文档获取更多关于特定处理器的支持详情[^1]。 #### 二、介质选择与下载 访问CentOS官方网站或其他可信镜像站点寻找适用于PowerPC (ppc64le)版本的操作系统映像文件。确保所选ISO镜像是针对目标平台优化过的稳定release而非测试性质的构建版本。 #### 三、启动引导设置 通过BIOS/UEFI菜单调整计算机优先从外部设备加载,比如USB驱动器或光盘。如果采用PXE方式,则要保证DHCP/TFTP务器已正确定义好boot image路径并指向正确的内核参数。 #### 四、分区布局规划 进入图形化或基于文本界面的安装向导后,按照个人需求设计磁盘划分方案。考虑到性能因素以及未来扩展可能性,推荐为主机预留足够的未分配空间以便日后创建逻辑卷管理LVM结构或者新增物理硬盘时能够灵活调配资。 #### 五、软件包选取策略 鉴于部分应用程序可能缺乏对power pc体系结构的良好适配度,因此在定制最小化环境之后再逐步添加必要的务组件会更加稳妥。利用yum同步最新更新的同时也可以探索EPEL等第三方仓库来弥补原生库覆盖范围不足之处。 #### 六、初始化安全加固措施 完成基本部署流程以后立即执行SELinux状态切换至enforcing模式,并开启防火墙规则过滤不必要的入站请求;另外就是修改SSH默认端口号减少暴力破解风险,同时启用公钥认证机制替代传统的密码登录形式提高安全性等级。 ```bash # 修改 SELinux 配置 setenforce 1 sed -i 's/^SELINUX=.*/SELINUX=enforcing/' /etc/selinux/config # 启动并设置firewalld开机自启 systemctl start firewalld.service systemctl enable firewalld.service # 编辑sshd_config 文件更改Port选项值 vi /etc/ssh/sshd_config service sshd restart ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

菜鸟&大叔

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值