使用VMware Workstation搭建先电IaaS2.4云平台(三)

简介: 使用VMware Workstation搭建先电IaaS2.4云平台(三)

11、可选服务补充搭建

安装块存储服务

【controller】

[root@controller ~]# iaas-install-cinder-controller.sh

安装对象存储服务

[root@controller ~]# iaas-install-swift-controller.sh

【compute】

安装块存储服务

[root@compute ~]# iaas-install-cinder-compute.sh

20201115122852876.png

安装对象存储服务

[root@compute ~]# iaas-install-swift-compute.sh

注意是否从控制节点中传送过来以下三个压缩包

account.ring.gz                                                                                      100%  728   344.4KB/s   00:00    
container.ring.gz                                                                                    100%  207   121.1KB/s   00:00    
object.ring.gz                                                                                       100%  204   277.6KB/s   00:00 

【controller】

安装编排服务

[root@controller ~]# iaas-install-heat.sh

20201115134411592.png

【controller】

安装zun服务

[root@controller ~]# iaas-install-zun-controller.sh

20201115134724358.png

【compute】

安装zun服务

[root@compute ~]# iaas-install-zun-compute.sh20201115134859146.png

【controller】

上传容器镜像

[root@controller ~]# source /etc/keystone/admin-openrc.sh 
[root@controller ~]# cd /opt/openstack/images/
[root@controller images]# ls
CentOS_6.5_x86_64_XD.qcow2  CentOS7_1804.tar  CentOS_7.2_x86_64_XD.qcow2  CentOS_7.5_x86_64_XD.qcow2
[root@controller images]# openstack image create centos-zun-7.5 --public --container-format docker --disk-format raw < CentOS7_1804.tar 
+------------------+------------------------------------------------------+
| Field            | Value                                                |
+------------------+------------------------------------------------------+
| checksum         | 438e76cdb677a3ab1156e284f58aa366                     |
| container_format | docker                                               |
| created_at       | 2020-11-15T05:49:51Z                                 |
| disk_format      | raw                                                  |
| file             | /v2/images/0b93bcf3-0acf-4908-89f3-e0cca9e366e1/file |
| id               | 0b93bcf3-0acf-4908-89f3-e0cca9e366e1                 |
| min_disk         | 0                                                    |
| min_ram          | 0                                                    |
| name             | centos-zun-7.5                                       |
| owner            | b80d6a7fd05641aea59268fc30775ed5                     |
| protected        | False                                                |
| schema           | /v2/schemas/image                                    |
| size             | 381696512                                            |
| status           | active                                               |
| tags             |                                                      |
| updated_at       | 2020-11-15T05:49:53Z                                 |
| virtual_size     | None                                                 |
| visibility       | public                                               |
+------------------+------------------------------------------------------+
[root@controller images]# openstack image list
+--------------------------------------+----------------+--------+
| ID                                   | Name           | Status |
+--------------------------------------+----------------+--------+
| 0b93bcf3-0acf-4908-89f3-e0cca9e366e1 | centos-zun-7.5 | active |
| 1fea3777-e5ed-46b7-9dae-2d9a3554bb99 | cirros         | active |
+--------------------------------------+----------------+--------+

启动容器

[root@controller images]# zun run --image-driver glance centos-zun-7.5
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property          | Value                                                                                                                                                                                                                     |
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| addresses         |                                                                                                                                                                                                                           |
| links             | ["{u'href': u'http://controller:9517/v1/containers/dfd250a4-f70e-49dc-ae56-fcbe17df8e6c', u'rel': u'self'}", "{u'href': u'http://controller:9517/containers/dfd250a4-f70e-49dc-ae56-fcbe17df8e6c', u'rel': u'bookmark'}"] |
| image             | centos-zun-7.5                                                                                                                                                                                                            |
| labels            | {}                                                                                                                                                                                                                        |
| disk              | 0                                                                                                                                                                                                                         |
| networks          |                                                                                                                                                                                                                           |
| security_groups   | None                                                                                                                                                                                                                      |
| image_pull_policy | None                                                                                                                                                                                                                      |
| user_id           | cac753e558c747338116623b8de8de42                                                                                                                                                                                          |
| uuid              | dfd250a4-f70e-49dc-ae56-fcbe17df8e6c                                                                                                                                                                                      |
| hostname          | None                                                                                                                                                                                                                      |
| environment       | {}                                                                                                                                                                                                                        |
| memory            | None                                                                                                                                                                                                                      |
| project_id        | b80d6a7fd05641aea59268fc30775ed5                                                                                                                                                                                          |
| status            | Creating                                                                                                                                                                                                                  |
| workdir           | None                                                                                                                                                                                                                      |
| auto_remove       | False                                                                                                                                                                                                                     |
| status_detail     | None                                                                                                                                                                                                                      |
| host              | None                                                                                                                                                                                                                      |
| image_driver      | glance                                                                                                                                                                                                                    |
| task_state        | None                                                                                                                                                                                                                      |
| status_reason     | None                                                                                                                                                                                                                      |
| name              | delta-2-container                                                                                                                                                                                                         |
| restart_policy    | None                                                                                                                                                                                                                      |
| ports             | None                                                                                                                                                                                                                      |
| command           | None                                                                                                                                                                                                                      |
| runtime           | None                                                                                                                                                                                                                      |
| cpu               | None                                                                                                                                                                                                                      |
| interactive       | False                                                                                                                                                                                                                     |
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+


查询容器

[root@controller images]# zun list
+--------------------------------------+-------------------+----------------+---------+------------+-----------+-------+
| uuid                                 | name              | image          | status  | task_state | addresses | ports |
+--------------------------------------+-------------------+----------------+---------+------------+-----------+-------+
| dfd250a4-f70e-49dc-ae56-fcbe17df8e6c | delta-2-container | centos-zun-7.5 | Running | None       | 10.0.0.3  | [22]  |
+--------------------------------------+-------------------+----------------+---------+------------+-----------+-------+

登录容器

[C:\~]$ ssh 10.0.0.3
Connecting to 10.0.0.3:22...
Connection established.
To escape to local shell, press Ctrl+Alt+].
WARNING! The remote SSH server rejected X11 forwarding request.
[root@ce707216eaa8 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
8: eth0@if9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether fa:16:3e:49:c4:af brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 10.0.0.3/24 brd 10.0.0.255 scope global eth0
       valid_lft forever preferred_lft forever
[root@ce707216eaa8 ~]# 

【controller】

安装Ceilometer监控服务

[root@controller ~]# iaas-install-ceilometer-controller.sh

20201115140756381.png

【compute】

安装Ceilometer监控服务

[root@compute ~]# iaas-install-ceilometer-compute.sh

20201115140841993.png

【controller】

[root@controller ~]# iaas-install-aodh.sh

20201115141010465.png

【controller】

添加控制节点的计算服务资源

修改openrc.sh的配置文件

[root@controller ~]# vi /etc/xiandian/openrc.sh

修改计算节点的主机名和IP地址为控制节点的主机名和IP地址

[root@controller ~]# iaas-install-nova-compute.sh

20201115141430297.png

20201115141640217.png

相关文章
|
28天前
|
Linux API 虚拟化
VMware WorkStation Pro 15.5(低版本安装) 教学用
VMware WorkStation Pro 15.5(低版本安装) 教学用
155 5
|
2月前
|
运维 虚拟化 Windows
VMware Workstation常见的故障处理
关于VMware Workstation常见故障处理的指南,包括Windows 10开启虚拟机蓝屏问题的解决方案和虚拟机无法开机时的解决方法。
208 21
VMware Workstation常见的故障处理
|
1月前
|
虚拟化 网络虚拟化 网络架构
虚拟机 VMware Workstation 16 PRO 的网络配置
虚拟机 VMware Workstation 16 PRO 的网络配置
|
2月前
|
虚拟化
VMware Workstation子网划分及bond配置案例
本文主要介绍了如何在VMware Workstation中进行子网划分以及如何添加和配置四块网卡以实现bond模式,并通过配置文件和命令行操作来验证bond模式的有效性。
68 2
VMware Workstation子网划分及bond配置案例
|
2月前
|
虚拟化
VMware Workstation产品常用的快捷键
文章介绍了VMware Workstation产品中常用的快捷键及其功能,包括对虚拟机的控制、设置、快照管理等操作,同时提供了作者的联系方式和博客链接。
159 15
|
4月前
|
虚拟化
VMware Workstation 16 Pro安装教程
VMware Workstation 16 Pro安装教程
157 1
|
5月前
|
Linux 调度 虚拟化
Linux系统——初识Linux、虚拟机介绍、VMware WorkStation安装、在VMware上安装Linux
Linux系统——初识Linux、虚拟机介绍、VMware WorkStation安装、在VMware上安装Linux
125 4
|
4月前
|
Linux 虚拟化
部署04-ncpa.cpl 虚拟机介绍,什么是虚拟机,怎样使用虚拟机,安装VMWARE,WorkStation,VMWARE这款软件是收费软件,可以在一个月期间进行使用,成功看VMWARE高级网络设置
部署04-ncpa.cpl 虚拟机介绍,什么是虚拟机,怎样使用虚拟机,安装VMWARE,WorkStation,VMWARE这款软件是收费软件,可以在一个月期间进行使用,成功看VMWARE高级网络设置
|
6月前
|
虚拟化 Windows
VMware Workstation 15 Pro 如何安装和使用
VMware Workstation 15 Pro 如何安装和使用
100 1
|
6月前
|
存储 Linux 虚拟化
VMware保姆级安装教程-VMware Workstation Pro 16(Windows10)
VMware保姆级安装教程-VMware Workstation Pro 16(Windows10)

热门文章

最新文章