[BACK]Return to pxeboot.8 CVS log [TXT][DIR] Up to [local] / sys / arch / amd64 / stand / pxeboot

Annotation of sys/arch/amd64/stand/pxeboot/pxeboot.8, Revision 1.1

1.1     ! nbrk        1: .\"    $OpenBSD: pxeboot.8,v 1.9 2007/05/31 19:20:02 jmc Exp $
        !             2: .\" Copyright (c) 2004 Tom Cosgrove
        !             3: .\" Copyright (c) 2003 Matthias Drochner
        !             4: .\" Copyright (c) 1999 Doug White
        !             5: .\" All rights reserved.
        !             6: .\"
        !             7: .\" Redistribution and use in source and binary forms, with or without
        !             8: .\" modification, are permitted provided that the following conditions
        !             9: .\" are met:
        !            10: .\" 1. Redistributions of source code must retain the above copyright
        !            11: .\"    notice, this list of conditions and the following disclaimer.
        !            12: .\" 2. Redistributions in binary form must reproduce the above copyright
        !            13: .\"    notice, this list of conditions and the following disclaimer in the
        !            14: .\"    documentation and/or other materials provided with the distribution.
        !            15: .\"
        !            16: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
        !            17: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        !            18: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
        !            19: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
        !            20: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            21: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
        !            22: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            23: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            24: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            25: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            26: .\" SUCH DAMAGE.
        !            27: .\"
        !            28: .Dd $Mdocdate: May 31 2007 $
        !            29: .Dt PXEBOOT 8 amd64
        !            30: .Os
        !            31: .Sh NAME
        !            32: .Nm pxeboot
        !            33: .Nd
        !            34: amd64-specific second-stage PXE bootstrap
        !            35: .Sh DESCRIPTION
        !            36: .Nm
        !            37: is a modified version of the amd64 second-stage bootstrap program,
        !            38: .Xr boot 8 ,
        !            39: configured to run under Intel's Preboot Execution Environment (PXE).
        !            40: PXE is a form of smart boot ROM, built into many Ethernet cards from Intel,
        !            41: 3Com, and other manufacturers.
        !            42: .Pp
        !            43: The computer's PXE boot ROM contacts a DHCP server by broadcasting a request
        !            44: on the network.
        !            45: It gets an IP address from the DHCP server,
        !            46: then it is told the name of the boot program to download \(em
        !            47: in this case, the boot program is
        !            48: .Nm .
        !            49: The ROM downloads the boot program using TFTP, then executes it.
        !            50: .Pp
        !            51: The
        !            52: .Nm
        !            53: boot program will look for an
        !            54: .Pa /etc/boot.conf
        !            55: configuration
        !            56: file on the TFTP server.
        !            57: If it finds one, it processes the commands within it.
        !            58: .Pa boot.conf
        !            59: processing can be skipped by holding down either Control key as
        !            60: .Nm
        !            61: starts.
        !            62: .Pp
        !            63: .Nm
        !            64: then sits in a loop,
        !            65: processing commands given by the user.
        !            66: It accepts all the commands accepted by
        !            67: .Xr boot 8 .
        !            68: .Pp
        !            69: If no commands are given for a short time,
        !            70: .Nm
        !            71: will then attempt to load the
        !            72: .Ox
        !            73: kernel
        !            74: .Pa bsd
        !            75: via TFTP.
        !            76: It may be told to boot an alternative kernel,
        !            77: either by commands in the
        !            78: .Pa boot.conf
        !            79: file,
        !            80: or by commands typed by the user at the
        !            81: .Ic boot\*(Gt
        !            82: prompt.
        !            83: .Nm
        !            84: can be used for
        !            85: .Xr diskless 8
        !            86: setups or to load the
        !            87: .Pa bsd.rd
        !            88: install kernel
        !            89: for network installs.
        !            90: .Pp
        !            91: To prepare a server to support network booting,
        !            92: the
        !            93: .Xr dhcpd 8
        !            94: and
        !            95: .Xr tftpd 8
        !            96: services should be enabled and configured.
        !            97: It may help to use the
        !            98: .Fl s
        !            99: option with
        !           100: .Xr tftpd 8 ,
        !           101: to avoid confusion between files for the server's system
        !           102: and files for the client system
        !           103: (note that
        !           104: .Fl s
        !           105: is set by default in
        !           106: .Ox ) .
        !           107: .Xr ftpd 8
        !           108: or
        !           109: .Xr httpd 8
        !           110: should be enabled, depending on how the install sets will be made available.
        !           111: .Pp
        !           112: .Nm
        !           113: and the kernel should be copied into the TFTP server's root directory
        !           114: (typically
        !           115: .Pa /tftpboot ) .
        !           116: A
        !           117: .Pa boot.conf
        !           118: file may be created if required
        !           119: (e.g.\&
        !           120: .Pa /tftpboot/etc/boot.conf ) .
        !           121: .Pp
        !           122: A sample configuration file for
        !           123: .Xr dhcpd 8
        !           124: might be as follows:
        !           125: .Bd -literal -offset indent
        !           126: option domain-name "example.com";
        !           127: option routers 10.0.0.1;
        !           128: option subnet-mask 255.255.255.0;
        !           129: option broadcast-address 10.0.0.255;
        !           130: option domain-name-servers 10.0.0.1;
        !           131: server-name "DHCPserver";
        !           132: server-identifier 10.0.0.1;
        !           133:
        !           134: default-lease-time 120;
        !           135: max-lease-time 120;
        !           136:
        !           137: subnet 10.0.0.0 netmask 255.255.255.0 {
        !           138:     filename "pxeboot";
        !           139:     range 10.0.0.10 10.0.0.254;
        !           140: }
        !           141: .Ed
        !           142: .Pp
        !           143: Since amd64 systems boot up as i386 systems,
        !           144: their PXE ROMs typically set the PXE client system architecture
        !           145: to be the same as for i386.
        !           146: This means that the DHCP option
        !           147: .Ic vendor-class-identifier
        !           148: cannot, therefore, be used to distinguish between i386 and amd64 systems.
        !           149: .Pp
        !           150: Instead, the client machine identifier (UUID) or
        !           151: hardware Ethernet address (MAC) should be used.
        !           152: See
        !           153: .Xr dhcpd 8
        !           154: and
        !           155: .Xr dhcpd.conf 5
        !           156: for more information.
        !           157: .Sh FILES
        !           158: .Bl -tag -width /usr/mdec/pxebootxx -compact
        !           159: .It Pa /usr/mdec/pxeboot
        !           160: PXE-specific second-stage bootstrap
        !           161: .It Pa /etc/boot.conf
        !           162: .Nm
        !           163: configuration file (read from TFTP server)
        !           164: .It Pa /etc/dhcpd.conf
        !           165: DHCPD configuration file
        !           166: .It Pa /tftpboot
        !           167: Default root directory for
        !           168: .Xr tftpd 8
        !           169: .El
        !           170: .Sh EXAMPLES
        !           171: Boot the install kernel:
        !           172: .Pp
        !           173: .Dl boot\*(Gt bsd.rd
        !           174: .Pp
        !           175: The same thing:
        !           176: .Pp
        !           177: .Dl boot\*(Gt boot tftp:bsd.rd
        !           178: .Sh SEE ALSO
        !           179: .Xr dhcpd.conf 5 ,
        !           180: .Xr boot 8 ,
        !           181: .Xr boot_amd64 8 ,
        !           182: .Xr dhcpd 8 ,
        !           183: .Xr diskless 8 ,
        !           184: .Xr httpd 8 ,
        !           185: .Xr tftpd 8
        !           186: .Rs
        !           187: .%T Preboot Execution Environment (PXE) Specification
        !           188: .%N Version 2.1
        !           189: .%D September 20, 1999
        !           190: .%A Intel Corporation
        !           191: .Re
        !           192: .Sh HISTORY
        !           193: The
        !           194: .Nm
        !           195: command first appeared in
        !           196: .Ox 3.5 .

CVSweb