Gentoo Archives: gentoo-doc-cvs

From: "Joshua Saddler (nightmorph)" <nightmorph@g.o>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en: gentoo-sparc-netboot-howto.xml
Date: Wed, 03 Mar 2010 01:37:48
Message-Id: E1NmdWw-0002T7-BH@stork.gentoo.org
1 nightmorph 10/03/03 01:37:42
2
3 Modified: gentoo-sparc-netboot-howto.xml
4 Log:
5 HUGE cleanup for the sparc netboot doc. a ridiculous number of changes big and small. ugh. bug 296744
6
7 Revision Changes Path
8 1.12 xml/htdocs/doc/en/gentoo-sparc-netboot-howto.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-sparc-netboot-howto.xml?rev=1.12&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-sparc-netboot-howto.xml?rev=1.12&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-sparc-netboot-howto.xml?r1=1.11&r2=1.12
13
14 Index: gentoo-sparc-netboot-howto.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-sparc-netboot-howto.xml,v
17 retrieving revision 1.11
18 retrieving revision 1.12
19 diff -u -r1.11 -r1.12
20 --- gentoo-sparc-netboot-howto.xml 14 Dec 2009 21:35:05 -0000 1.11
21 +++ gentoo-sparc-netboot-howto.xml 3 Mar 2010 01:37:41 -0000 1.12
22 @@ -1,6 +1,6 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
25 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-sparc-netboot-howto.xml,v 1.11 2009/12/14 21:35:05 nightmorph Exp $ -->
26 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-sparc-netboot-howto.xml,v 1.12 2010/03/03 01:37:41 nightmorph Exp $ -->
27
28 <guide>
29 <title>Gentoo Linux based Netboot HOWTO</title>
30 @@ -8,6 +8,9 @@
31 <author title="SPARC Developer">
32 <mail link="weeve"/>
33 </author>
34 +<author title="Editor">
35 + <mail link="nightmorph"/>
36 +</author>
37
38 <abstract>
39 Guide for setting up a netboot server for use with the Gentoo/SPARC netboot
40 @@ -18,8 +21,8 @@
41 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
42 <license/>
43
44 -<version>1.3</version>
45 -<date>2009-12-14</date>
46 +<version>1.4</version>
47 +<date>2010-03-02</date>
48
49 <chapter>
50 <title>Introduction</title>
51 @@ -55,14 +58,14 @@
52 <li>A server machine returns a response to the client with the IP address</li>
53 <li>
54 The client then attempts to download a boot image from the RARP server
55 - using the tftp protocol
56 + using the TFTP protocol
57 </li>
58 <li>Once the image is downloaded, the netboot client then boots the image</li>
59 </ol>
60
61 <p>
62 Based on this overview, we will need to install software for a reverse ARP
63 -daemon and a tftp daemon.
64 +daemon and a TFTP daemon.
65 </p>
66
67 </body>
68 @@ -77,12 +80,13 @@
69
70 <p>
71 Currently, there are two choices for a reverse ARP daemon. They are
72 -net-misc/iputils (installed as part of the system profile) and net-misc/rarpd.
73 +<c>net-misc/iputils</c> (installed as part of the system profile) and
74 +<c>net-misc/rarpd</c>.
75 </p>
76
77 <note>
78 -Installing net-misc/rarpd will overwrite the rarpd and rarpd manpage from
79 -net-misc/iputils
80 +Installing <c>net-misc/rarpd</c> will overwrite the <c>rarpd</c> and
81 +<c>rarpd</c> manpage from <c>net-misc/iputils</c>.
82 </note>
83
84 <p>
85 @@ -90,9 +94,9 @@
86 </p>
87
88 <p>
89 -No matter which rarpd you choose to use, you will need to setup the
90 -<path>/etc/ethers</path> file. This file indicates which hosts rarpd should
91 -respond to when a request is seen, and what address to reply with.
92 +No matter which <c>rarpd</c> you choose to use, you will need to setup the
93 +<path>/etc/ethers</path> file. This file indicates which hosts <c>rarpd</c>
94 +should respond to when a request is seen, and what address to reply with.
95 </p>
96
97 <p>
98 @@ -113,8 +117,8 @@
99
100 <p>
101 If you desire to add additional hosts to <path>/etc/ethers</path>, you do not
102 -need to restart the rarpd services as the file is checked each time a request
103 -is received.
104 +need to restart the <c>rarpd</c> services as the file is checked each time a
105 +request is received.
106 </p>
107
108 <p>
109 @@ -164,11 +168,12 @@
110 </p>
111
112 <p>
113 -First, we will need to determine the options to use for rarpd. While there are
114 -more options than we'll cover here, these options should get you started As
115 -there is currently no init.d script for net-misc/iputils version of rarpd, an
116 -entry will need to be added to <path>/etc/conf.d/local.start</path> if you want
117 -to enable rarpd servies at boot time. A sample entry is as follows;
118 +First, we will need to determine the options to use for <c>rarpd</c>. While
119 +there are more options than we'll cover here, these options should get you
120 +started As there is currently no <path>init.d</path> script for the
121 +<c>net-misc/iputils</c> version of <c>rarpd</c>, an entry will need to be added
122 +to <path>/etc/conf.d/local.start</path> if you want to enable <c>rarpd</c>
123 +services at boot time. A sample entry is as follows:
124 </p>
125
126 <pre caption="/etc/conf.d/local.start">
127 @@ -176,20 +181,21 @@
128 </pre>
129
130 <p>
131 -An explanation of the above rarpd options (as taken from the man page):
132 +An explanation of the above <c>rarpd</c> options (as taken from the man page):
133 </p>
134
135 <ul>
136 - <li>-v Be verbose</li>
137 + <li><c>-v</c> Be verbose</li>
138 <li>
139 - -e Do not check for the presence of a boot image, reply if MAC address
140 - resolves to a valid IP address using /etc/ethers database and DNS
141 + <c>-e</c> Do not check for the presence of a boot image, reply if MAC
142 + address resolves to a valid IP address using <path>/etc/ethers</path>
143 + database and DNS
144 </li>
145 - <li>eth0 represents the interface rarpd should bind to</li>
146 + <li>eth0 represents the interface <c>rarpd</c> should bind to</li>
147 </ul>
148
149 <p>
150 -For more options, consult the section 8 man page on rarpd.
151 +For more options, consult <c>man 8 rarpd</c>.
152 </p>
153
154 <p>
155 @@ -197,7 +203,7 @@
156 </p>
157
158 <p>
159 -Firstly, we'll need to install rarpd with the following command:
160 +Firstly, we'll need to install <c>rarpd</c> with the following command:
161 </p>
162
163 <pre caption="Installing rarpd">
164 @@ -205,9 +211,10 @@
165 </pre>
166
167 <p>
168 -Next, options for rarpd will need to be set in <path>/etc/conf.d/rarpd</path>.
169 -For an equivalent configuration as the one used above for net-misc/iputils
170 -rarpd, adjust <path>/etc/conf.d/rarpd</path> to look like the following
171 +Next, options for <c>rarpd</c> will need to be set in
172 +<path>/etc/conf.d/rarpd</path>. For an equivalent configuration as the one used
173 +above for the <c>net-misc/iputils</c> <c>rarpd</c>, adjust
174 +<path>/etc/conf.d/rarpd</path> to look like the following
175 </p>
176
177 <pre caption="/etc/conf.d/rarpd">
178 @@ -223,13 +230,13 @@
179 <c>-v</c> Be verbose. Show requests which the daemon is responding to
180 </li>
181 <li>
182 - <c>-i</c> Bind to the named interface. By default rarpd binds to the
183 + <c>-i</c> Bind to the named interface. By default <c>rarpd</c> binds to the
184 default interface for the local system type, if available
185 </li>
186 </ul>
187
188 <p>
189 -For more options, consult the section 8 man page on rarpd and rarpd --help.
190 +For more options, consult <c>man 8 rarpd</c> and <c>rarpd --help</c>.
191 </p>
192
193 </body>
194 @@ -239,9 +246,9 @@
195 <body>
196
197 <p>
198 -Here there are three options for a tftp daemon, net-misc/atftp,
199 -net-misc/netkit-tftp and net-misc/tftp-hpa. You only need to install one of the
200 -tftp daemons for proper operation.
201 +Here there are three options for a TFTP daemon, <c>net-misc/atftp</c>,
202 +<c>net-misc/netkit-tftp</c> and <c>net-misc/tftp-hpa</c>. You only need to
203 +install one of the TFTP daemons for proper operation.
204 </p>
205
206 <p>
207 @@ -249,16 +256,17 @@
208 </p>
209
210 <p>
211 -Each tftp daemon will need a directory from which to serve files to tftp
212 -clients. The directory we will use for this howto will be /tftpboot. This will
213 -appear as the root (<path>/</path>) directory to the clients when requests are
214 -received. Additionally, we'll setup the system to run the tftp daemon with the
215 -user and group nobody.
216 +Each TFTP daemon will need a directory from which to serve files to tftp
217 +clients. The directory we will use for this howto will be
218 +<path>/tftpboot</path>. This will appear as the root (<path>/</path>) directory
219 +to the clients when requests are received. Additionally, we'll setup the system
220 +to run the TFTP daemon with the user and group <c>nobody</c>.
221 </p>
222
223 <p>
224 If the directory you have chosen does not currently exist, it will need to be
225 -created with the mkdir command. The command for the example /tftpboot is;
226 +created with the <c>mkdir</c> command. The command for the example
227 +<path>/tftpboot</path> is:
228 </p>
229
230 <pre caption="Creating /tftpboot">
231 @@ -267,7 +275,7 @@
232
233 <p>
234 Then we will need to change the owner of <path>/tftpboot</path> so that it is
235 -owned by user nobody and group nobody;
236 +owned by user nobody and group <c>nobody</c>:
237 </p>
238
239 <pre caption="Changing ownership">
240 @@ -281,7 +289,7 @@
241 <body>
242
243 <p>
244 -First, install the net-misc/atftp package as follows;
245 +First, install the <c>net-misc/atftp</c> package as follows;
246 </p>
247
248 <pre caption="Installing atftp">
249 @@ -289,15 +297,17 @@
250 </pre>
251
252 <p>
253 -After the net-misc/atftp package has been installed, it will need to be
254 +After the <c>net-misc/atftp</c> package has been installed, it will need to be
255 configured. If tftpd services are desired at boot time, an entry to
256 -<path>/etc/conf.d/local.start</path> will need to be added as atftp has no
257 -init.d, inetd or xinetd scripts of its own. If you want to use inetd or xinetd
258 -for controlling the tftpd service, please see their respective man pages.
259 +<path>/etc/conf.d/local.start</path> will need to be added as <c>atftp</c> has
260 +no <path>init.d</path>, <c>inetd</c> or <c>xinetd</c> scripts of its own. If you
261 +want to use <c>inetd</c> or <c>xinetd</c> for controlling the tftpd service,
262 +please see their respective man pages.
263 </p>
264
265 <p>
266 -Below is an example entry for atftpd in <path>/etc/conf.d/local.start</path>;
267 +Below is an example entry for <c>atftpd</c> in
268 +<path>/etc/conf.d/local.start</path>.
269 </p>
270
271 <pre caption="/etc/conf.d/local.start">
272 @@ -305,7 +315,7 @@
273 </pre>
274
275 <p>
276 -An explanation of the above rarpd options (as taken from the man page);
277 +An explanation of the above <c>rarpd</c> options (as taken from the man page);
278 </p>
279
280 <ul>
281 @@ -321,7 +331,7 @@
282 </ul>
283
284 <p>
285 -For more options, consult the section 8 man page on atftpd.
286 +For more options, consult <c>man 8 atftpd</c>.
287 </p>
288
289 </body>
290 @@ -331,7 +341,7 @@
291 <body>
292
293 <p>
294 -First, install the net-misc/netkit-tftp package as follows;
295 +First, install the <c>net-misc/netkit-tftp</c> package:
296 </p>
297
298 <pre caption="Installing netkit-tftp">
299 @@ -339,11 +349,11 @@
300 </pre>
301
302 <p>
303 -Secondly, install sys-apps/xinetd if it is not currently present; After the
304 -net-misc/netkit-tftp and sys-apps/xinetd packages have been installed,
305 -netkit-tftp will need to be configured. netkit-tftp needs to be run from
306 -xinetd, however it does not provide example scripts of its own. A sample xinetd
307 -file is provided below;
308 +Second, install <c>sys-apps/xinetd</c> if it is not currently present. After
309 +the <c>net-misc/netkit-tftp</c> and <c>sys-apps/xinetd</c> packages have been
310 +installed, <c>netkit-tftp</c> will need to be configured. <c>netkit-tftp</c>
311 +needs to be run from <c>xinetd</c>, however it does not provide example scripts
312 +of its own. A sample <c>xinetd</c> file is provided below:
313 </p>
314
315 <pre caption="Sample /etc/xinetd.d/tftp file">
316 @@ -363,28 +373,36 @@
317 </pre>
318
319 <note>
320 -This sample xinetd configuration file for tftp uses the line "disable = no",
321 -which enables the service by default. This is opposite of the default way
322 -packages in Gentoo provide their respective xinetd configuration files, which
323 -have disable set to yes.
324 +This sample <c>xinetd</c> configuration file for tftp uses the line <c>disable =
325 +no</c>, which enables the service by default. This is opposite of the default
326 +way packages in Gentoo provide their respective <c>xinetd</c> configuration
327 +files, which have <c>disable</c> set to <c>yes</c>.
328 </note>
329
330 <p>
331 -An explanation of the above options which can be changed;
332 -user user in.tftpd requests are handled as
333 -group group in.tftpd requests are handled as
334 -server_args root directory for tftp daemon to serve files from
335 -only_from tells xinetd what hosts to allow tftp connections from
336 +An explanation of the above options which can be changed:
337 </p>
338
339 +<ul>
340 + <li><b>user</b>: the user in.tftpd requests are handled as</li>
341 + <li><b>group</b>: the group in.tftpd requests are handled as</li>
342 + <li>
343 + <b>server_args</b>: the root directory for the TFTP daemon to serve files
344 + from
345 + </li>
346 + <li>
347 + <b>only_from</b>: tells xinetd which hosts to allow TFTP connections from
348 + </li>
349 +</ul>
350 +
351 <p>
352 -Additional information on xinetd configuration files can be found in the
353 -section 5 manpage on xinetd.conf
354 +Additional information on <c>xinetd</c> configuration files can be found in
355 +<c>man 5 xinetd.conf</c>.
356 </p>
357
358 <p>
359 -If xinetd is running, you can send it the HUP signal to have it re-read its
360 -configuration files;
361 +If <c>xinetd</c> is running, you can send it the HUP signal to have it re-read
362 +its configuration files:
363 </p>
364
365 <pre caption="Sending HUP signal to xinetd">
366 @@ -392,7 +410,7 @@
367 </pre>
368
369 <p>
370 -If xinetd is not running, start it with the init.d command;
371 +If <c>xinetd</c> is not running, start it with the init.d command:
372 </p>
373
374 <pre caption="Starting xinetd">
375 @@ -400,7 +418,7 @@
376 </pre>
377
378 <p>
379 -For more information, consult the section 8 man page on in.tftpd
380 +For more information, consult <c>man 8 in.tftpd</c>.
381 </p>
382
383 </body>
384 @@ -410,7 +428,7 @@
385 <body>
386
387 <p>
388 -First, install the tftp-hpa package using the following command;
389 +First, install the <c>tftp-hpa</c> package:
390 </p>
391
392 <pre caption="Installing tftp-hpa">
393 @@ -418,9 +436,9 @@
394 </pre>
395
396 <p>
397 -tftp-hpa comes with an init.d and the accompanying conf.d configuration file.
398 -Check to make sure that INIITFTPD_PATH and INITFTP_OPTS in
399 -<path>/etc/conf.d/in.tftpd</path> match those below;
400 +<c>tftp-hpa</c> comes with an <path>init.d</path> and the accompanying
401 +<path>conf.d</path> configuration file. Check to make sure that INTFTPD_PATH
402 +and INTFTP_OPTS in <path>/etc/conf.d/in.tftpd</path> match those below:
403 </p>
404
405 <pre caption="/etc/conf.d/in.tftpd">
406 @@ -429,7 +447,7 @@
407 </pre>
408
409 <p>
410 -The tftp daemon can then be started via the init.d script;
411 +The TFTP daemon can then be started via the <path>init.d</path> script:
412 </p>
413
414 <pre caption="Starting in.tftpd">
415 @@ -437,7 +455,7 @@
416 </pre>
417
418 <p>
419 -For more options, consult the section 8 man page on tftpd.
420 +For more options, consult <c>man 8 tftpd</c>.
421 </p>
422
423 </body>
424 @@ -450,23 +468,24 @@
425 <body>
426
427 <p>
428 -Make sure you have an image you want to use for netbooting. For a sparc or
429 -sparc64 netboot image, please check your local Gentoo distfiles mirror under
430 -<path>experimental/sparc/tftpboot</path> for the appropriate image. We'll
431 -assume you are planning to boot a sparc64 host using the
432 -<path>gentoo-sparc64-1.4_rc4-20040102.tftpboot</path> image.
433 +Make sure you have an image you want to use for netbooting. Please check your
434 +<uri link="/main/en/mirrors.xml">local</uri> Gentoo <uri
435 +link="http://distfiles.gentoo.org/experimental/sparc/tftpboot/sparc64/">distfiles
436 +mirror</uri> for the appropriate image. We'll assume you are planning to boot
437 +using the <path>gentoo-sparc64-20100128.tftpboot</path> image.
438 </p>
439
440 <p>
441 -Once you have an image, copy the image into <path>/tftpboot</path>;
442 +Once you have an image, copy the image into <path>/tftpboot</path>:
443 </p>
444
445 <pre caption="Copying the image">
446 -# <i>cp gentoo-sparc64-1.4_rc4-20040102.tftpboot /tftpboot</i>
447 +# <i>cp gentoo-sparc64-20100128.tftpboot /tftpboot</i>
448 +# <i>chmod 644 /tftpboot/gentoo-sparc64-20100128.tftpboot</i>
449 </pre>
450
451 <p>
452 -Now, when the netboot client makes a tftp request, it looks for a file that is
453 +Now, when the netboot client makes a TFTP request, it looks for a file that is
454 the hexadecimal number of its current IP address, and on some platforms an
455 <path>.ARCH</path> suffix. The hexadecimal number should use <e>capital</e>
456 characters.
457 @@ -478,7 +497,7 @@
458 </p>
459
460 <pre caption="Convert to hexadecimal">
461 -# <i>printf "%.2x%.2x%.2x%.2x\n" 10 0 1 15</i>
462 +# <i>printf "%.2X%.2X%.2X%.2X\n" 10 0 1 15</i>
463 </pre>
464
465 <pre caption="Example IP address">
466 @@ -487,33 +506,29 @@
467 </pre>
468
469 <p>
470 -So for the example sparc64 netboot client, it would look for a file named
471 -0A00010F when it tftpboots.
472 +So for the example netboot client, it would look for a file named
473 +<path>0A00010F</path> when it tftpboots.
474 </p>
475
476 <p>
477 -On sparc however, the file would be 0A00010F.SUN4M, 0A00010F.SUN4C or
478 -0A00010F.SUN4D depending on what type of sparc system.
479 +Iif you are really, really lazy (like me), you can netboot the host to get the
480 +filename the client is looking for from the netboot server logs.
481 </p>
482
483 <p>
484 -Additionally, if you are really really lazy (like me), you can netboot the host
485 -to get the filename the client is looking for from the netboot server logs.
486 -</p>
487 -
488 -<p>
489 -Make sure that both the rarpd and tftpd daemon you've chosen are currently
490 -running, then boot the host as described below in "Netbooting the client".
491 +Make sure that both the <c>rarpd</c> and TFTP daemon you've chosen are currently
492 +running, then boot the host as described below in <uri
493 +link="#netbootingclient">Netbooting the client</uri>.
494 </p>
495
496 <p>
497 The client will appear to hang after the boot net command is issued. Then on
498 -the netboot server, check the system logs for an entry for in.tftpd.
499 +the netboot server, check the system logs for an entry for <c>in.tftpd</c>.
500 </p>
501
502 <p>
503 -An example entry from a netboot server running sysklogd and tftp-hpa looks
504 -like;
505 +An example entry from a netboot server running <c>sysklogd</c> and
506 +<c>tftp-hpa</c> looks like:
507 </p>
508
509 <pre caption="Log entry for netboot server">
510 @@ -522,19 +537,19 @@
511
512 <p>
513 The filename is shown above after "filename" in the log entry, which in this
514 -case is 0A00010F.
515 +case is <path>0A00010F</path>.
516 </p>
517
518 <p>
519 As a way to keep track of what netboot image you are using, and to allow
520 multiple machines to use the same netboot image, you can use a soft link to
521 create the file with the hexadecimal value. To create this using our sample
522 -sparc64 host and the <path>gentoo-sparc64-1.4_rc4-20040102.tftpboot</path>, use
523 -the following command;
524 +sparc64 host and the <path>gentoo-sparc64-20100128.tftpboot</path>, use
525 +the following command:
526 </p>
527
528 <pre caption="Linking the image files">
529 -# <i>/bin/ln -s /tftpboot/gentoo-sparc64-1.4_rc4-20040102.tftpboot \
530 +# <i>/bin/ln -s /tftpboot/gentoo-sparc64-20100128.tftpboot \
531 /tftpboot/0A00010F</i>
532 </pre>
533
534 @@ -546,9 +561,8 @@
535 </section>
536 </chapter>
537
538 -<chapter>
539 +<chapter id="netbootingclient">
540 <title>Netbooting the client</title>
541 -
542 <section>
543 <body>
544
545 @@ -598,12 +612,12 @@
546 </p>
547
548 <p>
549 -If the netboot server is a Gentoo/LINUX system and experiences problems
550 -installing the rarpd and tftpd packages, please search
551 -<uri>http://forums.gentoo.org</uri> and <uri>http://bugs.gentoo.org</uri> to
552 -see if this problem has been encountered by anyone else. If it has not, or the
553 -solutions found do not work, then please open a new bug at
554 -<uri>http://bugs.gentoo.org</uri>
555 +If the netboot server is a Gentoo Linux system and experiences problems after
556 +installing the rarpd and tftpd packages, please search the <uri
557 +link="http://forums.gentoo.org">Gentoo Forums</uri> and <uri
558 +link="http://bugs.gentoo.org">Gentoo Bugzilla</uri> to see if this problem has
559 +been encountered by anyone else. If it has not, or the solutions found do not
560 +work, then please open a new bug.
561 </p>
562
563 <p>
564 @@ -613,7 +627,7 @@
565 <p>
566 This is presumably because the file your system is trying to load from the
567 tftpboot server is not available. On a SPARC system, you would probably see the
568 -following;
569 +following:
570 </p>
571
572 <pre caption="Booting appears to hang">
573 @@ -675,7 +689,7 @@
574
575 <p>
576 To change the value of tpe-link-test? from an OBP prompt, issue the following
577 -command;
578 +command:
579 </p>
580
581 <pre caption="Changing tpe-link-test value">