第3章:安裝oVirt
安裝oVirt引擎包
在您可以配置和使用oVirt引擎之前,您必須安裝?rhevm?包和依賴關系。
安裝oVirt引擎包
-
在開始安裝oVirt之前,添加官方倉庫:
# yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
-
要確保所有軟件包都是最新的,請在要安裝oVirt Engine的計算機上運行以下命令:
# yum update
注意:如果任何內核相關的軟件包已經更新,重新啟動機器。
-
運行以下命令來安裝ovirt-engine軟件包和依賴項。
# yum install ovirt-engine
繼續下一步配置您的oVirt引擎。
配置oVirt引擎
安裝ovirt-engine軟件包和依賴項后,必須使用該engine-setup命令配置oVirt Engine?。此命令詢問您一系列問題,在您提供所有問題的必需值后,應用該配置并啟動ovirt-engine服務。
默認情況下,engine-setup在Engine機器上本地創建和配置Engine數據庫。或者,您可以將引擎配置為使用遠程數據庫或手動配置的本地數據庫;?但是,您必須在運行之前設置該數據庫engine-setup。要設置遠程數據庫,請參閱準備用于oVirt引擎的遠程PostgreSQL數據庫。要設置手動配置的本地數據庫,請參閱準備本地手動配置的PostgreSQL數據庫以用于oVirt引擎。
默認情況下,engine-setup將在Engine上配置一個websocket代理。但是,出于安全性和性能方面的考慮,用戶可以選擇在單獨的主機上進行配置。有關說明,請參閱在其他主機上安裝Websocket代理。
注意:該engine-setup命令引導您完成幾個不同的配置階段,每個階段包含需要用戶輸入的幾個步驟。建議的配置默認值在方括號中提供;?如果建議的值對于給定步驟是可接受的,請按Enter接受該值。
配置oVirt引擎
-
運行該engine-setup命令開始配置oVirt Engine:
# engine-setup
-
按Enter鍵配置引擎:
Configure Engine on this host (Yes, No) [Yes]:
-
(可選)允許engine-setup配置映像I / O代理以允許引擎將虛擬機磁盤映像上載到存儲域。有關更多信息,請參閱“?管理指南?”中的“將磁盤映像上載到存儲域”。
Configure Image I/O Proxy on this host? (Yes, No) [Yes]:
-
(可選)允許engine-setup配置websocket代理服務器,以允許用戶通過noVNC或HTML 5控制臺連接到虛擬機:
Configure WebSocket Proxy on this machine? (Yes, No) [Yes]:
要在單獨的機器上配置websocket代理,請選擇No并參考在其他主機上安裝Websocket代理以獲取配置說明。
-
選擇是否在引擎計算機上配置數據倉庫。
Please note: Data Warehouse is required for the engine. If you choose to not configure it on this host, you have to configure it on a remote host, and then configure the engine on this host so that it can access the database of the remote Data Warehouse host. Configure Data Warehouse on this host (Yes, No) [Yes]:
-
(可選)允許從命令行訪問虛擬機的串行控制臺。
Configure VM Console Proxy on this host (Yes, No) [Yes]:
客戶機上需要額外的配置才能使用此功能。請參閱“?虛擬機管理指南?”中的“打開串行控制臺到虛擬機”?。
-
按Enter接受自動檢測到的主機名,或輸入備用主機名,然后按Enter鍵。請注意,如果使用虛擬主機,則自動檢測到的主機名可能不正確。
Host fully qualified DNS name of this server [*autodetected host name*]:
-
該engine-setup命令檢查您的防火墻配置,并提供修改該配置以打開引擎用于外部通信的端口,例如TCP端口80和443.如果您不允許engine-setup修改防火墻配置,則必須手動打開使用的端口由發動機。
Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. Do you want Setup to configure the firewall? (Yes, No) [Yes]:
如果您選擇自動配置防火墻,并且沒有防火墻管理器處于活動狀態,系統將提示您從支持的選項列表中選擇您選擇的防火墻管理器。輸入防火墻管理器的名稱,然后按Enter鍵。即使在僅列出一個選項的情況下也適用。
-
選擇使用本地或遠程PostgreSQL數據庫作為數據倉庫數據庫:
Where is the DWH database located? (Local, Remote) [Local]:
-
如果選擇Local,則該engine-setup命令可以自動配置數據庫(包括添加用戶和數據庫),也可以連接到預配置的本地數據庫:
?Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications. ?Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
-
如果您Automatic按Enter鍵選擇,則不需要進一步的操作。
-
如果選擇Manual,請為手動配置的本地數據庫輸入以下值:
?DWH database secured connection (Yes, No) [No]: ?DWH database name [ovirt_engine_history]: ?DWH database user [ovirt_engine_history]: ?DWH database password:
注意:?engine-setup在下一步配置引擎數據庫之后請求這些值。
-
如果選擇Remote,請為預配置的遠程數據庫主機輸入以下值:
?DWH database host [localhost]: ?DWH database port [5432]: ?DWH database secured connection (Yes, No) [No]: ?DWH database name [ovirt_engine_history]: ?DWH database user [ovirt_engine_history]: ?DWH database password:
注意:?engine-setup在下一步配置引擎數據庫之后請求這些值。
-
選擇使用本地或遠程PostgreSQL數據庫作為引擎數據庫:
Where is the Engine database located? (Local, Remote) [Local]:
-
如果選擇Local,則該engine-setup命令可以自動配置數據庫(包括添加用戶和數據庫),也可以連接到預配置的本地數據庫:
?Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications. ?Would you like Setup to automatically configure postgresql and create Engine database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
一個。如果您Automatic按Enter鍵選擇,則不需要進一步的操作。
灣?如果選擇Manual,請為手動配置的本地數據庫輸入以下值:
? ? ?Engine database secured connection (Yes, No) [No]: ? ? ?Engine database name [engine]: ? ? ?Engine database user [engine]: ? ? ?Engine databuase password:
-
如果選擇Remote,請為預配置的遠程數據庫主機輸入以下值:
?Engine database host [localhost]: ?Engine database port [5432]: ?Engine database secured connection (Yes, No) [No]: ?Engine database name [engine]: ?Engine database user [engine]: ?Engine database password:
-
為自動創建的oVirt引擎的管理用戶設置一個密碼:
Engine admin password: Confirm engine admin password:
-
選擇Gluster,Virt或者兩者:
Application mode (Both, Virt, Gluster) [Both]:
兩者都提供最大的靈活性。在大多數情況下,選擇Both。Virt應用程序模式允許您在環境中運行虛擬機;?Gluster應用程序模式只允許您從管理門戶管理GlusterFS。
-
設置該wipe_after_delete標志的默認值,該標志在刪除磁盤時擦除虛擬磁盤的塊。
Default SAN wipe after delete (Yes, No) [No]:
-
引擎使用證書與主機進行安全通信。此證書還可以選擇用于保護與引擎的HTTPS通信。提供證書的組織名稱:
Organization name for certificate [*autodetected domain-based name*]:
-
(可選)允許engine-setup將引擎的登錄頁面設置為由Apache Web服務器提供的默認頁面:
Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications. Do you wish to set the application as the default web page of the server? (Yes, No) [Yes]:
-
默認情況下,與引擎的外部SSL(HTTPS)通信使用配置中較早創建的自簽名證書進行保護,以便與主機進行安全通信。或者,為外部HTTPS連接選擇另一個證書;?這不會影響引擎如何與主機通信:
Setup can configure apache to use SSL using a certificate issued from the internal CA. Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
-
(可選)在引擎上創建NFS共享以用作ISO存儲域。本地ISO域提供了可用于初始設置虛擬機的一系列圖像:
Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [Yes]:
一個。指定ISO域的路徑:
? ?Local ISO domain path [/var/lib/exports/iso]: b. Specify the networks or hosts that require access to the ISO domain: ? ?Local ISO domain ACL: *10.1.2.0/255.255.255.0(rw) host01.example.com(rw) host02.example.com(rw)* The example above allows access to a single /24 network and two specific hosts. See the `exports(5)` man page for further formatting options.
C。指定ISO域的顯示名稱:
? ?Local ISO domain name [ISO_DOMAIN]:
-
選擇數據倉庫保留收集的數據的時間長度:
Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]:
Full使用“?數據倉庫指南”中列出的數據存儲設置的默認值(在遠程主機上安裝數據倉庫時建議使用)。
Basic減少了DWH_TABLES_KEEP_HOURLYto?720和DWH_TABLES_KEEP_DAILYto?的值,以0減輕引擎機器上的負載(當引擎和數據倉庫安裝在同一臺機器上時推薦)。
-
查看安裝設置,然后按Enter接受這些值并繼續安裝:
Please confirm installation settings (OK, Cancel) [OK]:
-
如果您打算將oVirt環境與目錄服務器相鏈接,請配置日期和時間以與目錄服務器使用的系統時鐘同步,以避免意外的帳戶到期問題。
配置engine-setup完環境后,顯示有關如何訪問環境的詳細信息。如果您選擇手動配置防火墻engine-setup,請根據安裝期間選擇的選項提供需要打開的端口的自定義列表。該engine-setup命令還會將您的答案保存到可用于使用相同值重新配置Engine的文件,并輸出oVirt Engine配置過程的日志文件位置。
繼續下一部分,以admin@internal用戶身份連接到管理門戶。然后,繼續設置主機,并附加存儲。
連接到管理門戶
使用Web瀏覽器訪問管理門戶。
-
在Web瀏覽器中,導航到https://your-manager-fqdn/ovirt-engine,用您在安裝期間提供的完全限定的域名替換您的-master-fqdn。
重要提示:首次連接到管理門戶時,系統會提示您信任用于保護瀏覽器與Web服務器之間通信的證書。你必須接受這個證書。
-
點擊管理門戶。
-
輸入您的用戶名和密碼。如果您是第一次登錄,請將用戶名admin與安裝期間指定的密碼結合使用。
-
從“?域”列表中選擇要對其進行身份驗證的域。如果使用內部admin用戶名登錄,請選擇internal域。
-
點擊登錄。
-
您可以使用多種語言查看管理門戶。默認選擇將根據您的Web瀏覽器的區域設置進行選擇。如果您想以非默認語言查看管理門戶,請從歡迎頁面的下拉列表中選擇您的首選語言。
下一章包含其他與引擎相關的可選任務。如果任務不適用于您的環境,請轉至第III部分:安裝管理程序主機。
本文轉自 Barron1 51CTO博客,原文鏈接:http://blog.51cto.com/13172370/1980268,如需轉載請自行聯系原作者