From owner-freebsd-questions@FreeBSD.ORG Thu Jun 18 19:49:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA4EC106564A for ; Thu, 18 Jun 2009 19:49:10 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 619038FC16 for ; Thu, 18 Jun 2009 19:49:10 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so677083qwe.7 for ; Thu, 18 Jun 2009 12:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LtEsYGospPkDpVjwq7t51ihuMxO4tkTxgCRzaT7oUT8=; b=cbLJ+E9Qzx5685xzOfG84JiMx9i69tsJY80kWXtZXJIqbIqyDXm3mYIvoGWs6rLsik EcC5yccFZT9qJce2LHByio4//xnPHZV1MSmF69ewlMgiU/bVY12yGAHBIuiLdEXygTKu ogDMwRGOSZlGhG/uyuq7iv8TBEdxS5wCQs1YI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=bMaXfSBSj8SJb64YR/UMtBNaYi5CNNM/Kk024U8OE94NyR/Jnq+/47EFARMlndSrZU Nm1YItcZYySwsI0quwy6ij6rioxbMS/VlRAScLMC73otVAtnwjZ7GZNHRY9CsY+An3Kz dfJmk4bTax4HygJShff/5BiE9zZFHonkF1C5M= MIME-Version: 1.0 Received: by 10.220.77.75 with SMTP id f11mr2085918vck.85.1245354549514; Thu, 18 Jun 2009 12:49:09 -0700 (PDT) In-Reply-To: <4A3A951D.4030400@baywinds.org> References: <4A3A88B9.9040704@baywinds.org> <4A3A951D.4030400@baywinds.org> Date: Thu, 18 Jun 2009 13:49:09 -0600 Message-ID: From: Tim Judd To: Bruce Ferrell Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: PXEBOOT based upgrade/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: Thu, 18 Jun 2009 19:49:10 -0000 As a very brief instruction to setup a single-PC diskless boot (because of the pid files, mostly. But files in /etc are also the same concern) do the following on your NFS exported filesystems.. cd /path/to/installation/medium cd 7.2-RELEASE/kernels cat generic.?? | tar --unlink -xpzf - -C /path/to/exported/mountpoint cd ../base cat base.?? | tar --unlink -xpzf - -C /path/to/exported/mountpoint Add some NFS server functionality (file locking [for editing /etc/passwd], mostly) by adding to the server's rc.conf and starting the services: rpc_statd_enable="YES" rpc_lockd_enable="YES" Create the client's files: /etc/fstab /etc/rc.conf The client ALSO needs statd and lockd in order for file locking to work... don't forget to add it. And create optionally the serial console ability as outlined in the handbook. My ALIX (aka new PC Engines' WRAP boards) routers both have this diskless setup. If you're running it off Compact Flash, keep in mind the limited write cycles. I have them both running off Microdrives now (1" hard disks at 3600RPM) If anyone gets stuck, as I'm writing this from memory while I'm at work, let me know. I'll double check my config at home and update it if I need to. This does not add the manpages, the source files, ports, or anything. It's the same as sysinstall's "minimal" config. This will boot to a Multi-User Interface (MUI) and you can run sysinstall after logging in with root with no password. On 6/18/09, Bruce Ferrell wrote: > > > Tim Judd wrote: >> If you're going to setup a netbooting server (congrats!), why are you >> trying to limit yourself to what seems to be the bootonly CD? > > Uh... 'cause I don't know any better? :) Point me to docs so I can do > better! > >> There are some people who complain about broadcom cards, in the fact >> that they're buggy support/nonexistant support. Maybe your NIC >> chipset is one of those. > > I don't know about that. This is in a Dell Power Edge 850 running > FreeBSD 5.4. > >> The loader.rc is told to mount a memory filesystem from ufs formatted >> disk located at /dev/md0c (a memory disk that is populated from the >> previous line, a file-based filesystem). > > So, I need to get rid of the set line? > > before I added that (done by rote from googeling) I was getting a panic > about no init. > >> So your system wouldn't be able to hit sysinstall or the /etc files >> (as I'm seeing the boot process) to do the install or configuration. >> >> >> >> >> Overall, what's to stop you from doing a diskless boot? the handbook >> makes it for a multi-PC setup, but for a single setup, it's quite >> easy. > > I need the stuff on the local disk as it runs an application that needs > local postgres and other stuff. Yes, I could put it elsewhere, but it > would mean flying 5 hours to do it. Rather just do an upgrade. > >> >> On 6/18/09, Bruce Ferrell wrote: >>> Hi all! >>> >>> I'm new in these parts, but not new to *nix. I'm trying to upgrade a >>> system with FreeBSD 5.4 to 7.2. >>> >>> I've gotten the pxeboot to work, but somehow the network interface isn't >>> seen by the installer. >>> >>> loader.rc: >>> =========== >>> include /boot/loader.4th >>> include /boot/beastie.4th >>> >>> \ Reads and processes loader.conf variables >>> start >>> >>> load /boot/kernel/kernel >>> load -t mfs_root /boot/mfsroot >>> set vfs.root.mountfrom="ufs:/dev/md0c" >>> boot >>> >>> loader.conf: >>> ============ >>> mfsroot_load="YES" >>> mfsroot_type="mfs_root" >>> mfsroot_name="/boot/mfsroot" >>> if_bge_load="yes" >>> >>> I added the if_bge line at that seems to be the module used on 5.4. >>> >>> Any other leads? >>> >>> Thanks in advance >>> >>> Bruce >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> "freebsd-questions-unsubscribe@freebsd.org" >>> >> >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >