From owner-freebsd-questions@FreeBSD.ORG Thu Sep 20 00:45:21 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 DF8FB106564A for ; Thu, 20 Sep 2012 00:45:21 +0000 (UTC) (envelope-from btillman99@yahoo.com) Received: from nm20.bullet.mail.ne1.yahoo.com (nm20.bullet.mail.ne1.yahoo.com [98.138.90.83]) by mx1.freebsd.org (Postfix) with SMTP id 92BA18FC08 for ; Thu, 20 Sep 2012 00:45:21 +0000 (UTC) Received: from [98.138.226.178] by nm20.bullet.mail.ne1.yahoo.com with NNFMP; 20 Sep 2012 00:42:28 -0000 Received: from [98.138.88.238] by tm13.bullet.mail.ne1.yahoo.com with NNFMP; 20 Sep 2012 00:42:28 -0000 Received: from [127.0.0.1] by omp1038.mail.ne1.yahoo.com with NNFMP; 20 Sep 2012 00:42:28 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 370677.88031.bm@omp1038.mail.ne1.yahoo.com Received: (qmail 81431 invoked by uid 60001); 20 Sep 2012 00:42:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1348101748; bh=IWifUIg0A1LNTo73MVQeKhO/pBj8jzP+pEWc8QIovTE=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NcRdn5qSPgnJQ8zpkjoM5Qrj7sPN1zz/fA5PxYSzEaDeBCMdMFpkfVsLJftGBnfFGLMEl5zQm7oCaidRq6v3kBpk5bk0iJWAqpaIYEOX2OAxee59ZRe5xjxVQrv2gtp7nboM8UdAToexTCxDWsbHvUno0psw2DHy08/YxtgGyEI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VH2QVmZW1KjNYLTLZKObDqLK+NrO30KTh4dC+RX2tudpa7s1pZUeLwOkKfpPLXOOi4BMklG6ObTrJWQlypa5mACbMTnu6n+Dw3a+SwJB3oJAQSKD+9129UxfMLV443fg8+7eBSSL56fezmRNvT2UKRgZWOBZr5poiK7Rl8ydFec=; X-YMail-OSG: VURjh2QVM1mzNu_zLn3MadCEFC5eKlF1G1udSxPdci_c4vo 0exfL9A9ij1GK6RsbNsl7SIJqIddc47Rm6r4obOzDAmo0ej5U.UKmfX4TJvU 3qw.9RGhiRKiU6ZC2UOEgYz.vY4JG_DrSVcbhLdBfBS91rHC2pkYr.GJlJrE M6sAuGZqUlKCrdnENO5yhJb2d1O7mvXf1gtnADSUrFzhiqVDivUOfITRSX.6 oXb4t4nOKEmvTVHIYQnZ9gXasg3AfUwJgr1wEtC3XzT7mBdGDHXjTYfuq97D C92mm4mcLHPyk0LqDnCYQPVisyxMrhsG4vnHv.UHXAN5UYyUWrIDam8EJBQq d8ifWBjrIKLSlOablL43lNhTMMCFfVj6NxxUbZA6XGEYB9wJ.Xt.EXKz1v_L Afwl4K.WEYjHruVZ2uFsb1iZmWs34CQ_esPHh8j4zMDLpZC1IAVOPHI3ERqn Ln2AlMiF0AwXd5zo4yVFZzd4EcR9w0SPK1UGXoMHYf5VPXuqGesHVj15fltp LWO43QI9HX.VkVJnPj78v_dfTvEQ5vNqIdwphE2fDkJ3QsaFqw_4LYt2mr__ BS4qc9OBCROev Received: from [98.203.44.66] by web120801.mail.ne1.yahoo.com via HTTP; Wed, 19 Sep 2012 17:42:28 PDT X-Mailer: YahooMailWebService/0.8.121.416 References: Message-ID: <1348101748.73587.YahooMailNeo@web120801.mail.ne1.yahoo.com> Date: Wed, 19 Sep 2012 17:42:28 -0700 (PDT) From: Bill Tillman To: FreeBSD Questions In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 Reply-To: Bill Tillman List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 00:45:22 -0000 =0A=0A----- Original Message -----=0AFrom: dweimer =0A= To: FreeBSD Questions =0ACc: =0ASent: Wednes= day, September 19, 2012 1:53 AM=0ASubject: Anyone Tried to use iPXE to boot= with iSCSI?=0A=0AI 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 m= y FreeNAS box.=0A=0AI 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, co= nnected to the target, created a gpt boot partition, swap partition and jus= t a single / volume using remianing space.=A0 Copied the bootcode, created = the file system, extracted the system etc.=A0 Created a loader.conf file, a= dded the iscsi_initiator_load=3D"YES" option, copied my /tmp/iscsi.conf fil= e to the new file system at /etc/iscsi.conf created a /etc/fstab file using= the gpart labels to mount / and swap partitions.=0A=0ABooted the system fr= om the iPXE.iso, ran the necessary configuration options, connected to the = iscsi volume, and booted from it.=A0 It does launch the bootcode, as expect= ed, and then breaks failing to mount root.=0A=0AWhoch 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.=0A=0AWhat= I can't seem to find any information on is how to mount iSCSI volumes at b= oot on FreeBSD, so that the kernel can mount the root partition.=A0 Does an= yone have any idea how to do this, or if its even possible?=0A=0A-- Thanks,= =0A=A0 Dean E. Weimer=0A=A0 http://www.dweimer.net/=0A___________________= ____________________________=0Afreebsd-questions@freebsd.org mailing list= =0Ahttp://lists.freebsd.org/mailman/listinfo/freebsd-questions=0ATo unsubsc= ribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"=0A=0A=0A= Interesting project you've got there. I can't say mine is similar but I do = have a machine which I'm using as a router which boots disklessly. Running = 8.3-STABLE amd64, in fact I just rebuilt the world on both the server which= serves this puppy it's OS and the /diskless partition where this puppy get= 's it's boot up from. Booting by pxe is not an easy thing to do. The docs a= re terrible and out of synch with the latest versions of the OS. I think th= ere may have been some improvments on that end but it's still kind of a sea= t of the pants operation. I had several contacts in #FreeBSD on FreeNode wh= o told me they had many diskless servers running yet when pressed for how t= hey did it the answers they gave were vague and ambiguous, that is if they = answered at all. I did finally find a site which explained most of it in an= almost clear manner, but even that site was filled with typos and out of d= ate information. The router I've built is great...no disks at all and until the reboot a few weeks ago it had been running 24/7 for 276 days= ...without one failure. We watch lots of NetFlix movies here, sometimes two= or three at a time with my teenage kids here with their laptops. And I can= still enjoy a quick download or two in my lab while all this bandwidth is = being served.