From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 11:22:23 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 BFB15106564A for ; Wed, 25 Apr 2012 11:22:23 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 834788FC0C for ; Wed, 25 Apr 2012 11:22:23 +0000 (UTC) Received: by obhx4 with SMTP id x4so332699obh.13 for ; Wed, 25 Apr 2012 04:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=5q+JIJJi7g78MH3GxD7p7wf52hF/AsFPm7heXsCnddE=; b=Ltdy6n+OThWnptQuMtem1mp/h4COuF/HUTL56rfZDB1dZVS915XwTr+C60A1vHMQXs HUGAVGelTbg96fomRFMXvKtrntDLNY+S1eodwVQLyCCpCyoVFgcteW/y1FCzGU21dUWe reRS6uctpR/PQe2kAv2ikHlWdR5sOLkO4RgGSO+tXoVzZwi3naFQK33swmQVqhhnhhgZ thcS6PzQWHTwg9fyvSch+OfMmNv/1tNtT5d3B93oGdgiTH2a2F1B7TKCSE9Nlrsg8ZbU QUtBsdic7KF+8UhrhxPUHJAtcVbiNBlnhU1QmOP7daDjytH2A1KgAZgfmBIDuUlnjQ6x vCNw== MIME-Version: 1.0 Received: by 10.182.169.67 with SMTP id ac3mr2669690obc.4.1335352942203; Wed, 25 Apr 2012 04:22:22 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.182.187.102 with HTTP; Wed, 25 Apr 2012 04:22:21 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Apr 2012 07:22:21 -0400 X-Google-Sender-Auth: gkz34cK-PxtXLaeS06gWYaefqr8 Message-ID: From: Rick Miller To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: pxegrub + FreeBSD install 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: Wed, 25 Apr 2012 11:22:23 -0000 I was able to figure out how to pass the variables to the FreeBSD mfsroot. I did so by modifying the grub.cfg file like the below: menuentry "freebsd82-x86_64" { kfreebsd /boot/kernel/kernel kfreebsd_loadenv /boot/device.hints kfreebsd_module /boot/mfsroot.gz type=3Dmfs_root set kFreeBSD.vfs.root.mountfrom=3Dufs:/dev/md0c set kFreeBSD.boot.nfsroot.server=3D$pxe_default_server set kFreeBSD.boot.netif.hwaddr=3D$net_pxe_mac set kFreeBSD.boot.netif.ip=3D$net_pxe_ip set kFreeBSD.dhcp.host-name=3D$net_pxe_hostname } On Tue, Apr 24, 2012 at 2:10 PM, Rick Miller wro= te: > Hi All, > > I am attempting to build FreeBSD 8.x-RELEASE over the network via PXE. > =A0I chain pxegrub to pxelinux and load the FreeBSD kernel and mfsroot > through pxegrub with the following: > > menuentry "freebsd-x86_64" { > =A0 kfreebsd /boot/kernel/kernel > =A0 kfreebsd_loadenv /boot/device.hints > =A0 kfreebsd_module /boot/mfsroot.gz type=3Dmfs_root > =A0 set kFreeBSD.vfs.root.mountfrom=3Dufs:/dev/md0c > } > > The mfsroot.gz is from the installation DVD with a couple of scripts > and an install.cfg which result in a non-interactive install. =A0I set > variables necessary to allow sysinstall to retrieve the expected > files. =A0The variables (previously) are populated as follows: > > server=3D`kenv -q boot.nfsroot.server` > mac=3D`kenv -q boot.netif.hwaddr` > ip=3D`kenv -q boot.netif.ip` > nm=3D`kenv -q boot.netif.netmask` > gw=3D`kenv -q boot.netif.gateway` > name=3D`kenv -q dhcp.host-name` > route=3D`kenv -q dhcp.routers` > > > The mfsroot.gz does not see these as set when the environment loads > through pxegrub. =A0If I load the environment through pxeboot.bs, the > variables populate ok. =A0Unfortunately, with pxeboot.bs I experience > extremely high tftp failure rates when compared to pxegrub. > > My question is how should I populate these variables in the mfsroot.gz > when loading via pxegrub? > > > -- > Take care > Rick Miller --=20 Take care Rick Miller