From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 12:15:39 2008 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 040FC16A421 for ; Fri, 8 Feb 2008 12:15:39 +0000 (UTC) (envelope-from rekjed@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 71A4013C4D9 for ; Fri, 8 Feb 2008 12:15:37 +0000 (UTC) (envelope-from rekjed@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so3074682fgg.35 for ; Fri, 08 Feb 2008 04:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=8NPqC+Nt/q8VTADmYB4RDpRySL/7wEUJhKH9Y7HzO8E=; b=cWOgwnx3Em0Fq5qFLV0tK6wc8Gxalkvj4CNpj3UOxwdRSff839hdggp3gYNZSzIk4Qn4zE8QBK2qAWq1B2V9UAt2FBL73W0NWjsRx52pwpP2DMK6GEPhQ1vvOtqFxGWceM5cM2IY1qu0kHJvkzpl6+qXPFCa7wHr1+iGB+zgsyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=uRAui+lAdER3/kr1Dxrd+SId6bWmoPzMAUs2B3r5yVyjYQVfmjzR+yLUDt91Iq+wWjkGnrUdd3zY7I7eXMLrFMlpTULJxjcrcUkEEQj6bsd0B6+M8I2kkjj1x0lJAuoMN4DqsUzcSXUd9jvFOJkVVFfeHXjxdUTX3TrzFHxcxUI= Received: by 10.86.97.7 with SMTP id u7mr11608745fgb.65.1202472936759; Fri, 08 Feb 2008 04:15:36 -0800 (PST) Received: from mig.darq.net ( [78.86.112.102]) by mx.google.com with ESMTPS id e20sm7146181fga.1.2008.02.08.04.15.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 Feb 2008 04:15:35 -0800 (PST) Message-ID: <47AC47D6.3020500@gmail.com> Date: Fri, 08 Feb 2008 12:15:18 +0000 From: Rek Jed User-Agent: Thunderbird 2.0.0.9 (X11/20071231) MIME-Version: 1.0 To: Erik Norgaard References: <47AB4F00.1080307@gmail.com> <47AB7DBF.8030302@locolomo.org> <47AB9542.70406@gmail.com> <47AC1A5B.2010101@locolomo.org> In-Reply-To: <47AC1A5B.2010101@locolomo.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout 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: Fri, 08 Feb 2008 12:15:39 -0000 Erik Norgaard wrote: > OK, two things remain: Are you sure that it doesn't correctly fetch > the kernel with tftp and then the kernel tries to mount a root device > with nfs? When I build the pxeloader with LOADER_TFTP_SUPPORT=YES it will fetch the kernel from tftp just fine, but after the NFS gracefully times out. It will also fetch & mount the root device from tftp ok. It's just a bit annoying that I have to wait 2 extra minutes every time I need to install a box (I do this quite often), and look for workarounds for something that should "just work". But then, I'm a sysadmin not a developer so it might be easy for me to say. I cannot actually fix it myself. > If the kernel is compiled with the slightest mention of nfs as root > device it will use nfs, no matter that you have specified otherwise in > loader.conf. The generic kernel has NFS_ROOT and NFS_CLIENT, since > your root device is not NFS then you can leave out both. I recall > having problems leaving in NFS_CLIENT although NFS_ROOT was not included. I don't bother compiling a kernel for this at the moment. I just copied the contents of /boot from a FreeBSD CD to the root of my tftp server. Then I copied the custom build loader files so that I can boot from tftp instead of nfs: boot0 boot1 boot2 loader.conf loader.rc mbr pxeboot Then I mount the stock mfsroot and copy my install.cfg over to script sysinstall. I've actually got a script that I can use to easily update install.cfg when needed. The idea behind all this is to keep it as simple to setup as possible so that me and my fellow network engineers at work can use this on their laptops without spending too much time on setting it up. This way if we need to install/re-install a box on a clients site we just rock up, run a few commands or a script to set the laptop in jumpstart mode (once the main thing has been setup it's just a matter of reconfiguring an interface and starting a few services), plug it in to the box, netboot and while the box is reinstalling we can have a chat with the client, see how things are going, look good and provide a better service. This also means that we always start with a machine that is in a know state. It's something that is almost impossible to achieve when installing by hand as everyone seems to do it differently. I'm happy to share my docs once I've ironed it all out and tested properly. Cheers, Jedrek