tcmu-runner command not found

In this troubleshooting guide we learn how to fix tcmu-runner command not found error message

Introduction

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

tcmu-runner: command not found

or when using sudo you get the following error message

sudo: tcmu-runner: command not found

Solutions to tcmu-runner: command not found

How To Fix tcmu-runner: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tcmu-runner is provided by tcmu-runner package.

tcmu-runner is:

LIO is the SCSI target in the Linux kernel. It is entirely kernel code, and allows exported SCSI logical units (LUNs) to be backed by regular files or block devices. But, if one want to get fancier with the capabilities of the device one is emulating, the kernel is not necessarily the right place. While there are userspace libraries for compression, encryption, and clustered storage solutions like Ceph or Gluster, these are not accessible from the kernel.

The TCMU userspace-passthrough backstore allows a userspace process to handle requests to a LUN. But since the kernel-user interface that TCMU provides must be fast and flexible, it is complex enough that one would like to avoid each userspace handler having to write boilerplate code.

tcmu-runner handles the messy details of the TCMU interface – UIO, netlink, pthreads, and DBus – and exports a more friendly C plugin module API. Modules using this API are called “TCMU handlers”. Handler authors can write code just to handle the SCSI commands as desired, and can also link with whatever userspace libraries they like.

This is the daemon package

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

sudo apt-get -y install tcmu-runner

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

You can also use apt command to install tcmu-runner.

sudo apt -y install tcmu-runner

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

sudo aptitude install tcmu-runner

Summary

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