Tags:
create new tag
, view all tags

Network instalation

Network card with PXE

DHCP server

subnet 129.132.202.0 netmask 255.255.255.128 {

        option broadcast-address 129.132.202.255;
        option routers 129.132.202.1;
        option subnet-mask 255.255.255.128;

        group {

                filename "ebi/dev/pxelinux.0";
                
                host babysnakes {
                        hardware ethernet 00:50:56:a5:2d:0a;
                        fixed-address 129.132.202.4;
                        option option-132 "babysnakes";
                }

        }

}

TFTP server

Use /install/bd/hosts/hst-tst-1 as example.

label redhat-5-U3-i386-as
  menu label [^3] 5-U3-i386-as
  kernel ../RedHat/5-U3-i386-as/vmlinuz
  append nofb ip=dhcp ksdevice=eth0 initrd=../RedHat/5-U3-i386-as/initrd.img ks=http://129.132.65.12/ks/redhat.5

HTTP server

  • Kickstart file
  • RedHat source

Kickstart file

# Kickstart file automatically generated by anaconda.
#
# https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html
#

url --url http://129.132.65.12/redhat/5-U3-i386-as

install
key --skip
reboot

lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard sg
network --device=eth0 --bootproto=static --ip=129.132.202.4 --netmask=255.255.255.128 --gateway=129.132.202.1 --nameserver=129.132.98.12,129.132.250.2 --hostname=babysnakes.ethz.ch --noipv6
# network --device=eth0 --bootproto=dhcp
skipx
rootpw --iscrypted $1$nILzQnUB$0Wpu3PqD8BJ/FuZzoIMmy.
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled
timezone Europe/Zurich

bootloader --location=mbr --driveorder=sda,sdb --append="notsc"

# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work

clearpart --all --drives=sda,sdb

part /boot --fstype ext3 --size=100 --ondisk=sda

part pv.3 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.3
logvol / --fstype ext3 --name=LogVol0000 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol0001 --vgname=VolGroup00 --size=1024 --grow --maxsize=4096

part pv.4 --size=0 --grow --ondisk=sdb
volgroup VolGroup01 --pesize=32768 pv.4
logvol /local --fstype ext3 --name=LogVol0100 --vgname=VolGroup01 --size=1024 --grow

%packages

@base
@base-x
...

%pre
(
  [ -d /mnt/bd ] || mkdir /mnt/bd
  mount -o nolock 129.132.65.12:/afs/ethz.ch/groups/id/bd /mnt/bd

  [ -x /mnt/bd/hosts/babysnakes/redhat.5.pre ] && /mnt/bd/hosts/babysnakes/redhat.5.pre babysnakes 129.132.65.12

  umount /mnt/bd
) > /tmp/ks-pre.log 2>&1

%post --nochroot
(
  [ -f /tmp/ks-pre.log ] && cp /tmp/ks-pre.log /mnt/sysimage/root/.
  [ -f /tmp/ks.cfg ] && cp /tmp/ks.cfg /mnt/sysimage/root/.
  [ -d /tmp/oldconf ] && cp -pr /tmp/oldconf/* /mnt/sysimage/
) > /mnt/sysimage/root/ks-post.log 2>&1

%post
(
  echo Running post installation script

  [ -d /mnt/bd ] || mkdir /mnt/bd
  mount -o nolock 129.132.65.12:/afs/ethz.ch/groups/id/bd /mnt/bd

  [ -x /mnt/bd/hosts/babysnakes/redhat.5.post ] && /mnt/bd/hosts/babysnakes/redhat.5.post babysnakes 129.132.65.12

  umount /mnt/bd
) >> /root/ks-post.log 2>&1

NFS server

  • Installation scripts
  • Files

RedHat satellite

  • RedHat updates

-- PeterBircher - 2010-06-09

Topic revision: r3 - 2010-06-24 - bgiger
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback