Hitchhiker's Guide to Openbsd


Download 1.27 Mb.
Pdf ko'rish
bet103/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   99   100   101   102   103   104   105   106   ...   258
Bog'liq
obsd-faq49

filename "pxeboot";
http://www.openbsd.org/faq/faq6.html (23 of 33)9/4/2011 10:02:06 AM


6 - Networking
range 192.168.1.32 192.168.1.127;
default-lease-time 86400;
max-lease-time 90000;
}
}
You will also have to activate the 
tftpd(8)
 daemon. This is typically done through 
inetd(8)
. The standard 
OpenBSD install has a sample line in 
inetd.conf
which will do nicely for you: 
#tftp dgram udp wait root /usr/libexec/tftpd tftpd -s /
tftpboot
which simply needs to have the '#' character removed and send inetd(8) a -HUP signal to get it to 
reload 
/etc/inetd.conf
. tftpd(8) serves files from a particular directory, in the case of this line, 
that directory is 
/tftpboot
, which we will use for this example. Obviously, this directory needs to be 
created and populated. Typically, you will have only a few files here for PXE booting: 

pxeboot
, the PXE boot loader (serving the same function as 
boot
on a disk-based system). 

bsd.rd
, the install kernel or 
bsd
, a customized kernel. 

/etc/boot.conf
, a boot configuration file. 
Note that 
/etc/boot.conf
is only needed if the kernel you wish to boot from is not named 
bsd
, or 
other pxeboot defaults are not as you need them (for example, you wish to use a serial console). You can 
test your tftpd(8) server using a 
tftp(1)
client, making sure you can fetch the needed files. 
When your DHCP and TFTP servers are running, you are ready to try it. You will have to activate the 
PXE boot on your system or network card; consult your system documentation. Once you have it set, 
you should see something similar to the following: 
Intel UNDI, PXE-2.0 (build 067)
Copyright (C) 1997,1998 Intel Corporation
For Realtek RTL 8139(X) PCI Fast Ethernet Controller v1.00 
(990420)
DHCP MAC ADDR: 00 E0 C5 C8 CF E1
CLIENT IP: 192.168.1.76 MASK: 255.255.255.0 DHCP IP: 
192.168.1.252
GATEWAY IP: 192.168.1.1
probing: pc0 com0 com1 apm pxe![2.1] mem[540k 28m a20=on]
disk: hd0*
net: mac 00:e0:c5:c8:cf:e1, ip 192.168.1.76, server 192.168.1.252
http://www.openbsd.org/faq/faq6.html (24 of 33)9/4/2011 10:02:06 AM


6 - Networking
>> OpenBSD/i386 PXEBOOT 3.15
boot>
At this point, you have the standard OpenBSD boot prompt. If you simply type "
bsd.rd
" here, you 
will then fetch the file 
bsd.rd
from the TFTP server. 
>> OpenBSD/i386 PXEBOOT 3.15
boot> bsd.rd
booting tftp:bsd.rd: 4375152+733120 [58+122112+105468]=0x516d04
entry point at 0x100120
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights 
reserved.
Copyright (c) 1995-2011 OpenBSD. All rights reserved. http://
www.OpenBSD.org
OpenBSD 4.9 (RAMDISK_CD) #329: Wed Mar 2 07:27:01 MST 2011
...
The 
bsd.rd install kernel
will now boot. 

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   99   100   101   102   103   104   105   106   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling