fence_virt command not found

In this troubleshooting guide we learn how to fix fence_virt command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

fence_virt: command not found

or when using sudo you get the following error message

sudo: fence_virt: command not found

Solutions to fence_virt: command not found

How To Fix fence_virt: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu fence_virt is provided by fence-virt package.

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.

To fix this problem, we can install more using the command below.

sudo apt-get -y install fence-virt

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install fence-virt.

sudo apt -y install fence-virt

Or if you have aptitude installed you can use the following command.

sudo aptitude install fence-virt

Summary

In this tutorial we learn how to fix fence_virt command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.