How To Install lxcfs on CentOS 8
Introduction
In this tutorial we learn how to install lxcfs on CentOS 8.
What is lxcfs
LXCFS is a simple userspace filesystem designed to work around some current limitations of the Linux kernel. Specifically, it’s providing two main things - A set of files which can be bind-mounted over their /proc originals to provide CGroup-aware values. - A cgroupfs-like tree which is container aware. The code is pretty simple, written in C using libfuse. The main driver for this work was the need to run systemd based containers as a regular unprivileged user while still allowing systemd inside the container to interact with cgroups. Now with the introduction of the cgroup namespace in the Linux kernel, that part is no longer necessary on recent kernels and focus is now on making containers feel more like a real independent system through the proc masking feature.
We can use yum or dnf to install lxcfs on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install lxcfs.
Install lxcfs on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install lxcfs using yum by running the following command:
sudo yum -y install lxcfs
Install lxcfs on CentOS 8 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 lxcfs using dnf by running the following command:
sudo dnf -y install lxcfs
How To Uninstall lxcfs on CentOS 8
To uninstall only the lxcfs package we can use the following command:
sudo dnf remove lxcfs
References
Summary
In this tutorial we learn how to install lxcfs on CentOS 8 using yum and dnf.