... | ... | @@ -17,6 +17,13 @@ http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=4 |
|
|
yum -y install dhcp syslinux xinetd tftp-server dracut-network
|
|
|
```
|
|
|
|
|
|
- prepare directories
|
|
|
|
|
|
```
|
|
|
mkdir -p /var/lib/tftpboot/computenode08/centos6/root/
|
|
|
mkdir -p /var/lib/tftpboot/computenode08/pxelinux.cfg
|
|
|
```
|
|
|
|
|
|
- configure "/etc/dhcp/dhcpd.conf" to include PXE boot information
|
|
|
|
|
|
```
|
... | ... | @@ -90,10 +97,15 @@ service xinetd start |
|
|
chkconfig xinetd on
|
|
|
```
|
|
|
|
|
|
- set root password in "etc/shadow"
|
|
|
|
|
|
- set mount points in "etc/fstab"
|
|
|
|
|
|
|
|
|
|
|
|
### prepare root filesystem for server
|
|
|
|
|
|
```
|
|
|
mkdir -p /var/lib/tftpboot/computenode08/centos6/root/
|
|
|
yum -y --releasever=6.5 groupinstall "Base" "Server Platform" --installroot=/var/lib/tftpboot/computenode08/centos6/root/
|
|
|
yum -y install openssh-server openssh-clients --installroot=/var/lib/tftpboot/computenode08/centos6/root/
|
|
|
```
|
... | ... | |