Jan 302013


FATAL: Module iscsi_trgt not found.




# dpkg-reconfigure iscsitarget-dkms -------- Uninstall Beginning -------- Module: iscsitarget Version: Kernel: 3.2.0-36-virtual (x86_64) ------------------------------------- Status: Before uninstall, this module version was ACTIVE on this kernel. iscsi_trgt.ko: - Uninstallation - Deleting from: /lib/modules/3.2.0-36-virtual/updates/dkms/ - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. depmod.... DKMS: uninstall completed. ------------------------------ Deleting module version: completely from the DKMS tree. ------------------------------ Done. Creating symlink /var/lib/dkms/iscsitarget/ -> /usr/src/iscsitarget- DKMS: add completed. Error! Your kernel headers for kernel 3.2.0-32-virtual cannot be found. Please install the linux-headers-3.2.0-32-virtual package, or use the --kernelsourcedir option to tell DKMS where it's located


root@test1:~/openstack_folsom_deploy# apt-get install linux-headers-3.2.0-32-virtual Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: linux-headers-3.2.0-32 The following NEW packages will be installed: linux-headers-3.2.0-32 linux-headers-3.2.0-32-virtual 0 upgraded, 2 newly installed, 0 to remove and 55 not upgraded. Need to get 12.7 MB of archives. After this operation, 67.5 MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 precise-updates/main linux-headers-3.2.0-32 all 3.2.0-32.51 [11.7 MB] Get:2 precise-updates/main linux-headers-3.2.0-32-virtual amd64 3.2.0-32.51 [990 kB] Fetched 12.7 MB in 0s (26.9 MB/s) Selecting previously unselected package linux-headers-3.2.0-32. (Reading database ... 67539 files and directories currently installed.) Unpacking linux-headers-3.2.0-32 (from .../linux-headers-3.2.0-32_3.2.0-32.51_all.deb) ... Selecting previously unselected package linux-headers-3.2.0-32-virtual. Unpacking linux-headers-3.2.0-32-virtual (from .../linux-headers-3.2.0-32-virtual_3.2.0-32.51_amd64.deb) ... Setting up linux-headers-3.2.0-32 (3.2.0-32.51) ... Setting up linux-headers-3.2.0-32-virtual (3.2.0-32.51) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-32-virtual /boot/vmlinuz-3.2.0-32-virtual root@test1:~/openstack_folsom_deploy# /etc/init.d/iscsitarget restart * Removing iSCSI enterprise target devices: [ OK ] * Starting iSCSI enterprise target service [ OK ] [ OK ] root@test1:~/openstack_folsom_deploy#

  2 Responses to “Ubuntu 12.04 虚拟机 FATAL: Module iscsi_trgt not found.”

  1. I am glad that my post was helpful 🙂

 Leave a Reply



This site uses Akismet to reduce spam. Learn how your comment data is processed.