I just try this (i'm in a vmware vm):

root@papallo:/usr/src/linux# apt-get install linux-image-3.2.0-24
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'linux-image-3.2.0-24-powerpc64-smp' for regex 
'linux-image-3.2.0-24'
Note, selecting 'linux-image-3.2.0-24-powerpc-smp' for regex 
'linux-image-3.2.0-24'
Note, selecting 'linux-image-3.2.0-24-virtual' for regex 'linux-image-3.2.0-24'
Note, selecting 'linux-image-3.2.0-24-generic' for regex 'linux-image-3.2.0-24'
Note, selecting 'linux-image-3.2.0-24-omap' for regex 'linux-image-3.2.0-24'
Note, selecting 'linux-image-3.2.0-24-generic-pae' for regex 
'linux-image-3.2.0-24'
linux-image-3.2.0-24-virtual is already the newest version.
Suggested packages:
  linux-doc-3.2.0 linux-source-3.2.0 linux-tools
The following NEW packages will be installed:
  linux-image-3.2.0-24-generic linux-image-3.2.0-24-generic-pae
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 75.5 MB of archives.
After this operation, 225 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main 
linux-image-3.2.0-24-generic i386 3.2.0-24.37 [37.7 MB]
Get:2 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main 
linux-image-3.2.0-24-generic-pae i386 3.2.0-24.37 [37.9 MB]                     
              
Fetched 75.5 MB in 23min 58s (52.5 kB/s)                                        
                                                                              
Selecting previously unselected package linux-image-3.2.0-24-generic.
(Reading database ... 54661 files and directories currently installed.)
Unpacking linux-image-3.2.0-24-generic (from 
.../linux-image-3.2.0-24-generic_3.2.0-24.37_i386.deb) ...
Done.
Selecting previously unselected package linux-image-3.2.0-24-generic-pae.
Unpacking linux-image-3.2.0-24-generic-pae (from 
.../linux-image-3.2.0-24-generic-pae_3.2.0-24.37_i386.deb) ...
Done.
Setting up lio-utils (3.1+git0.91b96103-2) ...
Loading target_core_mod/ConfigFS core:   [FAILED]: 1
invoke-rc.d: initscript target, action "start" failed.
dpkg: error processing lio-utils (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up linux-image-3.2.0-24-generic (3.2.0-24.37) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-24-generic 
/boot/vmlinuz-3.2.0-24-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-24-generic 
/boot/vmlinuz-3.2.0-24-generic
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.2.0-24-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-24-virtual
Found kernel: /boot/vmlinuz-3.2.0-24-generic
Found kernel: /boot/vmlinuz-2.6.24-31-virtual
Found kernel: /boot/memtest86+.bin
Replacing config file /run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

Setting up linux-image-3.2.0-24-generic-pae (3.2.0-24.37) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 
3.2.0-24-generic-pae /boot/vmlinuz-3.2.0-24-generic-pae
update-initramfs: Generating /boot/initrd.img-3.2.0-24-generic-pae
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-24-generic-pae 
/boot/vmlinuz-3.2.0-24-generic-pae
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.2.0-24-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-24-virtual
Found kernel: /boot/vmlinuz-3.2.0-24-generic
Found kernel: /boot/vmlinuz-2.6.24-31-virtual
Found kernel: /boot/memtest86+.bin
Replacing config file /run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

Errors were encountered while processing:
 lio-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then reboot and:

Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-24-generic-pae i686)

 * Documentation:  https://help.ubuntu.com/
Last login: Sun Apr 29 22:56:54 2012 from 172.16.32.1
root@papallo:~# uname -a
Linux papallo 3.2.0-24-generic-pae #37-Ubuntu SMP Wed Apr 25 10:47:59 UTC 2012 
i686 i686 i386 GNU/Linux
root@papallo:~# ls -la /s
sbin/    selinux/ srv/     sys/     
root@papallo:~# ls -la /s
sbin/    selinux/ srv/     sys/     

Now there are that sub-dir that lio needs:

root@papallo:~# ls -la /sys/kernel/
config/             fscaps              kexec_crash_size    mm/                 
profiling           slab/               uevent_seqnum
debug/              kexec_crash_loaded  kexec_loaded        notes               
security/           uevent_helper       vmcoreinfo
root@papallo:~# ls -la /sys/kernel/config/target/
core/    version  
root@papallo:~# ls -la /sys/kernel/config/target/
core/    version  
root@papallo:~# ls -la /sys/kernel/config/target/version 
-r--r--r-- 1 root root 4096 Apr 29 23:00 /sys/kernel/config/target/version

root@papallo:~# apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up lio-utils (3.1+git0.91b96103-2) ...
Calling START /etc/init.d/target ERROR, target_core_mod/ConfigFS already active
invoke-rc.d: initscript target, action "start" failed.
dpkg: error processing lio-utils (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 lio-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then try again to install:

root@papallo:~# apt-get install targetcli lio-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lio-utils is already the newest version.
The following NEW packages will be installed:
  targetcli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 19.4 kB of archives.
After this operation, 147 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://it.archive.ubuntu.com/ubuntu/ precise/universe targetcli all 
2.0rc1-2 [19.4 kB]
Fetched 19.4 kB in 6s (2,899 B/s)    
Selecting previously unselected package targetcli.
(Reading database ... 63402 files and directories currently installed.)
Unpacking targetcli (from .../targetcli_2.0rc1-2_all.deb) ...
Setting up lio-utils (3.1+git0.91b96103-2) ...
Calling START /etc/init.d/target ERROR, target_core_mod/ConfigFS already active
invoke-rc.d: initscript target, action "start" failed.
dpkg: error processing lio-utils (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of targetcli:
 targetcli depends on lio-utils; however:
  Package lio-utils is not configured yet.
dpkg: error processing targetcli (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          Errors were encountered while processing:
 lio-utils
 targetcli
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@papallo:~# apt-get --purge remove targetcli lio-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  lio-utils* targetcli*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 724 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 63422 files and directories currently installed.)
Removing targetcli ...
Removing lio-utils ...
Unloading fabric/configfs:   [OK]
Unloading target_core_mod/ConfigFS core: ERROR: Module target_core_iblock does 
not exist in /proc/modules
ERROR: Module target_core_file does not exist in /proc/modules
ERROR: Module target_core_pscsi does not exist in /proc/modules
ERROR: Module target_core_stgt does not exist in /proc/modules
  [OK]
Successfully unloaded target_core_mod/ConfigFS core
Purging configuration files for lio-utils ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
root@papallo:~# apt-get install targetcli lio-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  lio-utils targetcli
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 102 kB/122 kB of archives.
After this operation, 724 kB of additional disk space will be used.
Get:1 http://it.archive.ubuntu.com/ubuntu/ precise/universe lio-utils i386 
3.1+git0.91b96103-2 [102 kB]
Fetched 102 kB in 2s (38.3 kB/s)    
Selecting previously unselected package lio-utils.
(Reading database ... 63355 files and directories currently installed.)
Unpacking lio-utils (from .../lio-utils_3.1+git0.91b96103-2_i386.deb) ...
Selecting previously unselected package targetcli.
Unpacking targetcli (from .../targetcli_2.0rc1-2_all.deb) ...
Processing triggers for ureadahead ...
Setting up lio-utils (3.1+git0.91b96103-2) ...
Loading target_core_mod/ConfigFS core:   [OK]
Calling ConfigFS script /etc/target/tcm_start.sh for target_core_mod:   [OK]
Calling ConfigFS script /etc/target/lio_start.sh for iscsi_target_mod:   [OK]
Setting up targetcli (2.0rc1-2) ...
root@papallo:~# 

So i think there are some different in the ".config" of the kernel for virtual 
machines and generic version
        
HTH
Gianni

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/968654

Title:
  can't start target (missing target_core_mod)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lio-utils/+bug/968654/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to