xref: /titanic_52/usr/src/man/man5/pxeboot.5 (revision 6da3dcb6bc9829269bc9a4ad03e19294b7e9e7de)
1ba11c5b5SToomas Soome.\" Copyright (c) 1999 Doug White
2ba11c5b5SToomas Soome.\" All rights reserved.
3ba11c5b5SToomas Soome.\"
4ba11c5b5SToomas Soome.\" Redistribution and use in source and binary forms, with or without
5ba11c5b5SToomas Soome.\" modification, are permitted provided that the following conditions
6ba11c5b5SToomas Soome.\" are met:
7ba11c5b5SToomas Soome.\" 1. Redistributions of source code must retain the above copyright
8ba11c5b5SToomas Soome.\"    notice, this list of conditions and the following disclaimer.
9ba11c5b5SToomas Soome.\" 2. Redistributions in binary form must reproduce the above copyright
10ba11c5b5SToomas Soome.\"    notice, this list of conditions and the following disclaimer in the
11ba11c5b5SToomas Soome.\"    documentation and/or other materials provided with the distribution.
12ba11c5b5SToomas Soome.\"
13ba11c5b5SToomas Soome.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14ba11c5b5SToomas Soome.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15ba11c5b5SToomas Soome.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16ba11c5b5SToomas Soome.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17ba11c5b5SToomas Soome.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18ba11c5b5SToomas Soome.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19ba11c5b5SToomas Soome.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20ba11c5b5SToomas Soome.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21ba11c5b5SToomas Soome.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22ba11c5b5SToomas Soome.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23ba11c5b5SToomas Soome.\" SUCH DAMAGE.
24ba11c5b5SToomas Soome.\"
25*6da3dcb6SToomas Soome.Dd May 28, 2017
26ba11c5b5SToomas Soome.Dt PXEBOOT 5
27ba11c5b5SToomas Soome.Os
28ba11c5b5SToomas Soome.Sh NAME
29ba11c5b5SToomas Soome.Nm pxeboot
30ba11c5b5SToomas Soome.Nd Preboot Execution Environment (PXE) bootloader
31ba11c5b5SToomas Soome.Sh DESCRIPTION
32ba11c5b5SToomas SoomeThe
33ba11c5b5SToomas Soome.Nm
34ba11c5b5SToomas Soomebootloader is a modified version of the system third-stage bootstrap
35ba11c5b5SToomas Soome.Xr loader 5
36ba11c5b5SToomas Soomeconfigured to run under Intel's Preboot Execution Environment (PXE) system.
37ba11c5b5SToomas SoomePXE is a form of smart boot ROM, built into Ethernet cards, and
38ba11c5b5SToomas SoomeEthernet-equipped motherboards.
39ba11c5b5SToomas SoomePXE supports DHCP configuration and provides low-level NIC access services.
40*6da3dcb6SToomas Soome.Pp
41*6da3dcb6SToomas SoomeThe DHCP client will set a DHCP user class named
42*6da3dcb6SToomas Soome.Va illumos
43*6da3dcb6SToomas Soometo allow flexible configuration of the DHCP server.
44*6da3dcb6SToomas Soome.Pp
45ba11c5b5SToomas SoomeThe
46ba11c5b5SToomas Soome.Nm
47ba11c5b5SToomas Soomebootloader retrieves the kernel, modules,
48ba11c5b5SToomas Soomeand other files either via NFS over UDP or by TFTP,
49ba11c5b5SToomas Soomeselectable through DHCP options.
50ba11c5b5SToomas Soome.Pp
51ba11c5b5SToomas SoomeThe
52ba11c5b5SToomas Soome.Nm
53ba11c5b5SToomas Soomebinary is loaded just like any other boot file,
54ba11c5b5SToomas Soomeby specifying it in the DHCP server's configuration file.
55ba11c5b5SToomas SoomeBelow is a sample configuration for the ISC DHCP v2 server:
56ba11c5b5SToomas Soome.Bd -literal -offset indent
57ba11c5b5SToomas Soomeoption domain-name "example.com";
58ba11c5b5SToomas Soomeoption routers 10.0.0.1;
59ba11c5b5SToomas Soomeoption subnet-mask 255.255.255.0;
60ba11c5b5SToomas Soomeoption broadcast-address 10.0.0.255;
61ba11c5b5SToomas Soomeoption domain-name-servers 10.0.0.1;
62ba11c5b5SToomas Soomeserver-name "DHCPserver";
63ba11c5b5SToomas Soomeserver-identifier 10.0.0.1;
64ba11c5b5SToomas Soome
65ba11c5b5SToomas Soomedefault-lease-time 120;
66ba11c5b5SToomas Soomemax-lease-time 120;
67ba11c5b5SToomas Soome
68ba11c5b5SToomas Soomesubnet 10.0.0.0 netmask 255.255.255.0 {
69ba11c5b5SToomas Soome       filename "pxeboot";
70ba11c5b5SToomas Soome       range 10.0.0.10 10.0.0.254;
71*6da3dcb6SToomas Soome       if exists user-class and option user-class = "illumos" {
72*6da3dcb6SToomas Soome            option root-path "tftp://10.0.0.1/illumos";
73*6da3dcb6SToomas Soome       }
74ba11c5b5SToomas Soome}
75ba11c5b5SToomas Soome
76ba11c5b5SToomas Soome.Ed
77ba11c5b5SToomas Soome.Pp
78ba11c5b5SToomas Soome.Nm
79ba11c5b5SToomas Soomerecognizes
80ba11c5b5SToomas Soome.Va next-server
81ba11c5b5SToomas Soomeand
82ba11c5b5SToomas Soome.Va option root-path
83ba11c5b5SToomas Soomedirectives as the server and path to NFS mount for file requests,
84ba11c5b5SToomas Soomerespectively, or the server to make TFTP requests to.
85ba11c5b5SToomas SoomeNote that
86ba11c5b5SToomas Soome.Nm
87ba11c5b5SToomas Soomeexpects to fetch
88ba11c5b5SToomas Soome.Pa /boot/loader.rc
89ba11c5b5SToomas Soomefrom the specified server before loading any other files.
90ba11c5b5SToomas Soome.Pp
91*6da3dcb6SToomas SoomeValid
92*6da3dcb6SToomas Soome.Cm option Va root-path
93*6da3dcb6SToomas Soomesyntax is
94*6da3dcb6SToomas Soome.Bd -literal -offset indent
95*6da3dcb6SToomas Soome[<scheme>://][<ip-address>/]<path>
96*6da3dcb6SToomas Soome.Ed
97*6da3dcb6SToomas Soome.Pp
98*6da3dcb6SToomas Soome\&...where
99*6da3dcb6SToomas Soome.Qq scheme
100*6da3dcb6SToomas Soomeis either
101*6da3dcb6SToomas Soome.Qq nfs
102*6da3dcb6SToomas Soomeor
103*6da3dcb6SToomas Soome.Qq tftp ,
104*6da3dcb6SToomas Soome.Qq ip-address
105*6da3dcb6SToomas Soomeis the address of the server, and
106*6da3dcb6SToomas Soome.Qq path
107*6da3dcb6SToomas Soomeis the path to the root filesystem on the server.
108*6da3dcb6SToomas SoomeIf
109*6da3dcb6SToomas Soome.Qq scheme
110*6da3dcb6SToomas Soomeis not specified,
111*6da3dcb6SToomas Soome.Nm
112*6da3dcb6SToomas Soomedefaults to using NFS if the
113*6da3dcb6SToomas Soome.Va root-path
114*6da3dcb6SToomas Soomevariable is in the
115*6da3dcb6SToomas Soome.Qq Pa ip-address Ns :/ Ns Pa path
116*6da3dcb6SToomas Soomeform, otherwise TFTP is used.
117*6da3dcb6SToomas Soome.Pp
118ba11c5b5SToomas Soome.Nm
119ba11c5b5SToomas Soomedefaults to a conservative 1024 byte NFS data packet size.
120ba11c5b5SToomas SoomeThis may be changed by setting the
121ba11c5b5SToomas Soome.Va nfs.read_size
122ba11c5b5SToomas Soomevariable in
123ba11c5b5SToomas Soome.Pa /boot/loader.conf .
124cd017266SToomas SoomeValid values range from 1024 to 16384 bytes.
125ba11c5b5SToomas Soome.Pp
126ba11c5b5SToomas SoomeTFTP block size can be controlled by setting the
127ba11c5b5SToomas Soome.Va tftp.blksize
128ba11c5b5SToomas Soomevariable in
129ba11c5b5SToomas Soome.Pa /boot/loader.conf .
130ba11c5b5SToomas SoomeValid values range from 8 to 9008 bytes.
131ba11c5b5SToomas Soome.Pp
132ba11c5b5SToomas SoomeIn all other respects,
133ba11c5b5SToomas Soome.Nm
134ba11c5b5SToomas Soomeacts just like
135ba11c5b5SToomas Soome.Xr loader 5 .
136ba11c5b5SToomas Soome.Pp
137ba11c5b5SToomas SoomeFor further information on Intel's PXE specifications and Wired for
138ba11c5b5SToomas SoomeManagement (WfM) systems, see
139ba11c5b5SToomas Soome.Li http://www.intel.com/design/archives/wfm/ .
140ba11c5b5SToomas Soome.Sh SEE ALSO
141ba11c5b5SToomas Soome.Xr loader 5
142