From owner-freebsd-hackers@FreeBSD.ORG Wed May 7 07:57:20 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7057222C for ; Wed, 7 May 2014 07:57:20 +0000 (UTC) Received: from mail-yh0-x230.google.com (mail-yh0-x230.google.com [IPv6:2607:f8b0:4002:c01::230]) (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 31A102E5 for ; Wed, 7 May 2014 07:57:20 +0000 (UTC) Received: by mail-yh0-f48.google.com with SMTP id v1so545337yhn.21 for ; Wed, 07 May 2014 00:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xEclw7ZAPNVDHgzmsj8lj2t1hPJDn1WIjIrJ57WyKk4=; b=g58T9wffMuPoB8UOSdmSv+Lmhy6oSRYLk5MMM8FBAFy9W10oDZVcxKP8PjUoErUGXo iLaTyTpF4W6KhmdZqVgZGQwGRK7yYz9VbMMLAY3iTGiOJtbyQFFExtBlD8CRDc/DeH4+ 05DxlFr2hU4wNuz+sLoe+ihQIkPQ32Jk44x0RG40oG7inePlwwvY/iDlYko5sGLSEbid JLtQPWjeI7r0YknhstJfzBs4x3i+pzBqsUVXpWuuG7Xs6ar0TJtJrinwhSO3BmyjogfS pTWA8QdUWFJJgA/77fp+i8feSGmIh1tROrcihYQFsVcWyUCyJ0t5uDHmUNEpAkcGz1i7 2hlA== MIME-Version: 1.0 X-Received: by 10.236.150.205 with SMTP id z53mr65967973yhj.75.1399449439381; Wed, 07 May 2014 00:57:19 -0700 (PDT) Received: by 10.170.202.139 with HTTP; Wed, 7 May 2014 00:57:19 -0700 (PDT) In-Reply-To: <61757A61-FE08-4D2E-9381-522ADCE1F17A@longcount.org> References: <61757A61-FE08-4D2E-9381-522ADCE1F17A@longcount.org> Date: Wed, 7 May 2014 09:57:19 +0200 Message-ID: Subject: Re: vm+ipxe+pxeboot fail From: amine tay To: Mark Saad Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: "freebsd-hackers@freebsd.org" 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 07:57:20 -0000 Thanks Mark for your reply, I have already tried to comment out the option "one-lease-per-client" and also 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 DHCP 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. Thanks. Amine. 2014-05-06 15:08 GMT+02:00 Mark Saad : > Sorry for the delay in my reply . > > On Apr 30, 2014, at 9:42 AM, amine tay wrote: > > Hi Mark thanks for your reply, > I have my root-path in dhcpd.conf and etc/exports. > my dhcpd.conf : > > authoritative; > subnet 10.28.236.0 netmask 255.255.255.0 { > > one-lease-per-client on; > > > Comment out the one lease-per-client option . > > range 10.28.236.10 10.28.236.250; > > default-lease-time 1200; > max-lease-time 43200; > dynamic-bootp-lease-length 1200; > > 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; > > allow duplicates; > allow unknown-clients; > allow booting; > allow bootp; > > > > Can you simplify this block to just serve the razor.ipxe image to any > request ? So remove the fixed address and the if statement . > > host freebsd {hardware ethernet 00:50:56:99:0b:c4; fixed-address > 10.28.236.14; option root-path > "/opt/razor/image/image/os/7I2RjjQvo7IkbqO4rLv6kJ";} > if exists user-class and option user-class = "iPXE" { > filename "razor.ipxe"; # we are in an iPXE kernel and load static script > } else { > filename "undionly.kpxe"; # we are in burned in PXE and load iPXE kernel > } > next-server 10.28.236.1; > } > > And the Freebsd pxeboot loader is launched by razor. > > > > I suspect the issue is the allow duplicate and one lease per client > options clashing with pxeloader . Is your goal here to pxe boot FreeBSD > then use puppet to do a custom layout of the install ? > > > > 2014-04-30 15:22 GMT+02:00 Mark Saad : > >> >> >> > 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. (Actually >> > I'm using a VMware virtual machine.) First I'm using iPXE 1.0.0 and then >> > load and launch the FreeBSD pxeboot >> > loader. But I'm getting this : >> > http://forums.freebsd.org/viewtopic.php?f=4&t=45901 >> > When using isc-dhcp as DHCP server I'm getting the error but when using >> > dnsmasq everything works fine. >> > >> > The problem seems that the client when booting is sending 2 DHCP >> requests >> > and therefore gets two different IP addresses, the first one sent by the >> > 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. >> >> It looked like you either do not have options rootpath set in dhcpd.conf >> , etc/exports is mis configured , the nfs server is disabled or if you have >> loader built with tftp support you do not have a tftp server setup / >> running . >> >> Can you sent the dhcpd.conf the exports file off the server ? >> >> Mark saad | mark.saad@longcount.org >> >> >> > _______________________________________________ >> > 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" >> > > > Mark saad | mark.saad@longcount.org >