小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

OpenStack云平臺(tái)搭建

 netouch 2025-07-22 發(fā)布于北京

參考:

https://blog.csdn.net/m0_45692110/article/details/122628664

https://huaweicloud.csdn.net/635607c3d3efff3090b58eb4.html

一、虛擬機(jī)準(zhǔn)備

controller和compute虛擬機(jī),使用centos7操作系統(tǒng),下面給出一些需要修改的地方,其他都可以使用默認(rèn),點(diǎn)擊下一步即可

controller:

一塊磁盤(pán)200G

兩塊網(wǎng)卡:

192.168.100.10

192.168.200.10

compute:

兩塊磁盤(pán):200G+100G

兩塊網(wǎng)卡:

192.168.100.20

192.168.200.20

1.controller

(1)創(chuàng)建虛擬機(jī)

全名:登錄時(shí)看到的名字

用戶(hù)名:虛擬機(jī)終端中顯示的名字

密碼:123456

image

設(shè)置處理器內(nèi)核

image

設(shè)置內(nèi)存2G

image

設(shè)置磁盤(pán)200G

image

添加兩塊網(wǎng)卡

image

(2)虛擬機(jī)配置

修改主機(jī)名

hostnamectl set-hostname controller

②查看網(wǎng)卡

cd /etc/sysconfig/network-scripts

image

③編輯網(wǎng)卡配置文件,設(shè)置網(wǎng)卡ip地址

詳情見(jiàn)https://www.cnblogs.com/Studywith/p/16946297.html,其中對(duì)網(wǎng)絡(luò)的配置有較詳細(xì)解釋

網(wǎng)卡1:

192.168.100.10

image

網(wǎng)卡2:

192.168.200.10

image

④重啟網(wǎng)卡

  1. service network restart #重啟虛擬機(jī)網(wǎng)卡
  2. reboot #重啟虛擬機(jī)
  3. ip addr #查看網(wǎng)絡(luò)信息
image

2.compute

(1)創(chuàng)建虛擬機(jī)

基本一致,完成創(chuàng)建后額外添加一塊100GB硬盤(pán)和一塊網(wǎng)卡

image
image

這里使用稍后安裝操作系統(tǒng)的方式(controller使用的是簡(jiǎn)易安裝),學(xué)習(xí)一下這種方式

①磁盤(pán)分區(qū)

image
image
image

②設(shè)置主機(jī)名

image

③等待安裝

這里沒(méi)有創(chuàng)建初始用戶(hù),直接使用root(密碼:123456)賬號(hào)(不像簡(jiǎn)易安裝會(huì)創(chuàng)建一個(gè)初始用戶(hù))

image
image

(2)虛擬機(jī)配置

發(fā)現(xiàn)這樣安裝沒(méi)有圖形界面,雖然用不到圖形界面,直接命令行就可以完成配置,但可以參考安裝一下:https://blog.csdn.net/m0_55336071/article/details/124680623

網(wǎng)卡1:

192.168.100.20

image

網(wǎng)卡2:

192.168.200.20

image
image

二、云平臺(tái)搭建

1.準(zhǔn)備

(1)MobaXterm連接虛擬機(jī)

image

(2)配置host地址映射

直接使用域名(controller,compute)來(lái)代替IP地址

image
image

使用scp命令將文件傳輸?shù)絚ompute

scp /etc/hosts 192.168.100.20:/etc/hosts

image

(3)關(guān)閉防火墻和selinux

  1. [root@controller ~]# systemctl stop firewalld #關(guān)閉防火墻
  2. [root@controller ~]# systemctl disable firewalld #設(shè)置防火墻開(kāi)機(jī)不自啟
  3. Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
  4. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
  5. [root@controller ~]# setenforce 0 #臨時(shí)關(guān)閉selinux防火墻,0表示關(guān)閉,1表示開(kāi)啟
  6. [root@controller ~]# getenforce #查看selinux防火墻的狀態(tài)
  7. Permissive
  8. [root@controller ~]# vi /etc/selinux/config #非臨時(shí)性
  9. [root@controller ~]#
image

(4)上傳鏡像文件

創(chuàng)建文件夾,將鏡像上傳

云鏡像:

鏈接:https://pan.baidu.com/s/1HdlmcOqVhNPuT0OFf_wBCA
--來(lái)自百度網(wǎng)盤(pán)超級(jí)會(huì)員V2的分享

centos7:

鏈接:https://pan.baidu.com/s/1rMX23XtNwmoASi3KLXFbRg
--來(lái)自百度網(wǎng)盤(pán)超級(jí)會(huì)員V2的分享

chinaskills_cloud_iaas.iso鏡像包含OpenStack Q版本私有云平臺(tái)搭建的各項(xiàng)軟件包、依賴(lài)包、安裝腳本等,同時(shí)還提供了CentOS7.2、CentOS7.5等云主機(jī)qcow2鏡像

image

2.搭建

(1)掛載鏡像

  1. mount -o loop '/export/software/CentOS-7-x86_64-DVD-2009.iso' /mnt/
  2. mkdir /opt/centos #該文件夾存儲(chǔ)centos系統(tǒng)
  3. mkdir /opt/cloud #該文件夾存儲(chǔ)OpenStack鏡像
  4. cp -rf /mnt/* /opt/centos/ #轉(zhuǎn)移
  5. umount /mnt/ #解除寫(xiě)保護(hù)
  6. mount -o loop '/export/software/chinaskills_cloud_iaas.iso' /mnt/
  7. cp -rf /mnt/* /opt/cloud/ #轉(zhuǎn)移
  8. umount /mnt/

剩下的命令基本不用修改,也不會(huì)出錯(cuò),就直接對(duì)著原博客抄命令了,編輯鏡像源配置文件時(shí)注意不要出錯(cuò),對(duì)應(yīng)自己的鏡像存儲(chǔ)位置:https://blog.csdn.net/m0_45692110/article/details/122628664

修改鏡像源

image

完成配置

image

(2)compute配置

查看磁盤(pán)分區(qū)情況

image

分區(qū)sdb命令后

image

鏡像源使用controller中配置好的

image

完成配置

image

(3)OpenStack腳本執(zhí)行

這里執(zhí)行iaas-install-neutron-controller.sh時(shí)報(bào)錯(cuò)file not found,這個(gè)是因?yàn)榘姹緵_突的問(wèn)題,解決方法如下:https://ask.csdn.net/questions/7746766

image

(4)完成

登錄http://192.168.100.10/dashboard

image
image

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀(guān)點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶(hù) 評(píng)論公約

    類(lèi)似文章 更多