How To Install fence-virt on Debian 11

In this tutorial we learn how to install fence-virt on Debian 11. fence-virt is Pluggable fencing framework for virtual machines - agent

Introduction

In this tutorial we learn how to install fence-virt on Debian 11.

What is fence-virt

fence-virt is:

The fencing framework consists of the agent (fence_virt) and the host daemon (fence_virtd). The fence_virtd host daemon is responsible for processing fencing requests from fence_virt agents running in virtual machines and routing the requests to the appropriate physical machine for action.

This package contains the fence_virt agent to be used inside the virtual machine.

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

Install fence-virt Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install fence-virt

Install fence-virt Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fence-virt

Install fence-virt 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install fence-virt

How To Uninstall fence-virt on Debian 11

To uninstall only the fence-virt package we can use the following command:

sudo apt-get remove fence-virt

Uninstall fence-virt And Its Dependencies

To uninstall fence-virt and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove fence-virt

Remove fence-virt Configurations and Data

To remove fence-virt configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge fence-virt

Remove fence-virt configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge fence-virt

Dependencies

fence-virt have the following dependencies:

References

Summary

In this tutorial we learn how to install fence-virt package on Debian 11 using different package management tools: apt, apt-get and aptitude.