oVirt 是 開源分佈式虛擬化解決方案旨在管理整個企業基礎架構。 oVirt 使用你可以信任的東西 KVM 管理程序 它還基於其他幾個社區項目,例如 libvirt、Gluster、PatternFly 和 Ansible。
我會在這篇文章中告訴你 如何在 CentOS 7 上安裝 oVirt..所以讓我們開始吧。
安裝 oVirt 引擎包
首先,您需要將 oVirt 軟件包存儲庫添加到 CentOS7。為此,請運行以下命令:
# sudo yum install https://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
現在按 什麼時候 然後按 進來..
接下來,您需要更新 CentOS 7 操作系統的所有軟件包。為此,請運行以下命令:
# yum update
筆記: 如果內核相關的包已經更新,重啟機器。運行以下命令 安裝 哦哦虛擬引擎 包和依賴項。
# yum install ovirt-engine
可以看到,498MB的包是從網上下載的。現在按 y,然後按。
現在按 什麼時候 然後按 進來 接受 CentOS SIG 虛擬化、存儲、OpsTools 和 SCLo 存儲庫的 GPG 密鑰。

配置oVirt
運行 engine-setup 命令開始配置 oVirt 引擎。
# engine-setup
推 進來 配置引擎。
[[email protected] ~]# engine-setup [ INFO ] Stage: Initializing [ INFO ] Stage: Environment setup Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf'] Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190101101937-u3tqt3.log Version: otopi-1.7.8 (otopi-1.7.8-1.el7) [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment setup [ INFO ] Stage: Environment customization --== PRODUCT OPTIONS ==-- Configure Engine on this host (Yes, No) [Yes]: Yes Configure ovirt-provider-ovn (Yes, No) [Yes]: Yes Configure Image I/O Proxy on this host (Yes, No) [Yes]: Yes Configure WebSocket Proxy on this host (Yes, No) [Yes]: 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]: Yes Configure VM Console Proxy on this host (Yes, No) [Yes]: Yes --== PACKAGES ==-- [ INFO ] Checking for product updates... [ INFO ] No product updates found --== NETWORK CONFIGURATION ==-- Host fully qualified DNS name of this server [localhost.localdomain]: Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. NOTICE: iptables is deprecated and will be removed in future releases Do you want Setup to configure the firewall? (Yes, No) [Yes]: Yes [ INFO ] firewalld will be configured as firewall manager. --== DATABASE CONFIGURATION ==-- Where is the DWH database located? (Local, Remote) [Local]: 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]: 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 --== OVIRT ENGINE CONFIGURATION ==-- Engine admin password: Confirm engine admin password: Application mode (Virt, Gluster, Both) [Both]: Both Use default credentials ([email protected]) for ovirt-provider-ovn (Yes, No) [Yes]: Yes --== STORAGE CONFIGURATION ==-- Default SAN wipe after delete (Yes, No) [No]: No --== PKI CONFIGURATION ==-- Organization name for certificate [localdomain]: --== APACHE CONFIGURATION ==-- 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 page of the web server? (Yes, No) [Yes]: 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]: --== SYSTEM CONFIGURATION ==-- --== MISC CONFIGURATION ==-- Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]: 1 --== END OF CONFIGURATION ==-- [ INFO ] Stage: Setup validation [WARNING] Cannot validate host name settings, reason: resolved host does not match any of the local addresses [WARNING] Warning: Not enough memory is available on the host. Minimum requirement is 4096MB, and 16384MB is recommended. Do you want Setup to continue, with amount of memory less than recommended? (Yes, No) [No]: Yes --== CONFIGURATION PREVIEW ==-- Application mode : both Default SAN wipe after delete : False Firewall manager : firewalld Update Firewall : True Host FQDN : localhost.localdomain Configure local Engine database : True Set application as default page : True Configure Apache SSL : True Engine database secured connection : False Engine database user name : engine Engine database name : engine Engine database host : localhost Engine database port : 5432 Engine database host name validation : False Engine installation : True PKI organization : localdomain Set up ovirt-provider-ovn : True Configure WebSocket Proxy : True DWH installation : True DWH database host : localhost DWH database port : 5432 Configure local DWH database : True Configure Image I/O Proxy : True Configure VMConsole Proxy : True Please confirm installation settings (OK, Cancel) [OK]: Ok [ INFO ] Stage: Transaction setup [ INFO ] Stopping engine service [ INFO ] Stopping ovirt-fence-kdump-listener service [ INFO ] Stopping dwh service [ INFO ] Stopping Image I/O Proxy service [ INFO ] Stopping vmconsole-proxy service [ INFO ] Stopping websocket-proxy service [ INFO ] Stage: Misc configuration [ INFO ] Stage: Package installation [ INFO ] Stage: Misc configuration [ INFO ] Upgrading CA [ INFO ] Initializing PostgreSQL [ INFO ] Creating PostgreSQL 'engine' database [ INFO ] Configuring PostgreSQL [ INFO ] Creating PostgreSQL 'ovirt_engine_history' database [ INFO ] Configuring PostgreSQL [ INFO ] Creating CA [ INFO ] Creating/refreshing DWH database schema [ INFO ] Configuring Image I/O Proxy [ INFO ] Setting up ovirt-vmconsole proxy helper PKI artifacts [ INFO ] Setting up ovirt-vmconsole SSH PKI artifacts [ INFO ] Configuring WebSocket Proxy [ INFO ] Creating/refreshing Engine database schema [ INFO ] Creating/refreshing Engine 'internal' domain database schema [ INFO ] Creating default mac pool range [ INFO ] Adding default OVN provider to database [ INFO ] Adding OVN provider secret to database [ INFO ] Setting a password for internal user admin [ INFO ] Generating post install configuration file '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf' [ INFO ] Stage: Transaction commit [ INFO ] Stage: Closing up [ INFO ] Starting engine service [ INFO ] Starting dwh service [ INFO ] Restarting ovirt-vmconsole proxy service --== SUMMARY ==-- [ INFO ] Restarting httpd Please use the user '[email protected]' and password specified in order to login Web access is enabled at: https://localhost.localdomain:80/ovirt-engine https://localhost.localdomain:443/ovirt-engine Internal CA 71:09:A1:4E:43:EE:07:96:A6:91:44:AB:3C:F0:9A:38:31:DD:52:B0 SSH fingerprint: SHA256:Zccf8vubbV5AjeoWQA5azv86DDVrXSC93f7JKp4Sfp4 [WARNING] Warning: Not enough memory is available on the host. Minimum requirement is 4096MB, and 16384MB is recommended. --== END OF SUMMARY ==-- [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190101101937-u3tqt3.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190101102706-setup.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ INFO ] Execution of setup completed successfully
配置防火牆
您必須打開 HTTP 和 HTTPS 端口才能訪問 oVirt 基於 Web 的管理界面。 可以使用 CentOS7 的 firewalld 輕鬆執行。
要打開 HTTP 端口,請運行以下命令:
# firewall-cmd --add-service=http --permanent
要打開 HTTPS 端口,請運行以下命令:
# sudo firewall-cmd --add-service=https --permanent
現在使用以下命令重新加載 firewalld 守護進程:
# firewall-cmd --reload
此時防火牆配置正確。
訪問oVirt管理界面
打開網絡瀏覽器並輸入 URL。
https://ovirtengine.example.com
還
https: // IP地址
根據您的設置替換域名或 IP 地址。
單擊管理員門戶。
請輸入您的用戶名’行政人員‘ 什麼時候 安裝和配置文件中提到的內部密碼..

登錄後會看到oVirt的管理界面。您可以從這里以圖形方式管理 oVirt。您還可以從此處創建虛擬機。

這就是在 CentOS 7 上安裝 oVirt 的方法。感謝您閱讀本文。