1.准备镜像文件
Cen1. 创建新的虚拟机
1. 创建虚拟机
![](https://img-blog.csdnimg.cn/8d060e3f36084df3a26a7df64e4f484f.png)
![](https://img-blog.csdnimg.cn/f7c0ffec5f5441b7ac237af517903387.png)
![](https://img-blog.csdnimg.cn/730bfa00d0de43569d983507e167bb26.png)
![](https://img-blog.csdnimg.cn/c6b3d99785a448838c6aed7835661b8e.png)
![](https://img-blog.csdnimg.cn/a6600f3d901e42e2b175e55256b21c7f.png)
![](https://img-blog.csdnimg.cn/1a206921966b458c8e51928f3024b270.png)
![](https://img-blog.csdnimg.cn/a2c52c58007b4f61a7b418530c484f6e.png)
![](https://img-blog.csdnimg.cn/01f64857da56425590d575782f170e66.png)
![](https://img-blog.csdnimg.cn/5747956dec0b47c690f4d3ded4e1bac9.png)
![](https://img-blog.csdnimg.cn/2ccee79e01824bc0af2d853069bb98d2.png)
![](https://img-blog.csdnimg.cn/e85678a10389464287dbd3b695d830f4.png)
点击关闭
![](https://img-blog.csdnimg.cn/a6af8d0beb544ca681ac3ed568103c87.png)
![](https://img-blog.csdnimg.cn/0d0b7dab90da4164a44cb97f049567e7.png)
2.安装Centos7
![](https://img-blog.csdnimg.cn/f88cd2b774c64d7883a542ffc217042b.png)
![](https://img-blog.csdnimg.cn/b6feca6526324e19801300412514efa7.png)
![](https://img-blog.csdnimg.cn/913ec266d2154c699143cd93aca0186e.png)
![](https://img-blog.csdnimg.cn/f7d46e201cbb46f6ab17b4c8a6659dc6.png)
![](https://img-blog.csdnimg.cn/42bbae84d26047f6b70aa90746f5de3f.png)
![](https://img-blog.csdnimg.cn/44d389406a0b4e56941985ea804f73a1.png)
![](https://img-blog.csdnimg.cn/d02e0207d4694fe8bdb53c62f615ebaa.png)
![](https://img-blog.csdnimg.cn/bdc3e1df77384e4ea796407f0ae1338d.png)
密码自己设置,不用跟着一样
![](https://img-blog.csdnimg.cn/3734cac9983040d498bc57ab96addfe5.png)
![](https://img-blog.csdnimg.cn/1fc6cda83d36470eabd4bfb75df74588.png)
![](https://img-blog.csdnimg.cn/2473d1b43ae64cbeb1ac93651bd521f3.png)
![](https://img-blog.csdnimg.cn/c3c5ac28573f436eadce192b7e2359c2.png)
2.生成动态IP地址
[root@localhost ~] dhclient |
3.查看生成的IP地址
[root@localhost ~] ip addr |
4. 修改网络
进入到指定的目录 [root@localhost ~]# cd /etc/sysconfig/network-scripts/ [root@localhost network-scripts]# ls [root@localhost network-scripts]# vi ifcfg-ens33 |
修改完成后,退出保存就可以
5. 重启网卡
[root@localhost network-scripts]# systemctl restart network #测试网络是否能连通 [root@localhost network-scripts]# ping www.baidu.com |
6. 禁止防火墙开机启动
[root@localhost network-scripts]# systemctl disable firewalld |
7. 禁止SELinux
[root@localhost network-scripts]# vi /etc/selinux/config |
重启系统
8. 停用NetWorkManager服务
[root@localhost ~]# systemctl disable NetworkManager Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service. Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service. Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service. [root@localhost ~]# [root@localhost ~]# systemctl stop NetworkManager [root@localhost ~]# systemctl enable network network.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig network on [root@localhost ~]# systemctl start network |
9. 修改主机名以及映射
[root@localhost ~]# hostnamectl set-hostname node-a [root@localhost ~]# [root@localhost ~]# vi /etc/hosts [root@localhost ~]# [root@localhost ~]# |
在文件结尾添加如下内容
192.168.32.131 node-a node-a.localdomain |
使用ping命令测试
[root@localhost ~]# ping node-a PING node-a (192.168.32.131) 56(84) bytes of data. 64 bytes from node-a (192.168.32.131): icmp_seq=1 ttl=64 time=0.011 ms 64 bytes from node-a (192.168.32.131): icmp_seq=2 ttl=64 time=0.023 ms |
10. 安装时间同步软件
[root@localhost ~]# yum install -y chrony |
11. 添加NTP服务地址
[root@localhost ~]# vi /etc/chrony.conf |
添加如下内容
server ntp1.aliyun.com iburst |
12. 准备所需的软件库
[root@localhost ~]# yum -y update |
[root@localhost ~]# yum -y install centos-release-openstack-train |
13. 安装packstack安装器
[root@localhost ~]# yum -y update |
[root@localhost ~]# yum -y install openstack-packstack |
14. 运行packstack安装OpenStack
[root@localhost ~]# packstack --allinone |
查看当前安装版本
[root@localhost ~]# nova-manage --version 20.6.0 |
整个安装过程完成。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)