Jan 302013
 

今天希望可以在虚拟机里测试Openstack,不过发现安装过程出现报错

FATAL: Module iscsi_trgt not found.

这个脚本在我的物理服务器上是没问题的,那么这个问题,应该会和虚拟机有关。

http://toomeek.waw.pl/blog/?p=2370

看来需要先降级一下内核才行。

# dpkg-reconfigure iscsitarget-dkms -------- Uninstall Beginning -------- Module: iscsitarget Version: 1.4.20.2 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: 1.4.20.2 completely from the DKMS tree. ------------------------------ Done. Creating symlink /var/lib/dkms/iscsitarget/1.4.20.2/source -> /usr/src/iscsitarget-1.4.20.2 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 http://10.1.199.5/ubuntu/ precise-updates/main linux-headers-3.2.0-32 all 3.2.0-32.51 [11.7 MB] Get:2 http://10.1.199.5/ubuntu/ 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

(required)

(required)

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