How To Install mom on CentOS 7

In this tutorial we learn how to install mom on CentOS 7. mom is Dynamically manage system resources on virtualization hosts

Introduction

In this tutorial we learn how to install mom on CentOS 7.

What is mom

MOM is a policy-driven tool that can be used to manage overcommitment on KVM hosts. Using libvirt, MOM keeps track of active virtual machines on a host. At a regular collection interval, data is gathered about the host and guests. Data can come from multiple sources (eg. the /proc interface, libvirt API calls, a client program connected to a guest, etc). Once collected, the data is organized for use by the policy evaluation engine. When started, MOM accepts a user-supplied overcommitment policy. This policy is regularly evaluated using the latest collected data. In response to certain conditions, the policy may trigger reconfiguration of the system’s overcommitment mechanisms. Currently MOM supports control of memory ballooning and KSM but the architecture is designed to accommodate new mechanisms such as cgroups.

We can use yum or dnf to install mom on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install mom.

Install mom on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mom using yum by running the following command:

sudo yum -y install mom

Install mom on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install mom using dnf by running the following command:

sudo dnf -y install mom

How To Uninstall mom on CentOS 7

To uninstall only the mom package we can use the following command:

sudo dnf remove mom

References

Summary

In this tutorial we learn how to install mom on CentOS 7 using yum and dnf.