How To Install mom on Ubuntu 22.04

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

Introduction

In this tutorial we learn how to install mom on Ubuntu 22.04.

What is mom

mom is:

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.

There are three methods to install mom on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install mom Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install mom using apt-get by running the following command:

sudo apt-get -y install mom

Install mom Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mom

Install mom Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install mom

How To Uninstall mom on Ubuntu 22.04

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

sudo apt-get remove mom

Uninstall mom And Its Dependencies

To uninstall mom and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove mom

Remove mom Configurations and Data

To remove mom configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge mom

Remove mom configuration, data, and all of its dependencies

We can use the following command to remove mom configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mom

References

Summary

In this tutorial we learn how to install mom package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.