Openstack 網(wǎng)絡(luò)知識資料總結(jié):
Openstack 概念
我剛聽說要去做 openstack 開發(fā)的時候,蠻激動的啊。雖然我不知道 openstack 是什么東西,但是我知道這個東西和云計算有關(guān)。云計算這東西,聽著就高大上,各大互聯(lián)網(wǎng)公司都有投人進去搞,所以大方向上是必須肯定的。于是我按捺不住了,想在自己的主機上部署 openstack,來體驗下這個是什么東西。經(jīng)過一頓折騰之后,終于在虛擬機里面用 devstack 把 openstack 給部署出來了(部署過程中,最坑的就是國內(nèi)的防火墻)。
部署的過程,其實就是把一堆 Python 包安裝到主機系統(tǒng)的過程。openstack 有一個 python 包叫做 Dashboard,這個東西提供了一個 Web 界面,從那里我真正體驗到了 openstack 是個啥。在 Dashboard 上創(chuàng)建一臺虛擬機的過程蠻有趣的,這個過程涉及到的步驟,很多都和現(xiàn)實中安裝電腦很像。
Openstack Real Life 創(chuàng)建 ubuntu 鏡像 使用 Ultraiso 刻錄好一個 ubuntu 系統(tǒng) 的 U 盤 創(chuàng)建 provider 網(wǎng)絡(luò) 叫電信的來給家里開通網(wǎng)絡(luò) 創(chuàng)建 Instance 主機 買了一臺主機,并用剛剛的 U 盤給它裝好 Ubuntu 系統(tǒng) 啟動 Instance 主機 把電信的網(wǎng)口插到主機網(wǎng)卡上
我在 Dashboard 創(chuàng)建了兩臺 Instance 主機,兩臺主機跑的好好的。就目前來說,這個效果和 VMware Workstation 軟件就很像了,可以在一臺物理機上,跑多虛擬主機。只不過 VMware Workstation 軟件面向的是單臺物理機,而 openstack 卻可以 面對物理機集群 進行管理和虛擬化。當(dāng)成百上千的物理機被 openstack 管理著,而終端使用用戶只需要面對唯一的一個 Dashboard 界面,這個時候私有云的概念就體現(xiàn)出來了。
有了感性的認(rèn)識后,再去 openstack 官網(wǎng)是什么定義自己的:
Open source software for creating private and public clouds.
OpenStack software controls large pools of compute, storage, and networking resources throughout a datacenter, managed through a dashboard or via the OpenStack API. OpenStack works with popular enterprise and open source technologies making it ideal for heterogeneous infrastructure.
Hundreds of the world's largest brands rely on OpenStack to run their businesses every day, reducing costs and helping them move faster. OpenStack has a strong ecosystem, and users seeking commercial support can choose from different OpenStack-powered products and services in the Marketplace.
The software is built by a thriving community of developers, in collaboration with users, and is designed in the open at our Summits.
OpenStack 軟件控制整個數(shù)據(jù)中心的大型計算,存儲和網(wǎng)絡(luò)資源,用戶可以通過 Dashboard 或 OpenStack API 進行管理。就我理解,Openstack 更像是一個操作系統(tǒng),一個強大的云計算操作系統(tǒng)。
Openstack 網(wǎng)絡(luò)概念
我前面通過 Dashboard 創(chuàng)建的兩個 Instance 虛擬機,它們之間是可以互相 ping 通的,因為它們兩是處于同一個二層網(wǎng)絡(luò)的,都是直接鏈接到 Provider 網(wǎng)絡(luò)。
| VM1 | | VM2 ||-------| |-------| | | | Eth(172.24.4.2) | Eth(172.24.4.3)____|______________________|___________- - - - - - - - - - - - - - - - - - - - Provider (172.24.4.0/24)
上面的拓撲其實已經(jīng)涵蓋了 openstack 中比較核心的三個網(wǎng)絡(luò)概念:Network,Subnet, Port 。我們把這三個概念和上面的網(wǎng)絡(luò)拓撲映射一下:
新聞熱點
疑難解答
圖片精選