|
Royce Howard
Don Scroggins
Zack Stirts
Remote Install From Red Hat Linux
1. Scope
2. A. The purpose of this exercise is to install Red Hat Linux from a remote server via PXE. This is similar to our last lab that remotely installed Windows. Deadline of two weeks of which one day is needed to set up the Red Hat Server.
3. Purpose of the document
A. To Inform and instruct on the actions taken to accomplish this lab.
4. Materials
A. Hardware
1. One Red Hat Server
2. NIC that supports PXE
3. One or more workstations to install on.
B. Software
1. Red Hat Server 9
2. PXELinux
3. Kickstart
4. Webmin
5. DHCP
6. TFTP
5. Process Description
A. Install Red Hat Server 9.
B. Install Webmin
1. Download from webmin.com
2. gunzip
3. tar
4. change to webmin directory
5. run ./setup.sh
C. Install Syslinux
1. Download from syslinux.com
2. gunzip
3. tar
D. Set up DHCP
1. Edit or create the /etc/dhcpd.conf file to set up the subnet – The file should look
similar to this
· add the following to your /etc/dhcpd.conf file for each client:
# /etc/dhcpd.conf
# 'subnet' should be defined as a route
# 'hardware ethernet' is the MAC address of the client
# 'fixed-address' is the IP you want to assign to the client
# 'filename' is the location of the pxelinux executable on the TFTP server
subnet 10.0.0.0 netmask 255.0.0.0 {
default-lease-time 600;
max-lease-time 7200;
host client12 {
hardware ethernet 00:00:00:00:00:00;
fixed-address 10.1.1.12;
option host-name "client12";
filename "X86PC/UNDI/linux-install/pxelinux.0";
}
}
E. Copy PXELinux.0 to /TFTPBoot/X86PC/UNDI/Linux-Install/
F. Create Installation Tree
1 Need all Red hat Installation CD's
2 put in the first Red Hat CD and type mount /mnt/cdrom
3. Copy all files cp -var /mnt/cdrom /TFTPBoot/X86PC/UNDI/Linux-Install/
4..Do the same for th other two CD's
G. PXE Linux
1. Create directory pxelinux.cfg in /TFTPBoot/X86PC/UNDI/Linux-Install/
2. Create file in pxelinux.cfg directory called “default”
3. Add this to file “Default”
default linux
label linux
kernel vmlinuz
append ksdevice=eth0 load_ramdisk=1 initrd=initrd.img network
H. Install Boot images
1. Use initrd.img and vmlinuz from images/pxeboot/ on the RedHat CD 1
2. Move them to the tftp server directory:
/tftpboot/X86PC/UNDI/linux-install/initrd.img
/tftpboot/X86PC/UNDI/linux-install/vmlinuz
I. Set up NFS
1. From start menu go to System Settings, Server Settings, NFS Server
2. Add path is to TFTPBoot/
3. In host put an * Asterisk
4. Click Read/Write
5. go to user access and turn on treat remote user as local Root.
6. Under general options enable sync write operations on request
7. click ok
J. Download TFTP Server
1. from http://www.kernel.org/pub/software/network/tftp/
2. Gunzip and tar
3. configure, make, make install
K. Start the DHCP server:
[root]$ /usr/sbin/dhcpd4.
L. Start tftp server
[root]$ /usr/sbin/in.tftpd -l -v -s /tftpboot
-l runs it in standalone mode
-v toggles verbose output to /var/log/messages
-s {directory} sets the root directory
Sources
Google.com
http://www.tunnel19/guides/pxeboot.html
Linux Magazine January and February 2003
http://www.linux-mag.com/content/view/1274/2204/
Kernel.org for the TFTP file http://www.kernel.org/pub/software/network/tftp/
6. Division of Responsibilities
Royce – Typographer of fine documentation, minor research and vacationer to the far south
Don – Master hacker and data entry. Exerciser of the head squirrel wheel.
Zack – Research and master rebooter. Music man.
Don gets the MVP for frustration factor
|