Documente Academic
Documente Profesional
Documente Cultură
Connect the new server (installation client) to the same network as the server with the preloaded installation files (installation server).
Boot the installation client from a specially created boot CD
Enter your preferred installation method (FTP, HTTP, NFS) and the needed network
parameters to do this
The installation procedure will then continue with the more familiar Fedora Linux
installation screens. Enter your selections and then complete the installation
Create installation Directories
We'll first create the directories /data/network-install/RPM and /data/networkinstall/ISO in which we will copy the necessary files
[root@bigboy tmp]# mkdir -p /data/network-install/RPM
[root@bigboy tmp]# mkdir -p /data/network-install/ISO
3) Copy the files from the CD ROM base directory to the hard disk
4) Unmount your CD ROM and use the eject command to retrieve it from the drive bay.
[root@bigboy tmp]# umount /dev/cdrom
[root@bigboy tmp]# eject cdrom
NFS Preparation
Create ISO images of the installation CDs and place them in the /data/network-install/ISO
directory. This will require about 3-5 GB of space as well. You can download the ISO images
from the Fedora website or use the Fedora CDs as shown below. If you create the ISOs files from
CDs, make sure they have the same file names as the ones you can download from the Fedora
Web site.
Follow these steps for each CD, substituting the filename where necessary
[root@bigboy tmp]# cd /data/network-install/ISO
[root@bigboy ISO]# dd if=/dev/cdrom of=filename.iso bs=32k
...
...
[root@bigboy ISO]# eject cdrom
Here is a sample procedure to make ISO files with the older mkisofs command. You may have to
install the mkisofs RPM on newer Fedora versions. The command requires a mounted CDROM
drive, so don't forget the mount command.
[root@bigboy ISO]# mount /mnt/cdrom
[root@bigboy ISO]# mkisofs -J -r -T -o filename.iso /mnt/cdrom
[root@bigboy ISO]# eject cdrom
#
# Log file definition
#
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
2. You will now need the device name of your CDROM device. This can be obtained using the
wodim command. In this case it is called /dev/scd0.
[root@bigboy tmp]# wodim --devices
wodim: Overview of accessible drives (1 found) :
------------------------------------------------------------0 dev='/dev/scd0'
rwr--- : 'LITE-ON' 'DVDRW LH-20A1P'
------------------------------------------------------------[root@bigboy tmp]#
3. Insert a blank CD. The wodim command can now be used again to burn the boot.iso ISO
image file to the CD.
[root@bigboy tmp]# wodim dev=/dev/scd0 driveropts=burnfree,noforcespeed \
fs=14M -dao -eject -overburn -v boot.iso
...
...
...
BURN-Free was never needed.
wodim: fifo had 6 puts and 6 gets.
wodim: fifo was 0 times empty and 0 times full, min fill was 100%.
[root@bigboy RPM]#
Keep the CD. You will soon need it for your kickstart client machine.
Boot your system using the kickstart boot CD. This is the only CD you'll need
for future network installations.
Go through the usual steps until the process prompts for the "Installation
Method". You will see a number of choices
Local CDROM
Hard Drive
NFS Image
FTP
HTTP
Select the Ethernet device to which the installation client is connected to the
installation server network. This would most likely be interface "eth0".
Select "DHCP" in the following "Configure TCP/IP" screen. This will make the
Installation client use DHCP during the installation.
You should get a status code of 200<code> after each GET statement. You should
retrace your steps if you are not.
[root@bigboy tmp]# tail -f /var/log/httpd/access_log
192.168.1.247 - - [12/Nov/2006:12:01:04 -0800] "GET /networkinstall/RPM/repodata/repomd.xml HTTP/1.1" 200 1140 "-" "urlgrabber/2.9.9"
192.168.1.247 - - [12/Nov/2006:12:01:05 -0800] "GET /networkinstall/RPM/repodata/primary.xml.gz HTTP/1.1" 200 844228 "-"
"urlgrabber/2.9.9"
192.168.1.247 - - [12/Nov/2006:12:01:19 -0800] "GET /networkinstall/RPM/repodata/comps.xml HTTP/1.1" 200 853899 "-" "urlgrabber/2.9.9"
You will now reach the "FTP Setup" menu. Enter the IP address of the installation
server as the "FTP Site Name".
You can return to the main installation screen at any time by hitting <CTRLALT-F1> for text based installations and <CTRL-ALT-F7> when the GUI is used.
This section shows you how to automate network installations using the kickstart
application and NFS. You can use HTTP and FTP but they have been omitted to keep
the discussion brief.
How To Create New Kickstart Configuration Files
You can create a customized kickstart configuration file by using the "ksconfig"
command from a GUI console. It will bring up a menu from which you can select all
your installation options. When finished, you save the configuration with the
filename of your choice.
You may want to then edit the configuration file and comment out certain
parameters that may change from system to system with a "#". These could include
things like the system's name and IP address. During the kickstart process you will
be prompted for these unspecified values.
Note: Do not change the order of the entries in the kickstart configuration file.
Note: The IP address you assign must be on the same subnet as that of the DHCP
server for kickstart to work. If the server is going to reside on a different network
after the installation, then you'll have to run a separate script to change the IP
addressing information after the installation is complete.
This can be done by placing a %post section at the end of the kickstart file with all
the post installation commands you wish to run. Here is an example:
%post
chkconfig
chkconfig
chkconfig
chkconfig
chkconfig
chkconfig
isdn off
pcmcia off
portmap off
apmd off
nfslock off
nfs off
HTTP Method
boot: linux ks=http://192.168.1.100/network-install/kickstart/ks.cfg
3) Insert the boot CD into the kickstart client Linux box and connect it to the DHCP
network. At the boot: prompt type in the following command:
boot: linux ks
Kickstart will first search for a configuration file named ks.cfg on either the boot CD.
It will then automatically attempt to get a DHCP IP address and see if the DHCP
server will specify a configuration file.
Kickstart will then use NFS to get both the configuration file and the installation
ISOs. The rest should be automatic.
Conclusion
The Kickstart method of Fedora Linux installation can greatly reduce the length of
time it takes to install the operating system. Time is saved not only because a
network connection can be faster than using CDs, but also because it can be left
unattended to install a predetermined Linux configuration. A Kickstart server
connected to an isolated wireless network dedicated to the purpose may be a good
idea for data centers with hundreds of Linux servers.
A recent standard called PXE allows you to run kickstart without a CD ROM if you
configure the NIC card to do a network boot from a specially configured DHCP
server. The topic is beyond the scope of this book, but it may be interesting for
readers with more complex projects to research this option more.