From owner-freebsd-questions@FreeBSD.ORG Tue Apr 24 18:10:58 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 08D521065674 for ; Tue, 24 Apr 2012 18:10:58 +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 C59398FC19 for ; Tue, 24 Apr 2012 18:10:57 +0000 (UTC) Received: by obbuo13 with SMTP id uo13so1657866obb.13 for ; Tue, 24 Apr 2012 11:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=7mA6EHf3Pg9ozt3VY3NQHLJ98eF03C3ssh/ty/fdqiE=; b=i5wX3jt8FtfmRwkHJit0OjcU/ELsBG1nb5311jtUXVyoFZZAdEx2BQP9g8nBtZXV3+ v0vVc6Cmuo/lyS+Iu48NTK4L4FdP8pY5i6O3QLwf0s60zzJMXnoUmAxw9JEZUnVPZ+IK tsYZDdYakthC5cfxnrTYlV/pTx0rixfV8fT/1ivx0EwUijErPb/Sdjc//PYLUPUmaFY6 Z01mvq5pau5dlKNzXg3d+rwz8kovLs7+7TTQQuBkpnC+CYAezkO53kulgp4zrb5zqtpM asfkzMBjUqcLm5+meRVa+xNehC+Q9M2Zlkt3BSLGQO9ZFLq0BWW63OiF3Q2irh1vVsj9 5RHg== MIME-Version: 1.0 Received: by 10.182.182.40 with SMTP id eb8mr5738715obc.34.1335291057305; Tue, 24 Apr 2012 11:10:57 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.182.187.102 with HTTP; Tue, 24 Apr 2012 11:10:57 -0700 (PDT) Date: Tue, 24 Apr 2012 14:10:57 -0400 X-Google-Sender-Auth: aWIDIeZ0iIxqha35GIkgmZjQ9MM Message-ID: From: Rick Miller To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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: Tue, 24 Apr 2012 18:10:58 -0000 Hi All, I am attempting to build FreeBSD 8.x-RELEASE over the network via PXE. I chain pxegrub to pxelinux and load the FreeBSD kernel and mfsroot through pxegrub with the following: menuentry "freebsd-x86_64" { kfreebsd /boot/kernel/kernel kfreebsd_loadenv /boot/device.hints kfreebsd_module /boot/mfsroot.gz type=mfs_root set kFreeBSD.vfs.root.mountfrom=ufs:/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. I set variables necessary to allow sysinstall to retrieve the expected files. The variables (previously) are populated as follows: server=`kenv -q boot.nfsroot.server` mac=`kenv -q boot.netif.hwaddr` ip=`kenv -q boot.netif.ip` nm=`kenv -q boot.netif.netmask` gw=`kenv -q boot.netif.gateway` name=`kenv -q dhcp.host-name` route=`kenv -q dhcp.routers` The mfsroot.gz does not see these as set when the environment loads through pxegrub. If I load the environment through pxeboot.bs, the variables populate ok. Unfortunately, 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