diff options
Diffstat (limited to 'sys/arch/i386/stand/pxeboot/pxeboot.8')
-rw-r--r-- | sys/arch/i386/stand/pxeboot/pxeboot.8 | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/sys/arch/i386/stand/pxeboot/pxeboot.8 b/sys/arch/i386/stand/pxeboot/pxeboot.8 new file mode 100644 index 00000000000..9afa8c9a5ad --- /dev/null +++ b/sys/arch/i386/stand/pxeboot/pxeboot.8 @@ -0,0 +1,165 @@ +.\" $OpenBSD: pxeboot.8,v 1.1 2004/03/19 13:48:19 tom Exp $ +.\" Copyright (c) 2004 Tom Cosgrove +.\" Copyright (c) 2003 Matthias Drochner +.\" Copyright (c) 1999 Doug White +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.Dd March 18, 2004 +.Dt PXEBOOT 8 i386 +.Os +.Sh NAME +.Nm pxeboot +.Nd +i386-specific second-stage PXE bootstrap +.Sh DESCRIPTION +.Nm +is a modified version of the i386 second-stage bootstrap program, +.Xr boot 8 , +configured to run under Intel's Preboot Execution Environment (PXE). +PXE is a form of smart boot ROM, built into many Ethernet cards from Intel, +3Com, and other manufacturers. +.Pp +The computer's PXE boot ROM contacts a DHCP server by broadcasting a request. +It gets an IP address from the DHCP server, +then it is told the name of the boot program to download \(em +in this case, the boot program is +.Nm . +The ROM downloads the boot program using TFTP, then executes it. +.Pp +The +.Nm +boot program will look for an +.Pa etc/boot.conf +configuration +file on the TFTP server. +If it finds one, it processes the commands within it. +.Pp +.Nm +then sits in a loop, +processing commands given by the user. +It accepts all the commands accepted by +.Xr boot 8 . +.Pp +If no commands are given after a short period, +.Nm +will then attempt to load the OpenBSD kernel +.Pa bsd +via TFTP. +It may be told to boot an alternative kernel, +either by commands in the +.Pa boot.conf +file, +or by commands typed by the user at the +.Ic boot> +prompt. +At this time, +it is expected that pxeboot will be used to load the +.Pa bsd.rd +install kernel, +for network installs, +although this is not the default kernel. +.Pp +To configure a server to support network installs, +you must first enable and configure the +.Xr dhcpd 8 +and +.Xr tftpd 8 +services. +You may also want to enable +.Xr ftpd 8 +or +.Xr httpd 8 +to serve the install sets. +.Pp +Put +.Nm +and the kernel into the TFTP server's root directory. +Create an +.Pa etc/boot.conf +file if required. +.Pp +A sample configuration file for +.Xr dhcpd 8 +might be as follows: +.Bd -literal -offset indent +option domain-name "example.com"; +option routers 10.0.0.1; +option subnet-mask 255.255.255.0; +option broadcast-address 10.0.0.255; +option domain-name-servers 10.0.0.1; +server-name "DHCPserver"; +server-identifier 10.0.0.1; + +default-lease-time 120; +max-lease-time 120; + +subnet 10.0.0.0 netmask 255.255.255.0 { + filename "pxeboot"; + range 10.0.0.10 10.0.0.254; +} +.Ed +.Pp +If you are using a more recent version of the ISC DHCP server, +you can specify the boot program with a construct such as: +.Bd -literal -offset indent +class "pxe-clients-i386" { + match if substring(option vendor-class-identifier, 0, 20) + = "PXEClient:Arch:00000"; + filename "pxeboot"; +} +.Ed +.Sh FILES +.Bl -tag -width /usr/mdec/biosbootxx -compact +.It Pa /usr/mdec/pxeboot +PXE-specific second-stage bootstrap +.It Pa /etc/boot.conf +.Nm +configuration file (read from TFTP server) +.El +.Sh EXAMPLES +Boot the install kernel: +.Pp +.Dl boot> bsd.rd +.Pp +The same thing: +.Pp +.Dl boot> boot tftp:bsd.rd +.Sh SEE ALSO +.Xr dhcpd.conf 5 , +.Xr boot 8 , +.Xr boot_i386 8 , +.Xr dhcpd 8 , +.Xr httpd 8 , +.Xr tftpd 8 +.Rs +.%T Preboot Execution Environment (PXE) Specification +.%N Version 2.1 +.%D September 20, 1999 +.%A Intel Corporation +.Re +.Sh HISTORY +The +.Nm +command first appeared in +.Ox 3.5 . |