[one-users] How to mount iscsi target in linux container?

cmcc.dylan dx10years at 126.com
Sun Mar 3 23:07:35 PST 2013


Hi, everyone.


     Recently, I'm doing some works about linux container. I choose lxc as the hypervisor in the cloud platform - OpenNebula. The basic funtions are done. I plan to use iscsi storage as shared storage. Beause i choose ubuntu as the container os, i execute command "sudo  apt-get install open-iscsi open-iscsi-utils". It's failed unfortunately.
     when i install, it show informations as follows:
     update-rc.d: warning: open-iscsi stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6)
    * Starting iSCSI initiator service iscsid                               [ OK ] 
    * Setting up iSCSI targets                                              [ OK ]


    when i execute iscsi discovery commad, it proves it is ok and shows informations as follows:
   ubuntu at lxc:~$ sudo iscsiadm -m discovery -t sendtargets -p 192.168.35.17
   192.168.35.17:3260,1 iqn.2013-02.node2
   However, when i execute iscsi login command, it's failed and show informations:
    $ sudo iscsiadm -m node --targetname iqn.2013-02.node2 -p 192.168.35.17 --login
    Logging in to [iface: default, target: iqn.2013-02.node2, portal: 192.168.35.17,3260]
    iscsiadm: got read error (0/0), daemon died?
    iscsiadm: Could not login to [iface: default, target: iqn.2013-02.node2, portal: 192.168.35.17,3260]: 
    iscsiadm: initiator reported error (18 - could not communicate to iscsid


   Does lxc support iscsi ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130304/54aa59b1/attachment.htm>


More information about the Users mailing list