From owner-freebsd-current@freebsd.org Thu Sep 24 23:55:51 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49E95A08A4A for ; Thu, 24 Sep 2015 23:55:51 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 898C01994; Thu, 24 Sep 2015 23:55:49 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id AA18650F26; Fri, 25 Sep 2015 08:47:04 +0900 (JST) Received: from artemis (unknown [172.18.0.21]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 664E650F0B; Fri, 25 Sep 2015 08:47:04 +0900 (JST) Message-ID: From: "Daisuke Aoyama" To: =?UTF-8?Q?Edward_TomaszNapiera=C5=82a?= , "John Nielsen" Cc: "freebsd-current Current" , "Yonas Yanfa" References: <56025EEE.50404@fizk.net> <5B296016-F14D-48A9-8DC6-0D8EA28AE891@jnielsen.net> <20150923212520.GA7390@brick> In-Reply-To: <20150923212520.GA7390@brick> Subject: Re: Add isboot iSCSI boot driver to FreeBSD Date: Fri, 25 Sep 2015 08:46:53 +0900 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 23:55:51 -0000 Hi, First of all, thank you for using isboot. > The basic problem with isboot is that it only works with the old iSCSI > initiator, which is now marked obsolete. AFAIK there is no ready solution It's started in FreeBSD 7.1. I plan to use initiator functions at 2010. However, I didn't know how to access it. For more, first post on blog(Japanese): http://shell.peach.ne.jp/aoyama/archives/1179 Now isboot has own limited builtin initiator to handle login sequence. isboot will continue to use it instead of switching to iSCSI initiator. So I think current problem is header file (structure in it) only. You don't need load iscsi_initiator.ko even if you use FreeBSD 10. I have removed these header files in 0.2.11 release. It is not so difficult compared to that to rewrite the code. Of course, I should replace the code later... http://www.peach.ne.jp/archives/isboot/isboot-0.2.11.tar.gz http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-10.2-RELEASE-amd64-memstick-isboot-0.2.11.img You can boot/install with the demo and empty disk. (see attached N4F/istgt config image) build test(not jail host): 8.4, 9.3, 10.2, 11-current. boot/install test: NAS4Free 10.2.0.2(istgt) + FreeBSD 10.2 memstick + VBox + iPXE(iso). -- Daisuke Aoyama -------------------------------------------------- From: "Edward TomaszNapierała" Sent: Thursday, September 24, 2015 6:25 AM To: "John Nielsen" Cc: "freebsd-current Current" ; ; "Yonas Yanfa" Subject: Re: Add isboot iSCSI boot driver to FreeBSD > On 0923T0916, John Nielsen wrote: >> On Sep 23, 2015, at 2:12 AM, Yonas Yanfa wrote: >> >> > isboot is a iSCSI boot driver written by Daisuke Aoyama that allows you to boot your root >> > partition using iSCSI. >> [,,,] >> > This was first announced way back in June, 2010: >> > >> > https://lists.freebsd.org/pipermail/freebsd-scsi/2010-June/004425.html >> > >> > I've tested the current version (v0.2.10) and it works with FreeBSD 10.2 booting a ZFS on >> > root installation: >> > >> > http://www.peach.ne.jp/archives/isboot/isboot-0.2.10.tar.gz >> > >> > I've used iSCSI boot with Ubuntu Server for a while and it's been very useful. I'm looking >> > forward to FreeBSD having the same capability built-in. >> >> +1. I have used this module in the past and it is extremely useful. Thanks for the pointer, I >> wasn’t aware it had been updated for FreeBSD 10.x so recently. I’ve also wondered why this >> is not part of FreeBSD by default. >> >> Aoyama-san, do you have any objection to this code being included in FreeBSD? If not, can you >> formally assign it a BSD or other friendly license? Thank you again for the work! >> >> Trasz (or anyone), is there other work to support iSCSI booting and/or IBFT on FreeBSD? >> Anything else isboot might conflict with? Any problems with integrating the code or with the >> code itself? > > The basic problem with isboot is that it only works with the old iSCSI > initiator, which is now marked obsolete. AFAIK there is no ready solution > that works with the new one - however, it should be possible to use upcoming > reroot support to achieve this: boot with a temporary rootfs, mounted from > a ramdisk preloaded by loader(8), setup an iSCSI session, and then replace > the temporary rootfs with the real one, mounted over iSCSI.