oVirt – Managing a Virtualization Environment
You can use KVM (Kernel-based Virtual Machine) tools to manage VMs (Virtual Machines) on one server. With many servers, a shared management page is useful.
oVirt lets you manage KVM hosts, VMs, storage and networks from one web console. A host is a physical server that runs VMs. This lesson explains how oVirt groups and manages those hosts.
virsh is like a class teacher who manages one classroom. oVirt is the principal's office that manages all classrooms, teachers and rooms of the whole school from one place – who sits where, what happens if a room is closed, which class moves to which room.
oVirt is open-source software for managing KVM hosts, storage and networks from one web console. It is the upstream project used for Red Hat Virtualization (RHV).
oVirt architecture
flowchart TB
subgraph Clients
AP[Administration Portal]
VP[VM Portal – end users]
API[REST API / SDKs / Ansible]
end
AP & VP & API --> E["oVirt Engine<br/>Java – WildFly application"]
E --- DB[(PostgreSQL<br/>configuration database)]
E -->|JSON-RPC / SSL| V1[Host 1: VDSM + libvirt + KVM]
E -->|JSON-RPC / SSL| V2[Host 2: VDSM + libvirt + KVM]
V1 & V2 --> SD[(Shared storage domains<br/>NFS · iSCSI · FC · GlusterFS)]
| Part | What it does |
|---|---|
| oVirt Engine | The central brain (a Java application on WildFly). It decides where to start VMs, balances load, handles high availability and migrations. It can run on its own machine, or as a VM inside the same cluster it manages (self-hosted engine). |
| PostgreSQL database | Stores all settings and the current state of everything. |
| Hosts (nodes) | The physical servers running KVM – either oVirt Node (a small ready-made image) or normal Enterprise Linux with oVirt packages. |
| VDSM | Virtual Desktop and Server Manager – a small helper program (agent) on every host. It receives orders from the engine and controls libvirt, storage and networking on that host. |
| Storage domains | Shared storage where VM disks, ISO files and templates are kept – NFS (Network File System), iSCSI, Fibre Channel, GlusterFS or local disks. |
| Portals & APIs (Application Programming Interfaces) | Administration Portal (for admins), VM Portal (for users), REST (Representational State Transfer) API, Python/Java/Ruby SDKs (Software Development Kits) and Ansible modules. |
| Guest agent | qemu-guest-agent inside each VM reports its IP (Internet Protocol) addresses and apps, and allows a clean shutdown. |
The logical structure (hierarchy)
flowchart TB
DC[Data Center] --> CL1[Cluster A<br/>same CPU family]
DC --> CL2[Cluster B]
DC --> SD[Storage domains]
DC --> LN[Logical networks<br/>ovirtmgmt, VM networks]
CL1 --> H1[Host 1] & H2[Host 2]
H1 --> VMa[VMs]
H2 --> VMb[VMs]
| Object | Meaning |
|---|---|
| Data Center | The top-level box. All hosts inside it use the same storage domains. |
| Cluster | A group of hosts with compatible CPUs (Central Processing Units) that follow the same rules. VMs can live-migrate only within a cluster (because the CPUs must match). |
| Host | One KVM server, controlled through VDSM. |
| Storage domain | Data domains (VM disks), ISO domains and export domains. One data domain is the master that holds the metadata (information about the storage). |
| Logical network | Named networks such as ovirtmgmt (for management) and VM networks, connected to the hosts' network cards or VLANs (Virtual Local Area Networks). |
| Virtual machine / Template / Pool | VMs; templates – "golden" master images to create VMs from; pools – groups of identical desktops. |
Key features
- Central management of hosts, VMs, storage and networks from a browser.
- Live migration – move running VMs between hosts in a cluster.
- High availability (HA) – if a host fails, its HA VMs restart automatically on another host. Fencing (remote power control) first makes sure the failed host is really off, so the same VM never runs twice.
- Scheduling & load-balancing policies:
- evenly distributed – spread the load equally,
- power saving – pack VMs onto fewer hosts so others can be switched off,
- VM evenly distributed – same number of VMs per host,
- affinity / anti-affinity rules – keep certain VMs together, or always apart (for example two copies of a database on different hosts).
- Templates and cloning – create many VMs quickly from a golden image.
- Snapshots – save VM disks and memory while running.
- Quotas and role-based access control (RBAC) – limit resources and permissions per user or group.
- Storage live migration – move a VM's disk to other storage while it runs.
- Integration with OpenStack Glance/Neutron, Ansible and LDAP/Active Directory (company logins).
Managing VMs in the Administration Portal
Creating a VM
- Go to Compute → Virtual Machines → New.
- On the General tab:
- choose the Cluster,
- choose a Template (
Blank, or a golden image), - choose the Operating System and type a Name,
- add a network interface (
ovirtmgmtor a VM network), - create a disk (size, storage domain, thin or preallocated).
- On the System tab: set Memory size, Maximum memory and Total virtual CPUs.
- In Boot Options: first device CD-ROM (choose an ISO from the ISO domain), second device Hard Disk.
- Click OK, then Run (or Run Once to boot from the ISO only this one time).
- Open the Console (SPICE (Simple Protocol for Independent Computing Environments) or noVNC) and install the operating system.
Everyday operations
| Action | Where |
|---|---|
| Start / shutdown / power off / reboot | VM toolbar |
| Suspend | VM toolbar |
| Live migrate | Migrate → choose the destination host, or let the scheduler decide |
| Take a snapshot | VM → Snapshots → Create |
| Make a template | Shut down the VM → Make Template |
| Clone | Clone VM |
| Make it highly available | Edit VM → High Availability → tick Highly Available |
| Set quota / permissions | Administration → Quota / Permissions tab |
Virtual lab · KVM / oVirt · 35 min
Manage a KVM virtualization environment with oVirt
Log in to the oVirt Administration Portal, add a second KVM host, create and install a VM from the ISO domain, snapshot it, live-migrate it between hosts, prove high availability by crashing a host, and turn the VM into a template.
Adding a host
- Go to Compute → Hosts → New.
- Choose the cluster, enter the host name/IP and the root password (or an SSH (Secure Shell) key).
- The engine connects over SSH, installs VDSM and the needed packages, sets up the
ovirtmgmtnetwork bridge and activates the host. - Watch the status change: Installing → Initializing → Up.
oVirt vs virsh vs VMware vCenter
| Feature | virsh / virt-manager | oVirt | VMware vCenter |
|---|---|---|---|
| Manages | One host | Many hosts, data centres | Many hosts, data centres |
| Interface | Command line / desktop GUI (Graphical User Interface) | Web portals + REST API | Web client + API |
| HA & load balancing | No | Yes | Yes (HA, DRS (Distributed Resource Scheduler)) |
| Live migration | By hand | Automatic / by policy | vMotion |
| Licence | Free | Free, open source | Paid |
| Hypervisor | KVM | KVM | ESXi |
oVirt (and its paid version RHV) is used by universities, hosting companies and businesses that want vSphere-like management without licence costs. When users need self-service, multi-tenant cloud (where users create their own VMs) instead of admin-driven virtualization, organisations move one step further to OpenStack – covered in Module 2.
Summary
- oVirt is free central management for KVM; the oVirt Engine controls hosts through the VDSM agent.
- Hierarchy: Data Center → Cluster → Host → VM; storage domains and logical networks belong to the data centre.
- Features: live migration, HA with fencing, scheduling policies, templates, snapshots, quotas, RBAC, REST API.
- VMs are created in the Administration Portal by choosing cluster, template, OS (Operating System), network, disk, memory, CPUs and boot options.
Practice questions
- What is oVirt? Explain its architecture with a diagram.
- Explain the roles of the oVirt Engine and VDSM.
- Describe the data centre, cluster and host hierarchy in oVirt.
- List the features of oVirt.
- Write the steps to create a virtual machine in the oVirt Administration Portal.
- Compare virsh, oVirt and VMware vCenter.
Practise this topic
Hands-on virtual lab
Apply what you just read in a realistic, guided simulation. Free with a verified account.
Create a free account to track your progress and unlock virtual labs.