From owner-freebsd-questions@FreeBSD.ORG Mon Oct 29 21:57:04 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 39576173 for ; Mon, 29 Oct 2012 21:57:04 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id A2EFB8FC15 for ; Mon, 29 Oct 2012 21:57:03 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id e12so5258512lag.13 for ; Mon, 29 Oct 2012 14:57:02 -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:cc:content-type; bh=UECBQ9Uv/7+jUpXxRrkrOz3/IgULVZqW0i/1RK0cjac=; b=Wg19SisB7S77mr8NL6+JDQKroM3DWXb5A6uDlzDF1+g2+4vlCFhqN+XZXILjDNHMY5 RkLBjPr0sfCu1MZLqSKjDnKxfDXsEIQzi4p8wu4iIdEMl6Ey9aAisvDUbMrb/KmE8LW0 l4x1l/ygqQrLpV8dI1tUVxHjHvna11WuVuW0/EImDtT2AJpV6taoiTeepsZZCApTZqPG z1ecTlFMJ1xtZwqc1ck7nKBtqlvLClnpmuYvuZYQZlfMhsXe9Qw+d/eCFS+m6ERepEyB OAbBVFIWIPmC4v2Hepw5Dmg1GfZ/wB+8jtlAPbGRbzMhrEYgmuQWUPJqdTW3vLFv3UjK HXCQ== MIME-Version: 1.0 Received: by 10.112.26.131 with SMTP id l3mr6016984lbg.26.1351547822156; Mon, 29 Oct 2012 14:57:02 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.112.4.97 with HTTP; Mon, 29 Oct 2012 14:57:02 -0700 (PDT) In-Reply-To: <20121029205524.GA8467@vagner-wrk.bsdway.ru> References: <20121029205524.GA8467@vagner-wrk.bsdway.ru> Date: Mon, 29 Oct 2012 17:57:02 -0400 X-Google-Sender-Auth: SRbPbT41uQBiAX6Z1LRbU5Dp4oI Message-ID: Subject: Re: PXE tftp - double boot From: Rick Miller To: Vagner Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 21:57:04 -0000 On Mon, Oct 29, 2012 at 4:57 PM, Vagner wrote: > Hello! > Tell me please, how can i boot from tftp server (throught pxe) several > copies FreeBSD from different path (For example: /pxeroot/freebsd1 and > /pxeroot/freebsd2)? > I see variale rootpath at source sys/boot/i386/libi386/pxe.c. I > compiled several pxeboot files (there i changed variable rootpath from "/" to "/pxeroot/freebsd[1-2]"), and i booted this files throught pxelinux. > Booting stoped at boot kernel. This blog post may help you...http://blog.hostileadmin.com/2012/05/04/pxe-booting-into-a-freebsd-installation/ In the grub2pxe Configuration section, you can see that the kernel and "initrd" (or mfsroot) images are variable-ized (if that's a word). Perhaps you could use a similar approach to accomplish the same. Obviously, in that post, Grub2pxe replaced FreeBSD's pxeboot.bs and was chained to pxelinux. -- Take care Rick Miller