... | ... | @@ -11,10 +11,10 @@ http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=4 |
|
|
|
|
|
## the long version
|
|
|
### use DHCP (dhcpd) to provide PXE boot information
|
|
|
- install dhcpd
|
|
|
- install prerequisites
|
|
|
|
|
|
```
|
|
|
yum -y install dhcp
|
|
|
yum -y install dhcp syslinux xinetd tftp-server dracut-network
|
|
|
```
|
|
|
|
|
|
- configure "/etc/dhcp/dhcpd.conf" to include PXE boot information
|
... | ... | @@ -65,6 +65,31 @@ service dhcpd restart |
|
|
chkconfig dhcpd on
|
|
|
```
|
|
|
|
|
|
- configure TFTP configuration in "/etc/xinetd.d/tftp"
|
|
|
|
|
|
```
|
|
|
service tftp
|
|
|
{
|
|
|
socket_type = dgram
|
|
|
protocol = udp
|
|
|
wait = yes
|
|
|
user = root
|
|
|
server = /usr/sbin/in.tftpd
|
|
|
server_args = -s /var/lib/tftpboot
|
|
|
disable = no
|
|
|
per_source = 11
|
|
|
cps = 100 2
|
|
|
flags = IPv4
|
|
|
}
|
|
|
```
|
|
|
|
|
|
- start / restart TFTP server
|
|
|
|
|
|
```
|
|
|
service xinetd start
|
|
|
chkconfig xinetd on
|
|
|
```
|
|
|
|
|
|
### prepare root filesystem for server
|
|
|
|
|
|
```
|
... | ... | |