From owner-freebsd-hackers@FreeBSD.ORG Wed May 7 12:53:41 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6205F3B for ; Wed, 7 May 2014 12:53:41 +0000 (UTC) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A0C538A for ; Wed, 7 May 2014 12:53:41 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id h3so1019992igd.8 for ; Wed, 07 May 2014 05:53:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:content-type:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=M8jXpvhUwmgb8PwCoWQV0QXd98pqWdy3vFNQdIV9fEE=; b=H/OUGgMxR/oQn0gLi9geSDUaWUdK+RLKz4B3irLRzriWqaMSGiUsIh1S7aK/2pl0Qa YyCVzjO5kKrUbAHcTAu4hAVtucaVu8hC0a1VMyxqyIA5bzYMZBSRy/ThDyYvNwG3SugS nVPOP7fcc+uev3uvHXoTxwtBYNFqg+M/9DAfla8J6oAhG36XmfKWuYyYhYeK9cZt8Jb6 yaAX/o2sxB0XHO6K6fhSu9FDh4LIFR8dtNPx5295Fgi/aLSdk+IZI0zuYK5P5bvqjuL/ L245rC4u3u51DpSY7Ir1ld2lRiTMrZ9LflMyBn7w/KI+l1bRT2ppL7NQDuxfwnTx+DdQ xn/w== X-Gm-Message-State: ALoCoQnFNbzw15x7LuIgawh2bYxkVhZqpnxD0wR6m2HOPeJ380e2MsUquKW6nyxDQWdeT24+Zye4 X-Received: by 10.50.61.235 with SMTP id t11mr42124771igr.44.1399467219905; Wed, 07 May 2014 05:53:39 -0700 (PDT) Received: from [97.10.146.99] (99.sub-97-10-146.myvzw.com. [97.10.146.99]) by mx.google.com with ESMTPSA id jf5sm4194867igb.19.2014.05.07.05.53.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 05:53:38 -0700 (PDT) Subject: Re: vm+ipxe+pxeboot fail References: <61757A61-FE08-4D2E-9381-522ADCE1F17A@longcount.org> From: Mark Saad X-Mailer: iPhone Mail (11D201) In-Reply-To: Message-Id: Date: Wed, 7 May 2014 08:53:02 -0400 To: "freebsd-hackers@freebsd.org" Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2014 12:53:41 -0000 > On May 7, 2014, at 3:57 AM, amine tay wrote: >=20 > Thanks Mark for your reply,=20 > I have already tried to comment out the option "one-lease-per-client" and a= lso simplified the if statement but no changes. I guess the probleme as Doug= said the iPXE is sending a client ID and the pxeboot isn't. So then ISC DH= CP server doesn't like > that and gives a different IP. So i guess the solution is to patch bootp.c= for the pxeboot. (I will let you know if it works ) > And you're right I'm trying to pxeboot FreeBSD and use puppet to customize= the machine. >=20 Help me better understand why one would want to do this, over pxe booting to= a nfs rooted FreeBSD environment and running puppet ? I guess I just don't= see the big picture here . > Thanks. > Amine. > =20 >=20 >=20 > 2014-05-06 15:08 GMT+02:00 Mark Saad : >> Sorry for the delay in my reply . >>=20 >>> On Apr 30, 2014, at 9:42 AM, amine tay wrote: >>>=20 >>> Hi Mark thanks for your reply, >>> I have my root-path in dhcpd.conf and etc/exports. >>> my dhcpd.conf :=20 >>>=20 >>> authoritative; >>> subnet 10.28.236.0 netmask 255.255.255.0 { >>>=20 >>> one-lease-per-client on;=20 >>=20 >> Comment out the one lease-per-client option . >>=20 >>> range 10.28.236.10 10.28.236.250; >>>=20 >>> default-lease-time 1200; >>> max-lease-time 43200; >>> dynamic-bootp-lease-length 1200; >>>=20 >>> option ntp-servers 10.28.236.1; >>> option broadcast-address 10.28.236.255; >>> option subnet-mask 255.255.255.0; >>> option domain-name "xxxxxxxxxxxxx"; >>> option domain-search "xxxxxxxxxxxxxxxxxxxxx"; >>> option domain-name-servers 10.28.236.1; >>>=20 >>> allow duplicates; >>> allow unknown-clients; >>> allow booting; >>> allow bootp; >>=20 >>=20 >> Can you simplify this block to just serve the razor.ipxe image to any req= uest ? So remove the fixed address and the if statement .=20 >>=20 >>> host freebsd {hardware ethernet 00:50:56:99:0b:c4; fixed-address 10.28.2= 36.14; option root-path "/opt/razor/image/image/os/7I2RjjQvo7IkbqO4rLv6kJ";}= >>> if exists user-class and option user-class =3D "iPXE" { >>> filename "razor.ipxe"; # we are in an iPXE kernel and load static scri= pt >>> } else { >>> filename "undionly.kpxe"; # we are in burned in PXE and load iPXE kern= el >>> } >>> next-server 10.28.236.1; >>> } >>>=20 >>> And the Freebsd pxeboot loader is launched by razor. >>=20 >>=20 >> I suspect the issue is the allow duplicate and one lease per client optio= ns clashing with pxeloader . Is your goal here to pxe boot FreeBSD then us= e puppet to do a custom layout of the install ?=20 >>>=20 >>>=20 >>> 2014-04-30 15:22 GMT+02:00 Mark Saad : >>>>=20 >>>>=20 >>>> > On Apr 30, 2014, at 4:10 AM, amine tay wrote:= >>>> > >>>> > Hi everyone, >>>> > >>>> > Lately I had some problems, trying to get FreeBSD to PXE boot. (Actua= lly >>>> > I'm using a VMware virtual machine.) First I'm using iPXE 1.0.0 and t= hen >>>> > load and launch the FreeBSD pxeboot >>>> > loader. But I'm getting this : >>>> > http://forums.freebsd.org/viewtopic.php?f=3D4&t=3D45901 >>>> > When using isc-dhcp as DHCP server I'm getting the error but when usi= ng >>>> > dnsmasq everything works fine. >>>> > >>>> > The problem seems that the client when booting is sending 2 DHCP requ= ests >>>> > and therefore gets two different IP addresses, the first one sent by t= he >>>> > ROM and the second one by the FreeBSD >>>> > pxebootloader. >>>> > >>>> > I found somewhere in some posts that the pxe.c file is doing a second= >>>> > bootprequest because it fails to get cached DHCP data from the ROM. >>>> > >>>> > Any help or more ideas would be appreciated. >>>>=20 >>>> It looked like you either do not have options rootpath set in dhcpd.con= f , etc/exports is mis configured , the nfs server is disabled or if you hav= e loader built with tftp support you do not have a tftp server setup / runni= ng . >>>>=20 >>>> Can you sent the dhcpd.conf the exports file off the server ? >>>>=20 >>>> Mark saad | mark.saad@longcount.org >>>>=20 >>>>=20 >>>> > _______________________________________________ >>>> > freebsd-hackers@freebsd.org mailing list >>>> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>>> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd= .org" >>=20 >> Mark saad | mark.saad@longcount.org=20 >=20 Mark saad | mark.saad@longcount.org=20=