Re: iSCSI boot driver version 0.1.1 for iBFT

From: Daisuke Aoyama <aoyama_at_peach.ne.jp>
Date: Sun, 27 Jun 2010 12:06:47 +0900
Vincent Hoffman, wrote:
> Since I dont have a supported nic, would the iscsi support in gpxe
> (http://etherboot.org/wiki/iscsiboot)
> be enough? (might give it a try if i get time after the weekend.)

Yes. gPXE + istgt can be used. I have confirmed with Windows before.
Now I tested with FreeBSD 8.1+isboot0.1.3 (integrated).
If you use integrated version, you can install FreeBSD to iSCSI target,
mentioned in http://www.etherboot.org/wiki/sanboot/iscsi_install.

There is the log of my old machine which have Intel Fast Ether onboard.
(use gPXE1.0.0 FD + FreeBSD-8.1-RC1-i386-isboot-0.1.3.iso)

gPXE 1.0.0 "Customize image configuration options" (static IP):
---------------------------------------------------------------
#!gpxe
ifopen net0
set net0/initiator-iqn iqn.2000-09.org.etherboot:gpxe-fbs8
set net0/ip 192.168.2.224
set net0/netmask 255.255.255.0
set net0/gateway 192.168.2.1
set net0/dns 192.168.2.1
set keep-san 1
sanboot iscsi:192.168.2.36::::iqn.2007-09.jp.ne.peach:isboot-gpxe
---------------------------------------------------------------
istgt.conf:
---------------------------------------------------------------
[InitiatorGroup97]
  Comment "Initiator Group97"
  InitiatorName "iqn.2000-09.org.etherboot:gpxe-fbs8"
  Netmask 192.168.2.0/24

[LogicalUnit97]
  Comment "iSCSI Boot Disk3"
  TargetName "iqn.2007-09.jp.ne.peach:isboot-gpxe"
  Mapping PortalGroup4 InitiatorGroup97
  AuthMethod Auto
  UseDigest Auto
  UnitType Disk
  #QueueDepth 64
  # FreeBSD 8.1 gPXE 1.0.0
  LUN0 Storage /tank/iscsiz/istgt-boot-gpxe 16GB
---------------------------------------------------------------
dmesg:
---------------------------------------------------------------
iSCSI boot driver version 0.1.3
IS: Initiator name: iqn.2000-09.org.etherboot:gpxe-fbs8
NIC0: IP address: 192.168.2.224
NIC0: Prefix: 24
NIC0: Gateway: 192.168.2.1
NIC0: MAC address: 00:10:dc:55:5d:a1
TGT0: Target IP address: 192.168.2.36
TGT0: Target Port: 3260
TGT0: Target LUN: 0
TGT0: Target name: iqn.2007-09.jp.ne.peach:isboot-gpxe
Boot NIC: fxp0
Configure IPv4 by NIC0
Attempting to login to iSCSI target and scan all LUNs.
... cut ...
da0 at isboot0 bus 0 scbus0 target 0 lun 0
da0: <FreeBSD iSCSI DISK 0001> Fixed Direct Access SCSI-5 device
da0: 16384MB (33554432 512 byte sectors: 255H 63S/T 2088C)
... cut ...
Boot device: da0
---------------------------------------------------------------
some results:
---------------------------------------------------------------
# df
Filesystem  1K-blocks   Used    Avail Capacity  Mounted on
/dev/da0s1a    507630 173014   294006    37%    /
devfs               1      1        0   100%    /dev
/dev/da0s1e    507630     12   467008     0%    /tmp
/dev/da0s1f  12744762 705772 11019410     6%    /usr
/dev/da0s1d   1500046    294  1379750     0%    /var
# camcontrol devlist
<FreeBSD iSCSI DISK 0001>          at scbus0 target 0 lun 0 (da0,pass0)
# diskinfo -v da0
da0
        512             # sectorsize
        17179869184     # mediasize in bytes (16G)
        33554432        # mediasize in sectors
        0               # stripesize
        0               # stripeoffset
        2088            # Cylinders according to firmware.
        255             # Heads according to firmware.
        63              # Sectors according to firmware.
        10000097        # Disk ident.

# ifconfig -a
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:10:dc:00:45:4e
        ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        lladdr 0.10.dc.56.0.0.45.4e.a.2.ff.fe.0.0.0.0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=2009<RXCSUM,VLAN_MTU,WOL_MAGIC>
        ether 00:10:dc:55:5d:a1
        inet 192.168.2.224 netmask 0xffffff00 broadcast 192.168.2.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.2.1        UGS         0        1   fxp0
127.0.0.1          link#4             UH          0        2    lo0
192.168.2.0/24     link#3             U           2    11391   fxp0
192.168.2.224      link#3             UHS         0       16    lo0

Internet6:
Destination                       Gateway                       Flags 
Netif Expire
::1                               ::1                           UH 
lo0
fe80::%lo0/64                     link#4                        U 
lo0
fe80::1%lo0                       link#4                        UHS 
lo0
ff01:4::/32                       fe80::1%lo0                   U 
lo0
ff02::%lo0/32                     fe80::1%lo0                   U 
lo0
---------------------------------------------------------------

Notes:
You have to configure DNS (/etc/resolv.conf) and hostname manually.
Or must set exactly matched IP/mask/route in iBFT by sysinstall.
This is current limitation. (sysintall breaks booted NIC parameter.)

-- 
Daisuke Aoyama
 
Received on Sun Jun 27 2010 - 01:07:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC