From owner-freebsd-questions@FreeBSD.ORG Thu Sep 20 14:43:30 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E57F9106566B for ; Thu, 20 Sep 2012 14:43:30 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1A2BE8FC0C for ; Thu, 20 Sep 2012 14:43:29 +0000 (UTC) Received: from vhoffman.lon.namesco.net (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q8KEg6M2042985 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 20 Sep 2012 15:42:07 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <505B2B3E.8010607@unsane.co.uk> Date: Thu, 20 Sep 2012 15:42:06 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: dweimer@dweimer.net References: In-Reply-To: X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Anyone Tried to use iPXE to boot with iSCSI? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 14:43:31 -0000 On 19/09/2012 06:53, dweimer wrote: > I was just trying some proof of concept testing to see if I could get > a system booting with no local disk using iSCSI running from my > FreeNAS box. > > I got started, by first booting a 9.1-RC1 CD, into live CD, created a > /tmp/iscsi.conf used kldload to load the iscsi initiator, connected to > the target, created a gpt boot partition, swap partition and just a > single / volume using remianing space. Copied the bootcode, created > the file system, extracted the system etc. Created a loader.conf > file, added the iscsi_initiator_load="YES" option, copied my > /tmp/iscsi.conf file to the new file system at /etc/iscsi.conf created > a /etc/fstab file using the gpart labels to mount / and swap partitions. > > Booted the system from the iPXE.iso, ran the necessary configuration > options, connected to the iscsi volume, and booted from it. It does > launch the bootcode, as expected, and then breaks failing to mount root. > > Whoch I actually expected, I have proved I can install to an iSCSI > volume, I can connect to that iSCSI volume prior to loading the > kernel, and load the kernel from it. > > What I can't seem to find any information on is how to mount iSCSI > volumes at boot on FreeBSD, so that the kernel can mount the root > partition. Does anyone have any idea how to do this, or if its even > possible? > Sounds like you need this http://freebsd.1045724.n5.nabble.com/iSCSI-boot-driver-0-2-5-isboot-ko-has-been-released-td5736301.html Vince