How To Install fence-virt on Kali Linux

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

Introduction

In this tutorial we learn how to install fence-virt on Kali Linux.

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 Kali Linux. 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 on Kali Linux first since aptitude is usually not installed by default on Kali Linux. 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 Kali Linux

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 Kali Linux, 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 Kali Linux 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 Kali Linux using different package management tools: apt, apt-get and aptitude.