1 Reply Latest reply: Oct 22, 2012 10:42 PM by ***Anuj*** RSS

    iSCSI Target / initiator on Virtualbox Oracle Linux 5.7

    ***Anuj***
      Hi All,

      I am trying to setup iSCSI enviornment in Virtualbox. I have 3 virtual machines and I am using first virtual machine as ISCSI Target.On other two virtual machines I want to setup initiator but I am getting error in my discovery process(See below).Please share if have done similar setup or have any suggestions.Thanks in advance.

      Anuj

      [root@localhost iscsi]# iscsiadm -m discovery -t sendtargets -p 192.168.2.13
      iscsiadm: cannot make connection to 192.168.2.13: No route to host
      iscsiadm: cannot make connection to 192.168.2.13: No route to host

      [root@localhost iscsi]# /sbin/route
      Kernel IP routing table
      Destination Gateway Genmask Flags Metric Ref Use Iface
      192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
      169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
      default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
      [root@localhost iscsi]#
      [root@localhost iscsi]# cat /etc/resolv.conf
      ; generated by /sbin/dhclient-script
      search Belkin
      nameserver 192.168.2.1
      nameserver 74.128.17.114
      nameserver 74.128.19.102
      [root@localhost iscsi]#

      TARGET
      -----------

      [root@san iscsi]# tgtadm lld iscsi op show --mode target
      Target 1: san
      System information:
      Driver: iscsi
      State: ready
      I_T nexus information:
      LUN information:
      LUN: 0
      Type: controller
      SCSI ID: IET 00010000
      SCSI SN: beaf10
      Size: 0 MB, Block size: 1
      Online: Yes
      Removable media: No
      Readonly: No
      Backing store type: null
      Backing store path: None
      Backing store flags:
      LUN: 1
      Type: disk
      SCSI ID: IET 00010001
      SCSI SN: beaf11
      Size: 2147 MB, Block size: 512
      Online: Yes
      Removable media: No
      Readonly: No
      Backing store type: rdwr
      Backing store path: /disks/disk1.dat
      Backing store flags:
      LUN: 2
      Type: disk
      SCSI ID: IET 00010002
      SCSI SN: beaf12
      Size: 2147 MB, Block size: 512
      Online: Yes
      Removable media: No
      Readonly: No
      Backing store type: rdwr
      Backing store path: /disks/disk2.dat
      Backing store flags:
      LUN: 3
      Type: disk
      SCSI ID: IET 00010003
      SCSI SN: beaf13
      Size: 2147 MB, Block size: 512
      Online: Yes
      Removable media: No
      Readonly: No
      Backing store type: rdwr
      Backing store path: /disks/disk3.dat
      Backing store flags:
      Account information:
      ACL information:
      ALL
      [root@san iscsi]#
        • 1. Re: iSCSI Target / initiator on Virtualbox Oracle Linux 5.7
          Catch~22
          I suggest to disable the firewall for the purpose of troubleshooting and see if you can connect:

          <pre>
          service iptables stop
          </pre>

          Also make sure you have connected your Virtual Network adapter as "Bridged" and not as "NAT" or "host only", which restricts your ability to connect to the outside or back to the inside of your machine.

          Edited by: Dude on Oct 22, 2012 9:07 PM