Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 2014 09:08:17 -0400
From:      Mark Saad <nonesuch@longcount.org>
To:        amine tay <amine.tay91@gmail.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: vm+ipxe+pxeboot fail
Message-ID:  <61757A61-FE08-4D2E-9381-522ADCE1F17A@longcount.org>
In-Reply-To: <CAMMGsZKssXSjKd5Fo34rLMs5OwVO8JDkMyROv2UFmDkyy1qwAA@mail.gmail.com>
References:  <CAMMGsZKLkXPJAyuoiNoRo3DQEOgzMps-D7-iTThz8ARPyjZXTg@mail.gmail.com> <FCF01B13-EAB3-4DF8-A9BE-B4A1A0703EE5@longcount.org> <CAMMGsZKssXSjKd5Fo34rLMs5OwVO8JDkMyROv2UFmDkyy1qwAA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry for the delay in my reply .

> On Apr 30, 2014, at 9:42 AM, amine tay <amine.tay91@gmail.com> 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

Comment out the one lease-per-client option .
>   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;


Can you simplify this block to just serve the razor.ipxe image to any reques=
t ? So remove the fixed address and the if statement .=20

> 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 =3D "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;
> }
>=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 options c=
lashing with pxeloader  .  Is your goal here to pxe boot FreeBSD then use pu=
ppet to do a custom layout of the install ?=20
>=20
>=20
> 2014-04-30 15:22 GMT+02:00 Mark Saad <nonesuch@longcount.org>:
>>=20
>>=20
>> > On Apr 30, 2014, at 4:10 AM, amine tay <amine.tay91@gmail.com> wrote:
>> >
>> > Hi everyone,
>> >
>> > Lately I had some problems, trying to get FreeBSD to PXE boot. (Actuall=
y
>> > I'm using a VMware virtual machine.) First I'm using iPXE 1.0.0 and the=
n
>> > load and launch the FreeBSD pxeboot
>> > <http://man.freebsd.org/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 using=

>> > dnsmasq everything works fine.
>> >
>> > The problem seems that the client when booting is sending 2 DHCP reques=
ts
>> > and therefore gets two different IP addresses, the first one sent by th=
e
>> > ROM and the second one by the FreeBSD
>> > pxeboot<http://man.freebsd.org/pxeboot>loader.
>> >
>> > 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.conf ,=
 etc/exports is mis configured , the nfs server is disabled or if you have l=
oader built with tftp support you do not have a tftp server setup / running .=

>>=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.o=
rg"
>=20

Mark saad | mark.saad@longcount.org=20=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61757A61-FE08-4D2E-9381-522ADCE1F17A>