天天看點

ovirt官方安裝文檔 第三章

第3章:安裝oVirt

安裝oVirt引擎包

在您可以配置和使用oVirt引擎之前,您必須安裝 rhevm 包和依賴關系。

在開始安裝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指令引導您完成幾個不同的配置階段,每個階段包含需要使用者輸入的幾個步驟。建議的配置預設值在方括号中提供; 如果建議的值對于給定步驟是可接受的,請按Enter接受該值。

運作該engine-setup指令開始配置oVirt Engine:

# engine-setup

按Enter鍵配置引擎:

Configure Engine on this host (Yes, No) [Yes]:

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]:

選擇是否在引擎計算機上配置資料倉庫。

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:

選擇使用本地或遠端PostgreSQL資料庫作為引擎資料庫:

Where is the Engine database located? (Local, Remote) [Local]:

 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:

 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]:

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,如需轉載請自行聯系原作者