oVirt is a free and open source virtualization software used in linux like operating systems such as Fedora, CentOS and RHEL. In other words we can say oVirt is the alternate of VMware vSphere in Linux. Ovirt community is founded and supported by Red Hat and it is considered as upstream project for Red Hat Enterprise Virtualization (RHEV).
oVirt consists of two main components :
oVirt Engine oVirt NodeoVirt Engineis a graphical user interface or we can say it is a Web administrator portal from where we can manage virtual machines, compute, network and storage resources.
oVirt Nodeis either a RHEL / CentOS or Fedora Server on which vdsm service is up and running. Ovirt node will act as Hypervisor (KVM) on which all the Virtual machines will be created.
In this article we will install the latest version oVirt 4.0.3 on CentOS 7 / RHEL 7 . We will be using two servers one will act as ovirt engine and other will act as ovirt node. Below are the details :
oVirt Engine : ovirtengine.example.com (192.168.1.30 )
oVirt Node : ovirtnode.example.com (192.168.1.40)
Update the below entries in /etc/hosts file in case you don’t have your local dns server.
192.168.1.30 ovirtengine.example.com192.168.1.40 ovirtnode.example.com Installation Steps of oVirt Engine on CentOS 7 / RHEL 7
Following are minimal requirements for ovirt-engine :
Minimal OS ( CentOS 7.x / RHEL 7.x ) Dual core server 4 GB RAM 25 GB Disk Space 1-Gbps Lan CardPerform the following steps one after the another to install ovirt engine.
Step:1 Update the server using yum commandInstall latest update on server using beneath yum command.
[root@ovirtengine ~]# yum update -yOnce the updates are installed reboot the sever.
Step:2 Enable oVirt 4.0.3 Repositoryovirt engine packages are not available in CentOS and RHEL yum repositories. Run below command to set and enable ovirt 4.0 repertory
[root@ovirtengine ~]# yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm Step:3 Install oVirt Engine Package using yum commandExecute the following yum command to install ovirt engine.
[root@ovirtengine ~]# yum install ovirt-engine -y Step:4 Start the ovirt engine installerRun the command ‘ engine-setu p’ from the console, it will start the ovirt engine installer and will interactively ask series of question during the installation and will save all the answers to a answer file. Answer file can be reused in order to automate the installation.
[root@ovirtengine ~]# engine-setup --generate-answer=/root/answer.txt[ 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-20160918040600-2gbi6m.log
Version: otopi-1.5.2 (otopi-1.5.2-1.el7.centos)
[ INFO ] Stage: Environment packages setup
[ INFO ] Yum Downloading: base/7/x86_64 (0%)
[ INFO ] Yum Downloading: updates/7/x86_64 (0%)
[ INFO ] Stage: Programs detection
[ INFO ] Stage: Environment setup
[ INFO ] Stage: Environment customization
--== PRODUCT OPTIONS ==--
Configure Engine on this host (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 [ovirtengine.example.com]: ovirtengine.example.com
[WARNING] Failed to resolve ovirtengine.example.com using DNS, it can be resolved only locally
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]: No
--== DATABASE CONFIGURATION ==--
Where is the DWH database located? (Local, Remote) [Local]: 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]: Automatic
Where is the Engine database located? (Local, Remote) [Local]: 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:
[WARNING] Password is weak: it is too simplistic/systematic
Use weak password? (Yes, No) [No]: Yes
Application mode (Virt, Gluster, Both) [Both]: Both
--== STORAGE CONFIGURATION ==--
Default SAN wipe after delete (Yes, No) [No]: No
--== PKI CONFIGURATION ==--
Organization name for certificate [example.com]: example.com
--== 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]: 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]: Automatic
--== SYSTEM CONFIGURATION ==--
Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [No]: No
--== MISC CONFIGURATION ==--
Please choose Data Warehouse sampling scale:
(1) Basic
(2) Full
(1, 2)[1]: 1
--== END OF CONFIGURATION ==--
[ INFO ] Stage: Setup validation
[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
Update Firewall : False
Host FQDN : ovirtengine.example.com
Engine database secured connection : False
Engine database host : localhost
Engine database user name : engine
Engine database name : engine
Engine database port : 5432
Engine database host name validation : False
DWH database secured connection : False
DWH database host : localhost
DWH database user name : ovirt_engine_history
DWH database name : ovirt_engine_history
DWH database port : 5432
DWH database host name validation : False
Engine installation : True
PKI organization : example.com
Configure local Engine database : True
Set application as default page : True
Configure Apache SSL : True
DWH installation : True
Configure local DWH database : True
Engine Host FQDN : ovirtengine.example.com
Configure Image I/O Proxy : True
Configure VMConsole Proxy : True
Configure WebSocket Proxy : True
Please confirm installation settings (OK, Cancel) [OK]: OK