Comment 43 for bug 1817321

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

verification done for disco/hw-detect.

disk-detect found the iscsi target/lun configured in ibft.

$ wget http://boot.ipxe.org/ipxe.lkrn
$ wget http://archive.ubuntu.com/ubuntu/dists/disco/main/installer-amd64/20101020ubuntu570/images/netboot/ubuntu-installer/amd64/{linux,initrd.gz}

$ python3 -m http.server &

$ qemu-system-x86_64 \
      -nodefaults \
      -enable-kvm \
      -smp 2 -m 4096 \
      -serial stdio \
      -vga virtio \
      -display vnc=0.0.0.0:1 \
      -netdev bridge,id=bridge-world,br=virbr0 \
      -netdev bridge,id=bridge-iscsi,br=virbr-iscsi \
      -device virtio-net-pci,netdev=bridge-world,id=nic-world,mac=52:54:00:00:00:01 \
      -device virtio-net-pci,netdev=bridge-iscsi,id=nic-iscsi,mac=52:54:00:00:00:02 \
      -kernel ipxe.lkrn

workstation $ vncviewer buneary.segmaas.1ss:1

    <ctrl-b>

    iPXE>

    iPXE> ifopen net1
    iPXE> set net1/ip 10.0.0.2
    iPXE> set net1/netmask 255.255.255.0

    iPXE> sanhook iscsi:10.0.0.1:::1:iqn.2019-06.com.example:target1
    Registered SAN device 0x80

    iPXE> ifopen net0
    iPXE> kernel http://192.168.122.1:8000/linux initrd=initrd.gz apt-setup/proposed=true disk-detect/ibft/enable=true --- console=ttyS0
    iPXE> initrd http://192.168.122.1:8000/initrd.gz
    iPXE> boot

...

  │ Select disk to partition: │
  │ │
  │ SCSI3 (0,0,1) (sda) - 8.6 GB IET VIRTUAL-DISK │

...

~ # grep 'retrieving disk-detect' /var/log/syslog
Jun 5 23:36:13 anna[1582]: DEBUG: retrieving disk-detect 1.117ubuntu6.19.04.1

~ # sed -n '/scsi_ibft.ko/,/iBFT disk detection finished/p' /var/log/syslog
Jun 5 23:38:55 disk-detect: insmod /lib/modules/5.0.0-13-generic/kernel/drivers/firmware/iscsi_ibft.ko
Jun 5 23:38:55 disk-detect: # BEGIN RECORD 2.0-874
Jun 5 23:38:55 disk-detect: iface.initiatorname = iqn.2010-04.org.ipxe:00000000-0000-0000-0000-000000000000
Jun 5 23:38:55 disk-detect: iface.hwaddress = 52:54:00:00:00:02
Jun 5 23:38:55 disk-detect: iface.bootproto = STATIC
Jun 5 23:38:55 disk-detect: iface.ipaddress = 10.0.0.2
Jun 5 23:38:55 disk-detect: iface.subnet_mask = 255.255.255.0
Jun 5 23:38:55 disk-detect: iface.primary_dns = 192.168.122.1
Jun 5 23:38:55 disk-detect: iface.vlan_id = 0
Jun 5 23:38:55 disk-detect: iface.net_ifacename = ens4
Jun 5 23:38:55 disk-detect: node.name = iqn.2019-06.com.example:target1
Jun 5 23:38:55 disk-detect: node.conn[0].address = 10.0.0.1
Jun 5 23:38:55 disk-detect: node.conn[0].port = 3260
Jun 5 23:38:55 disk-detect: node.boot_lun = 01000000
Jun 5 23:38:55 disk-detect: # END RECORD
Jun 5 23:38:55 kernel: [ 207.271009] iBFT detected.
Jun 5 23:38:55 disk-detect: Setting up software interface ens4
Jun 5 23:38:55 disk-detect: iscsistart: can not connect to iSCSI daemon (111)!
Jun 5 23:38:55 kernel: [ 207.286051] Loading iSCSI transport class v2.0-870.
Jun 5 23:38:55 disk-detect: iscsistart: version 2.0-874
Jun 5 23:38:55 disk-detect:
Jun 5 23:38:56 kernel: [ 208.291508] iscsi: registered transport (tcp)
Jun 5 23:38:56 kernel: [ 208.294107] scsi host2: iSCSI Initiator over TCP/IP
Jun 5 23:38:56 disk-detect: iscsistart: Connection1:0 to [target: iqn.2019-06.com.example:target1, portal: 10.0.0.1,3260] through [iface: d
efault] is operational now
Jun 5 23:38:56 kernel: [ 208.302594] scsi 2:0:0:0: RAID IET Controller 0001 PQ: 0 ANSI: 5
Jun 5 23:38:56 kernel: [ 208.306723] scsi 2:0:0:0: Attached scsi generic sg0 type 12
Jun 5 23:38:56 kernel: [ 208.310611] scsi 2:0:0:1: Direct-Access IET VIRTUAL-DISK 0001 PQ: 0 ANSI: 5
Jun 5 23:38:56 kernel: [ 208.314013] sd 2:0:0:1: Power-on or device reset occurred
Jun 5 23:38:56 kernel: [ 208.315260] sd 2:0:0:1: Attached scsi generic sg1 type 0
Jun 5 23:38:56 disk-detect: iscsistart: Logging into iqn.2019-06.com.example:target1 10.0.0.1:3260,1
Jun 5 23:38:56 kernel: [ 208.317323] sd 2:0:0:1: [sda] 16777216 512-byte logical blocks: (8.59 GB/8.00 GiB)
Jun 5 23:38:56 kernel: [ 208.317327] sd 2:0:0:1: [sda] 4096-byte physical blocks
Jun 5 23:38:56 kernel: [ 208.317962] sd 2:0:0:1: [sda] Write Protect is off
Jun 5 23:38:56 kernel: [ 208.317965] sd 2:0:0:1: [sda] Mode Sense: 69 00 10 08
aJun 5 23:38:56 kernel: [ 208.319113] sd 2:0:0:1: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
Jun 5 23:38:56 kernel: [ 208.334152] sd 2:0:0:1: [sda] Attached SCSI disk
Jun 5 23:38:56 disk-detect: iBFT disk detection finished.