Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When attempting to start the iscsitarget service, I get

FATAL: Module iscsi_trgt not found.

Trying to build module using instructions from fails and the build log only has a single line in it saying the build started. Nothing about the failure.

share|improve this question
Which ubuntu-version do you use? – Clausi Oct 21 '11 at 10:13
up vote 5 down vote accepted

It depends on your ubuntu-version.

On newer systems (since Maverick) you have to install some additional packets:

sudo aptitude install iscsitarget iscsitarget-source iscsitarget-dkms

This compiles the required module automagically.

On Lucid you have to compile yourself (and maybe again after every kernel-update):

sudo aptitude install iscsitarget iscsitarget-source
# compile with module-assitant
sudo m-a a-i iscsitarget
share|improve this answer
These are the instructions I had followed. The question is how to determine why the compile is failing. – bumbling fool Oct 19 '11 at 11:17
The log-files can be found under /var/cache/modass. Have you tried the -t -v options (text-mode + verbose)? – Clausi Oct 21 '11 at 10:13
In ubuntu 11.10 oneiric ocelot, installing above mentioned packages will automatically compile the required kernel modules and install it to the system. After that, you can run; sudo /etc/init.d/iscsitarget start to start the iscsitarget service. Hope this helps :) – nobody Dec 15 '11 at 5:26
@Sajith, This may be true in general, however the same package broke for me when upgrading from 10.04. I had to apt-get install iscsitarget-dkms to fix it then add the module manually. Not sure why. The above directions did fix it though. :) – EnabrenTane Jan 4 '12 at 2:09

If none of the solutions are working, try following:

apt-get install --reinstall iscsitarget-dkms

This re-installs the iscsitarget dkms and resolved the problem for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.