Commit 89eebf88 authored by Kevin Atkinson's avatar Kevin Atkinson

Update Fedora8 install docs.

parent c87f4f26
#
# Stuff to do in order to make a fresh Fedora 8 testbed ready
#
# (updated from FC4-build.txt)
# for both the 32 bit and 64 bit (x86_64) versions
#
#
......@@ -19,6 +18,8 @@
mount /dev/hda4 /z
# Copy the testbed source to /z/testbed somehow.
export testbed_src=/z/testbed
export etc_patches=${testbed_src}/doc/updating-RHL/Fedora8-etc-patches
......@@ -95,7 +96,42 @@ rpm -e ccache
##
## This will cause problems with some of emulab client software
##
chkconfig --list iptables
chkconfig iptables off
## Fix up device drivers
##
# disable udev-post, as it adds persistent udev rules, and as a result
# eth devices will get high-numbered names like eth8+
chkconfig udev-post
# now go though /etc/udev/70-persistent-cd.rules and
# /etc/udev/70-persistent-net.rules and remove any devices settings
# also fix up /etc/modprobe.conf, must remove eth* aliases, also need to add
# scci_hostadapter aliases, best to just use the one in $etc_patches:
cp etc_patches/modprobe.conf /etc
## Add wireless cards to /etc/modprobe.d/blacklist
##
patch /etc/modprobe.d/blacklist < $etc_patches/blacklist.patch
## For the 64 bit image enable listing the arch when using "rpm -qa"
##
echo '%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}' > /etc/rpm/macros
## Reinstall grub
##
## For some reason the f8 installer may hardcoded the bios boot drive
## address, which may cause problems with the wireless nodes that
## boot off a USB memory stick.
sudo grub
grub> find /boot/grub/grub.conf
grub> root (hd0,1)
grub> setup (hd0,1)
grub> quit
## Fix up grub.conf
##
# Change the terminal line to
# terminal --dumb --timeout=0 serial console
## Install tcsh
##
......@@ -103,6 +139,7 @@ chkconfig --list iptables
## the program agent.
yum install tcsh
###############################################################################
## Install Keys
......@@ -110,20 +147,6 @@ yum install tcsh
## sh ${testbed_src}/doc/updating-RHL/tar-keys
## on an exiting node
# From other node make a tarball with
# root/.ssh/authorized_keys
# root/.ssh/authorized_keys2
# root/.cvsup/auth
# etc/ssh/ssh_host_dsa_key
# etc/ssh/ssh_host_dsa_key.pub
# etc/ssh/ssh_host_key
# etc/ssh/ssh_host_key.pub
# etc/ssh/ssh_host_rsa_key
# etc/ssh/ssh_host_rsa_key.pub
# etc/emulab/client.pem
# etc/emulab/emulab.pem
# Note: root password will get installed by prepare
###############################################################################
......@@ -138,7 +161,6 @@ yum install tcsh
## Install the Emulab client stuff.
##
#
# ...
mkdir testbed-obj
../testbed/configure --with-TBDEFS=../testbed/defs-default
make client
......@@ -152,12 +174,75 @@ make client-install
# Done manually, compare your RPM list to Fedora8-rpm-list.txt using something
# like:
# cut -f1 < Fedora8-rpm-list.txt > Fedora8-rpm-names.txt
# rpm -qa --queryformat '%{NAME}\n' > mine.txt
# cut -f1 < Fedora8-rpm-list.txt | uniq > Fedora8-rpm-names.txt
# rpm -qa --queryformat '%{NAME}\n' | sort -u > mine.txt
# comm Fedora8-rpm-names.txt mine.txt
#
# For the 64 bit image, also remove most of the 32 bit libraries
# The file Fedora8-rpm-list.txt contains the arch as the third column
# grep for "i.86" to figure out which 32 bit libraries where kept.
#
# You may also find Fedora8-rpm-list-install.txt usefull. It is the rpm list
# after the initial install
# after the initial install for the 32 bit Fedora image.
#
# NOTE: used 'rpm -qa --queryformat '%{NAME}\t%{VERSION}\t%{ARCH}\n' | sort'
# to create Fedora8-rpm-list.txt
# ALSO NOTE: The set of packages on the 32 bit and 64 bit Fedora are the same
# except for a few extra 32 bit libraries on the 64 bit image, thus the package
# list Fedora8-rpm-list.txt is good to compare against for both versions.
###############################################################################
##
## Fine tune services
##
Enable the following and only the following services using "sudo ntsysv"
[*] acpid
[*] anacron
[ ] atd
[ ] autofs
[ ] avahi-daemon
[ ] bgpd
[ ] cpuspeed
[*] crond
[ ] cups
[ ] gated
[ ] gpm
[ ] ip6tables
[ ] iptables
[*] irqbalance
[ ] lm_sensors
[ ] mdmonitor
[*] messagebus
[ ] netconsole
[*] netfs
[ ] netplugd
[*] network
[ ] nfs
[*] nfslock
[*] ntpd
[ ] ospf6d
[ ] ospfd
[ ] psacct
[ ] racoon
[ ] rdisc
[ ] restorecond
[ ] ripd
[ ] ripngd
[*] rpcbind
[ ] rpcgssd
[*] rpcidmapd
[ ] rpcsvcgssd
[*] rsyslog
[ ] saslauthd
[*] sendmail
[ ] smartd
[*] sshd
[ ] udev-post
[ ] xfs
[ ] zebra
###############################################################################
......@@ -213,7 +298,7 @@ rpm -i /share/redhat/7.3/RPMS/gated-3.6-14.i386.rpm
## Install kernel
## ...
## /share/fedora/F8/src on ops.emulab.net
###############################################################################
......@@ -228,5 +313,5 @@ find /var/cache/man -type f | xargs rm
# Create an image via the web interface.
######
--- blacklist~ 2008-03-12 15:55:00.000000000 -0600
+++ blacklist 2008-02-20 19:00:10.000000000 -0700
@@ -34,3 +34,9 @@
# ISDN - see bugs 154799, 159068
blacklist hisax
blacklist hisax_fcpcipnp
+
+# Emulab -- must prevent wireless drivers from loading on boot
+# so that dhclient doesn't try to bring up the control net on a wireless
+# device.
+blacklist ath5k
+blacklist ath_pci
# pc3000
alias scsi_hostadapter mptscsih
alias scsi_hostadapter1 mptctl
alias scsi_hostadapter2 mptspi
# everybody else
alias scsi_hostadapter3 ata_piix
It is possible to install Fedora over the serial line and without
physically using any CD or DVDs.
Download the files in "os/isolinux/" to a directory in /tftpboot. Now
fixup "serial.cfg". At the end of the file is my serial.cfg for
reference.
Figure out the mac address of the ethernet interface for the control
net and then add a symbolic link in /tftpboot/pxelinux.cfg to
serial.cfg. For example my link looks like this:
01-00-11-43-e4-96-40 -> ../fedora8-installer/serial.cfg
If you have not already, make sure there is no way your experient can
get swapped out accidentally or by emulab.
Now modify the nodes table so that the pxe_boot_path is
"/tftpboot/pxelinux.0", for example:
mysql> select node_id,pxe_boot_path from nodes where node_id='pc392';
+---------+----------------------+
| node_id | pxe_boot_path |
+---------+----------------------+
| pc392 | /tftpboot/pxelinux.0 |
+---------+----------------------+
1 row in set (0.00 sec)
Once modified run:
/usr/testbed/sbin/dhcpd_makeconf -ir
Now reboot the node, and you should be able to install Fedora via the
serial console.
Before rebooting you need to set "pxe_boot_path" to NULL and rerun
dhcpd_makeconf.
---
SERIAL 0 115200 0
#default vesamenu.c32
#prompt 1
timeout 600
display fedora8-installer/boot.msg
#F1 fedora8-installer/boot.msg
#F2 fedora8-installer/options.msg
#F3 fedora8-installer/general.msg
#F4 fedora8-installer/param.msg
#F5 fedora8-installer/rescue.msg
DEFAULT text
#menu background splash.jpg
#menu title Welcome to Fedora 8!
#menu color border 0 #ffffffff #00000000
#menu color sel 7 #ffffffff #ff000000
#menu color title 0 #ffffffff #00000000
#menu color tabmsg 0 #ffffffff #00000000
#menu color unsel 0 #ffffffff #00000000
#menu color hotsel 0 #ff000000 #ffffffff
#menu color hotkey 7 #ffffffff #ff000000
#label linux
# kernel fedora8-installer/vmlinuz
# append initrd=fedora8-installer/initrd.img console=tty0 console=ttyS0,115200 --
label text
# menu label Install or upgrade an existing system (^text mode)
kernel fedora8-installer/vmlinuz
append initrd=fedora8-installer/initrd.img text console=tty0 console=ttyS0,115200 --
label rescue
# menu label ^Rescue installed system
kernel fedora8-installer/vmlinuz
append initrd=fedora8-installer/initrd.img rescue console=tty0 console=ttyS0,115200 --
#label local
# menu label Boot from ^local drive
# localboot 0xffff
#label memtest86
# menu label ^Memory test
# kernel memtest
# append -
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment