Re: pxe booting problem

2001-10-31 Thread Henri Michelon

Le Mercredi 31 Octobre 2001 12:49, vous avez écrit :
> Henri,
>
> FYI - this is my dhcpd.conf.  I didn't have to enable
> a lot of the options you had in yours:
>
>

My dhcpd.conf is a 'pxe' generic config. I used it with FreBSD pxeboot, 
pxelinux, pxegrub, bpbatch and 3COM .pxe files.
Some PXE boot loaders need some options, others not, and this config works 
with all pxe clients I have tested.

Henri.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: pxe booting problem

2001-10-31 Thread Paul Jansen

Henri,

FYI - this is my dhcpd.conf.  I didn't have to enable
a lot of the options you had in yours:

"
# dhcpd.conf

# define new options
option nfs-swap code 128 = string;
option swap-size code 129 = integer 32;

# option definitions common to all supported
networks...
option domain-name "jansen.org";
option domain-name-servers 203.57.68.5, 203.57.68.5;

ddns-update-style ad-hoc;

default-lease-time 600;
max-lease-time 7200;

authoritative;

# Use this to send dhcp log messages to a different
log file (you also
# have to hack syslog.conf to complete the
redirection).
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
  range dynamic-bootp 192.168.0.13 192.168.0.20;
  use-host-decl-names on;
  option routers 192.168.0.8;
  option broadcast-address 192.168.0.255;
  if substring (option vendor-class-identifier,0,9) =
"PXEClient" {
filename "pxeboot"
  }
  option root-path "192.168.0.1:/diskless";
  option nfs-swap "192.168.0.1:/nfs-swap";
  option swap-size 10240;
}

host host12 {
   hardware ethernet 00:02:55:70:86:e8;
  fixed-address host12.jansen.org;
}
"

I found pxeboot in /boot on my 4.4r system and after
the  config file for ISC DHCPDv3 is in place and DHCPD
is started things work great.  I needed to make sure
the /tftpboot/boot/loader.rc existed and that I copied
my diskless kernel to /tftpboot/kernel.
Thanks for your suggestions.

Paul

 --- Henri Michelon <[EMAIL PROTECTED]>
wrote: > Le Mardi 30 Octobre 2001 14:30, vous avez
écrit :
> > I posted some of this info last friday but haven't
> had
> > any responses.  I'm hoping someone out there knows
> > what the problem is.  Here's the details:
> >
> > I saw Alfred Perlsteins page on how to setup
> > FreeBSD installs unsing PXE.
> > The problem I'm having now is when I follow
> Alfred's
> > directions to create the PXE loader (using 4.4R)
> It
> > bombs out.  It's my understanding the I just need
> to
> > stick 'pxeldr' into the root of the TFTP server
> > directory and tell the machine to execute this by
> > specifying it as the boot file in the DHCP
> > configuration.  I also understand that I have to
> > create a subdirectory called 'boot' under the TFTP
> > root directory with the file 'loader.rc' in it. 
> Can
> > someone verify if this is the case?
> > Alfred's instructions can be found here:
> > http://people.freebsd.org/~alfred/pxe/
> >
> > This is the console output that insues when I try
> and
> > build pxeldr as per Alfred's instructions:
> >
> 
> 
> You can find pxeboot (instead of pxeldr) if /boot.
> Just copy it into /tftpboot, and add the following
> in the dhcpd config file 
> (for isc-dhcp version 3):
> 
> option space PXE;
> option PXE.mtftp-ipcode 1 = ip-address;
> option PXE.mtftp-cport code 2 = unsigned integer 16;
> option PXE.mtftp-sport code 3 = unsigned integer 16;
> option PXE.mtftp-tmout code 4 = unsigned integer 8;
> option PXE.mtftp-delay code 5 = unsigned integer 8;
> 
> class "pxeclients" {
> match if substring (option
> vendor-class-identifier, 0, 9) = 
> "PXEClient";
> option vendor-class-identifier "PXEClient";
> option PXE.mtftp-ip 0.0.0.0;
> vendor-option-space PXE;
> next-server X.X.X.X;
> server-name "X.X.X.X";
> server-identifier X.X.X.X;
>  
> option root-path "/path/to/FreeBSD/CDROM";
>  
> filename "pxeboot";
> }
> 
> where X.X.X.X is the IP address of the tftp boot
> server.
> 
> Henri. 

http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: pxe booting problem

2001-10-31 Thread Paul Jansen

I looked in /boot on my 4.4R system and there was a
'pxeboot' file there.  I've since modded my ISCv3
DHCPD.conf file to serve this file out to machines
(after creating /tftpboot/boot/loader.rc) and it works
great. Next step will be to test getting this to work
using reservations from the MS DHCP server on our LAN
(pretty sure this will work) and people will be able
to boot diskless FreeBSD by pressing F12 at boot up.
Thanks fo your help John.

Paul

 --- John Baldwin <[EMAIL PROTECTED]> wrote: > 
> On 30-Oct-01 Paul Jansen wrote:
> > I posted some of this info last friday but haven't
> had
> > any responses.  I'm hoping someone out there knows
> > what the problem is.  Here's the details:
> > 
> > I saw Alfred Perlsteins page on how to setup
> > FreeBSD installs unsing PXE.  
> > The problem I'm having now is when I follow
> Alfred's
> > directions to create the PXE loader (using 4.4R)
> It
> > bombs out.  It's my understanding the I just need
> to
> > stick 'pxeldr' into the root of the TFTP server
> > directory and tell the machine to execute this by
> > specifying it as the boot file in the DHCP
> > configuration.  I also understand that I have to
> > create a subdirectory called 'boot' under the TFTP
> > root directory with the file 'loader.rc' in it. 
> Can
> > someone verify if this is the case?
> > Alfred's instructions can be found here:
> > http://people.freebsd.org/~alfred/pxe/
> > 
> > This is the console output that insues when I try
> and
> > build pxeldr as per Alfred's instructions:
> 
> You need pxeboot (not pxeldr, pxeldr is part of
> pxeboot).  Do you have the
> sources for libstand (src/lib/libstand) installed?
> 
> -- 
> 
> John Baldwin <[EMAIL PROTECTED]> --
> http://www.FreeBSD.org/~jhb/
> PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
> "Power Users Use the Power to Serve!"  - 
http://www.FreeBSD.org/ 

http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: pxe booting problem

2001-10-30 Thread Henri Michelon

Le Mardi 30 Octobre 2001 17:17, vous avez écrit :

> > configuration.  I also understand that I have to
> > create a subdirectory called 'boot' under the TFTP
> > root directory with the file 'loader.rc' in it.  Can
> > someone verify if this is the case?


Sorry. Forget this part. This is the content my /path/to/FreeBSD/CDROM :

- The entire content of the original CDROM
- A custom mfsroot with install.cfg
- A custom kernel with 'options MD_ROOT'
- A  directory called 'boot' with the following files (from /boot): boot1 
boot2 loader loader.rc


Henri

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: pxe booting problem

2001-10-30 Thread Alfred Perlstein

* Paul Jansen <[EMAIL PROTECTED]> [011030 08:31] wrote:
> I posted some of this info last friday but haven't had
> any responses.  I'm hoping someone out there knows
> what the problem is.  Here's the details:
> 
> I saw Alfred Perlsteins page on how to setup
> FreeBSD installs unsing PXE.  
> The problem I'm having now is when I follow Alfred's
> directions to create the PXE loader (using 4.4R) It
> bombs out.  It's my understanding the I just need to
> stick 'pxeldr' into the root of the TFTP server
> directory and tell the machine to execute this by
> specifying it as the boot file in the DHCP
> configuration.  I also understand that I have to
> create a subdirectory called 'boot' under the TFTP
> root directory with the file 'loader.rc' in it.  Can
> someone verify if this is the case?
> Alfred's instructions can be found here:
> http://people.freebsd.org/~alfred/pxe/
> 
> This is the console output that insues when I try and
> build pxeldr as per Alfred's instructions:

[snip]

I'm not seeing this problem when I build from a full copy of
the source tree.  Perhaps you only have a subset?

I also moved my obdir out of the way (mv /usr/obj /usr/obj.tmp)
and did a "make clean" before "make".

good luck,
-Alfred

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: pxe booting problem

2001-10-30 Thread Henri Michelon

Le Mardi 30 Octobre 2001 14:30, vous avez écrit :
> I posted some of this info last friday but haven't had
> any responses.  I'm hoping someone out there knows
> what the problem is.  Here's the details:
>
> I saw Alfred Perlsteins page on how to setup
> FreeBSD installs unsing PXE.
> The problem I'm having now is when I follow Alfred's
> directions to create the PXE loader (using 4.4R) It
> bombs out.  It's my understanding the I just need to
> stick 'pxeldr' into the root of the TFTP server
> directory and tell the machine to execute this by
> specifying it as the boot file in the DHCP
> configuration.  I also understand that I have to
> create a subdirectory called 'boot' under the TFTP
> root directory with the file 'loader.rc' in it.  Can
> someone verify if this is the case?
> Alfred's instructions can be found here:
> http://people.freebsd.org/~alfred/pxe/
>
> This is the console output that insues when I try and
> build pxeldr as per Alfred's instructions:
>


You can find pxeboot (instead of pxeldr) if /boot.
Just copy it into /tftpboot, and add the following in the dhcpd config file 
(for isc-dhcp version 3):

option space PXE;
option PXE.mtftp-ipcode 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;

class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = 
"PXEClient";
option vendor-class-identifier "PXEClient";
option PXE.mtftp-ip 0.0.0.0;
vendor-option-space PXE;
next-server X.X.X.X;
server-name "X.X.X.X";
server-identifier X.X.X.X;
 
option root-path "/path/to/FreeBSD/CDROM";
 
filename "pxeboot";
}

where X.X.X.X is the IP address of the tftp boot server.

Henri.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: pxe booting problem

2001-10-30 Thread John Baldwin


On 30-Oct-01 Paul Jansen wrote:
> I posted some of this info last friday but haven't had
> any responses.  I'm hoping someone out there knows
> what the problem is.  Here's the details:
> 
> I saw Alfred Perlsteins page on how to setup
> FreeBSD installs unsing PXE.  
> The problem I'm having now is when I follow Alfred's
> directions to create the PXE loader (using 4.4R) It
> bombs out.  It's my understanding the I just need to
> stick 'pxeldr' into the root of the TFTP server
> directory and tell the machine to execute this by
> specifying it as the boot file in the DHCP
> configuration.  I also understand that I have to
> create a subdirectory called 'boot' under the TFTP
> root directory with the file 'loader.rc' in it.  Can
> someone verify if this is the case?
> Alfred's instructions can be found here:
> http://people.freebsd.org/~alfred/pxe/
> 
> This is the console output that insues when I try and
> build pxeldr as per Alfred's instructions:

You need pxeboot (not pxeldr, pxeldr is part of pxeboot).  Do you have the
sources for libstand (src/lib/libstand) installed?

-- 

John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message