用虚拟机搭建iaas先电私有云平台

本文介绍了如何在虚拟机中搭建IaaS私有云平台,包括关闭SELinux和防火墙,配置YUM源,挂载ISO镜像,并划分磁盘空间用于Swift和Cinder。详细步骤包括编辑SELinux配置文件,停用firewalld服务,设置主机名映射,创建YUM源,并安装相关软件包。
摘要由CSDN通过智能技术生成

2: eno16777728: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000

link/ether 00:0c:29:01:7e:b7 brd ff:ff:ff:ff:ff:ff

inet 192.168.1.20/24 brd 192.168.1.255 scope global eno16777728

valid_lft forever preferred_lft forever

inet6 fe80::20c:29ff:fe01:7eb7/64 scope link

valid_lft forever preferred_lft forever

3: eno33554960: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UP qlen 1000

link/ether 00:0c:29:01:7e:c1 brd ff:ff:ff:ff:ff:ff

inet 192.168.2.20/24 brd 192.168.2.255 scope global eno33554960

valid_lft forever preferred_lft forever

inet6 fe80::20c:29ff:fe01:7ec1/64 scope link

valid_lft forever preferred_lft forever

记得拉取两个镜像!!!(只需要在controller节点拉取)

2.永久闭防火墙和selinux(双节点)


[root@controller yum.repos.d]# systemctl stop firewalld

[root@controller yum.repos.d]# systemctl disable firewalld

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

Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

[root@controller yum.repos.d]# setenforce 0

[root@controller yum.repos.d]# vi /etc/selinux/config

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=disabled

SELINUXTYPE= can take one of three two values:

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are protected.

mls - Multi Level Security protection.

SELINUXTYPE=targeted

[root@compute yum.repos.d]# systemctl stop firewalld

[root@compute yum.repos.d]# systemctl disable firewalld

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

Removed symlink /etc/systemd/sy

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值