old-www/HOWTO/Network-Install-HOWTO-7.html

246 lines
9.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Network Install HOWTO: Redhat Client Install</TITLE>
<LINK HREF="Network-Install-HOWTO-8.html" REL=next>
<LINK HREF="Network-Install-HOWTO-6.html" REL=previous>
<LINK HREF="Network-Install-HOWTO.html#toc7" REL=contents>
</HEAD>
<BODY>
<A HREF="Network-Install-HOWTO-8.html">Next</A>
<A HREF="Network-Install-HOWTO-6.html">Previous</A>
<A HREF="Network-Install-HOWTO.html#toc7">Contents</A>
<HR>
<H2><A NAME="s7">7. Redhat Client Install</A></H2>
<P>
<!--
network install!redhat client install
-->
You should have already decided by now using the
<A HREF="Network-Install-HOWTO-3.html#quickguide">Quick Guide</A> section
of this HOWTO whether you are going to install your machine using the automated
process or a manual process. The automated process under Redhat is known as
Kickstart and in short provides you with a configuration file for the machine
that you are going to install so that you can perform unattended installs of
client machines.
<P>
<P>
<H2><A NAME="ss7.1">7.1 Create Kickstart Config Files</A>
</H2>
<P>You only need to read/follow this section if you are intending to use an
automated install process, if you intend to do a manual installation over
your network then skip this section. Here we go through the process of creating
configuration files that the installer will read in order to create the
configuration of our client machine we are installing during an unattended
network installation.
<P>
<P>
<H3>Kickstart Configurator Installation</H3>
<P>In order to start creating your config files you will need to install the
Kickstart Configurator on your Linux machine. You will need one of two RPMS
for this depending on the version of Redhat you are using. These RPMS are
available on your Redhat install CDs as follows:
<UL>
<LI><CODE>redhat-config-kickstart</CODE> - for versions 8.x and above</LI>
<LI><CODE>ksconfig</CODE> - for earlier versions</LI>
</UL>
<P>Check to see if you already have them installed with the command:
<PRE>
rpm -q {rpm package name}
</PRE>
<P>If these packages are not installed then install with the command:
<PRE>
rpm -Uvh {rpm package name}
</PRE>
<P>
<P>
<H3><A NAME="redhatbasicconfig"></A> Create A Basic Config File </H3>
<P>Once you have confirmed that you have the configurator packages installed,
you can now start to create configuration files. For most situations the basic
configuration described here will be sufficient to perform your installations.
<P>Start the Kickstart configuration program that you have on your system. This
will be done with the command <CODE>redhad-config-kickstart</CODE> for Redhat 8.x
systems and above (or if you have the redhat-config-kickstart RPM installed),
or the command <CODE>ksconfig</CODE> for other Redhat systems (or if you have the
ksconfig RPM installed).
<P>You will now be presented with a window that allows you to configure most of
your installation options as if you were installing a new machine or performing
an upgrade. You can proceed through each menu, configuring your options
for a particular system or set of similar systems that you wish to automatically
install.
<P>Once you have progressed through each configuration screen, you are ready to
save out your configuration file to disk. <EM>NOTE: it is outside the
boundaries of this document to take you through each configuration option for
installation, we are just concerned with the principles of network installs
here. Please consult your Redhat documentation or
the
<A HREF="http://www.redhat.com">Redhat Website</A> for this
information.</EM> Click the "<CODE>save</CODE>" button and choose a location on
your system to store configuration files. If you are creating lots of different
configurations then it might be worthwhile creating your own configuration
repository - don't forget to name the files sensibly so you know which is which.
<P>
<P>
<H3>Advanced Config File Setup</H3>
<P>Before attempting advanced configuration please make sure that you have first
created a valid basic configuration file as described
<A HREF="#redhatbasicconfig">above</A>.
It is perfectly possible to create your own configuration files from scratch
but it is far easier to use the tools provided to do the job for you!
<P>Once you have your configuration file saved, you can open it in your favourite
text editor.
You can use or modify any of the existing tags in your file, just so long as
the tags, options, and syntax you use are legal. Once you have edited the file
manually then save it back out in text format again.
<P>The best use of editing the configuration file manually is probably for adding
your own customised packages to the installation. Back in
the
<A HREF="Network-Install-HOWTO-6.html#redhatcustomrpm">Redhat Server Setup</A> section we describe
how to add your own customised packages to your install server. Here, we
describe how to access those packages using the configuration file so they can
be automatically installed with the rest of the system.
<P>You should be able to locate a <CODE>packages</CODE> section in your basic
configuration file in your editor. You can add extra packages by name as you
require to the end of this list of packages. Follow the format of the other
packages that you have listed in the file already from the basic configuration.
Packages that start with <CODE>@</CODE> are package group names. You can use any
of the default Redhat package groups or you can use any custom groups you may
have created.
<P>You can add as many packages and groups under the <CODE>packages</CODE> section as
you wish. Just put one package on each line and follow the format already
provided.
<P>Save your modified configuration file from your text editor and it will then be
ready to use in your installations as described below.
<P>
<P>
<H2><A NAME="ss7.2">7.2 Boot the Machine</A>
</H2>
<P>It is simplest to use a floppy disk to boot your clients ready for installation.
Everything you need is provided for you on the Redhat CDs as follows:
<OL>
<LI>If you have not already created a boot floppy then do it now (you only
need to do this step once, when you have a boot floppy you can install as many
machines as you like with a single floppy):
<UL>
<LI>Locate the floppy image that you need to use. This is on the
first Redhat CD and is at <CODE>images/bootnet.img</CODE></LI>
<LI>From the <CODE>images</CODE> directory on the CD copy the image to
your floppy disk (make sure you have one inserted in the drive, but not
mounted) using the following command:
<PRE>
dd if=bootnet.img of=/dev/fd0
</PRE>
</LI>
</UL>
</LI>
<LI>If you are doing an automated install (with the config file) then you
should follow this step (otherwise skip to next step):
<UL>
<LI>Mount your floppy disk
<PRE>
mount /mnt/floppy
</PRE>
</LI>
<LI>Copy your config file to the root directory of the floppy with
the name <CODE>ks.cfg</CODE>
<PRE>
cp /path/to/file /mnt/floppy
</PRE>
</LI>
<LI>Umount your floppy disk
<PRE>
umount /mnt/floppy
</PRE>
</LI>
</UL>
</LI>
<LI>Insert your floppy disk into the client machine that you want to install
Redhat on. Make sure that the floppy disk is in the boot list of your BIOS and
turn on your machine to boot from the floppy.</LI>
<LI>At the boot prompt:
<UL>
<LI>If you are doing an automated install:
<PRE>
linux ks=floppy
</PRE>
</LI>
<LI>If you're not using config files then press ENTER for the
default installation</LI>
</UL>
</LI>
<LI>Finish the installation:
<UL>
<LI>If you are doing an automated install then you must complete any
parts of the configuration process that you have missed in the config
file. If you have a complete config file then you're done so go get
yourself a cup of something nice and wait for your install to finish.</LI>
<LI>If you are doing a manual install then you must complete the
installation in the normal way, going through each menu of the Redhat
install program and selecting the options you require for your machine.
When you finish then it's time for a cup of something nice, no need to
swap install media here.</LI>
</UL>
</LI>
</OL>
<P>
<P>
<H3>Further Boot Options</H3>
<P>This is an extension to the technique used to boot client machines for automatic
installations as described above. You should try this method if you have tried
and failed with the method above. This section should help you if you have had
network connection problems during boot, for example, if you do not have a
network card supported by the floppy boot disk.
<P>You can create a second floppy disk to use in the boot process which contains
extra drivers for network cards. This can then be read on boot and the drivers
loaded for your card from there instead. This is done as follows:
<OL>
<LI>In the <CODE>images</CODE> directory on your CD you should find a file called
<CODE>drvnet.img</CODE>.</LI>
<LI>From the <CODE>images</CODE> directory on your CD, copy the file to a
<EM>different</EM> floppy disk with the command:
<PRE>
dd if=drvnet.img of=/dev/fd0
</PRE>
Again, make sure your floppy disk is not mounted when you run this command.</LI>
<LI>Now you have a network driver floppy disk. You should return to your
installation as described above but now add the keyword <CODE>dd</CODE> to your
command line.
<UL>
<LI>So for automated intall we type:
<PRE>
linux dd ks=floppy
</PRE>
</LI>
<LI>For manual install we type:
<PRE>
linux dd
</PRE>
</LI>
</UL>
</LI>
<LI>When prompted if you have a driver disk, select <CODE>YES</CODE>. Then swap
the boot disk for your driver disk and the extra drivers will load and detect
your network card.</LI>
<LI>You should now continue with the installation as described above.</LI>
</OL>
<P>
<P>
<P>
<P>
<HR>
<A HREF="Network-Install-HOWTO-8.html">Next</A>
<A HREF="Network-Install-HOWTO-6.html">Previous</A>
<A HREF="Network-Install-HOWTO.html#toc7">Contents</A>
</BODY>
</HTML>