... | @@ -10,7 +10,9 @@ http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=1 |
... | @@ -10,7 +10,9 @@ http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=1 |
|
http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=4
|
|
http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=4
|
|
|
|
|
|
## the long version
|
|
## the long version
|
|
### use DHCP (dhcpd) to provide PXE boot information
|
|
we start a DHCP server on the storagenode that provides PXE boot information (TFTP protocol) to each diskless node. The information is stored on the storagenode as well. The boot information then boots a linux kernel and ramfs. The root filesystem is accessed by the kernel via NFS and is also stored on the storagenode for each individual diskless computenode. DHCP, TFTP and NFS need to be installed and configured. IPTABLES needs new rules to allow DHCP, TFTP and NFS to pass through the firewall.
|
|
|
|
|
|
|
|
### do this once
|
|
- install prerequisites
|
|
- install prerequisites
|
|
|
|
|
|
```
|
|
```
|
... | @@ -97,6 +99,8 @@ service xinetd start |
... | @@ -97,6 +99,8 @@ service xinetd start |
|
chkconfig xinetd on
|
|
chkconfig xinetd on
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### do this for every diskless computenode
|
|
|
|
|
|
- prepare root filesystem for server
|
|
- prepare root filesystem for server
|
|
|
|
|
|
```
|
|
```
|
... | @@ -180,6 +184,13 @@ chkconfig nfslock on |
... | @@ -180,6 +184,13 @@ chkconfig nfslock on |
|
chkconfig nfs on
|
|
chkconfig nfs on
|
|
```
|
|
```
|
|
|
|
|
|
|
|
- boot computenode with ipmitool and take a look at the console to make sure everything works
|
|
|
|
|
|
|
|
```
|
|
|
|
ipmitool -H 10.1.0.108 -I lanplus -U ADMIN -P ADMIN chassis power on
|
|
|
|
ipmitool -H 10.1.0.108 -I lanplus -U ADMIN -P ADMIN sol activate
|
|
|
|
```
|
|
|
|
|
|
## previous attempt
|
|
## previous attempt
|
|
- saved computenode12 MAC addresses in a txt file
|
|
- saved computenode12 MAC addresses in a txt file
|
|
- powered down node 12 and set boot to pxe
|
|
- powered down node 12 and set boot to pxe
|
... | | ... | |