Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1

Slides:



Advertisements
Similar presentations
E. Ferro, CNAF, aprile LCFG: testbed upgrade Enrico Ferro INFN-LNL.
Advertisements

ITR3 lecture 7: more introduction to UNIX Thomas Krichel
Scientific Linux Network Installation Pete Gronbech: April 2005 RAL.
Chapter 9 Part III Linux File System Administration
LTSP By Hector Gonzalez. LTSP LTSP stands for Linux Terminal Server Project. LTSP is an package for Linux that allows you to connect lots of low-powered.
Sabah Salih The School of Physics & Astronomy The University of Manchester Manchester M13 9PL Scientific Linux?
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
Basic Unix system administration
Linux+ Guide to Linux Certification, Second Edition
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Web Server Administration Chapter 3 Installing the Server.
Lesson 5-Accessing Networks. Overview Introduction to Windows XP Professional. Introduction to Novell Client. Introduction to Red Hat Linux workstation.
MCITP: Microsoft Windows Vista Desktop Support - Enterprise Section 1: Prepare to Deploy.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Installation. Installation   There are three phases to building an LTSP server: – –Installing the LTSP utilities – –Installing the LTSP client packages.
Guide To UNIX Using Linux Third Edition
Overview Basic functions Features Installation: Windows host and Linux host.
Installing software on personal computer
Automating Linux Installations at CERN G. Cancio, L. Cons, P. Defert, M. Olive, I. Reguero, C. Rossi IT/PDP, CERN presented by G. Cancio.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
Installing Windows Vista Lesson 2. Skills Matrix Technology SkillObjective DomainObjective # Performing a Clean Installation Set up Windows Vista as the.
Linux Operations and Administration
NETW-240 Linux Installation Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Installing and maintaining clusters of FreeBSD servers using PXE and Rsync Cor Bosman XS4ALL
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Guide To UNIX Using Linux Fourth Edition
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
1 Web Server Administration Chapter 3 Installing the Server.
Configuration of Linux Terminal Server Group: LNS10A6 Thebe Laxmi, Sharma Prabhakar, Patrick Appiah.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Boot Diskettes, Bootable USB Keys and Live CDs Used when the computer can't start for some reason, as a diagnostic, repair and recovery tool. Boot diskettes.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
1 Web Server Administration Chapter 3 Installing the Server.
LING 408/508: Programming for Linguists Lecture 3 August 31 st.
Xen Virtualization Last Update Copyright 2011 Kenneth M. Chipps Ph.D.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
Managing Ensembles Nilesh M. Bhide. System Access Models The Stand-alone System –Beowulf system unattached to any external network The Universally Accessible.
W2K Server Installation It is very important that before you begin to install Windows 2000 Server, you must prepare for the installation by gathering specific.
O.S.C.A.R. Cluster Installation. O.S.C.A.R O.S.C.A.R. Open Source Cluster Application Resource Latest Version: 2.2 ( March, 2003 )
Chapter Two Exploring the UNIX File System and File Security.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Module 1: Installing Microsoft Windows XP Professional.
CIS Lesson 5 Lesson 5 New Skills Boot time GRUB edits (review) Changing BIOS boot order on a VM (review) Mounting CD ISO and floppy Image files on.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
Kickstart Installation
Installing Linux. Module 1 – Installing Linux ♦ Overview This module introduces you to the hardware and software terminology necessary to install a Linux.
RAL Site report John Gordon ITD October 1999
CHAPTER 2: BASIC OF OPEN SOURCE OPERATING SYSTEM Part 2 (Linux installation)
© 2008 Cisco Systems, Inc. All rights reserved.CIPT1 v6.0—1-1 Getting Started with Cisco Unified Communications Manager Installing and Upgrading Cisco.
C. Aiftimiei, E. Ferro / January LCFGng server installation Cristina Aiftimiei, Enrico Ferro INFN-LNL.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Linux Operations and Administration
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Installation. All Rights Reserved © Alcatel-Lucent | Installation Module Objectives  Installation  Startup and process monitoring  Uninstallation.
Operated by Los Alamos National Security, LLC for NNSA U N C L A S S I F I E D Slide 1 Institutional Install of Red Hat Enterprise Linux From One CD In.
Automated installations
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
DIT314 ~ Client Operating System & Administration
Installing VMware ESX and ESXi
Installation of MySQL Objectives Contents Practical Summary
Guide to Linux Installation and Administration, 2e
The Architecture of oVirt Node
Welcome to Linux Chap#1 Hanin Abdulrahman.
DHCP server & Client Objectives Contents
Machine Learning Workshop
Installing Linux Redhat:
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Presentation transcript:

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Kickstart K ickstart à la Red Hat 8.*

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Overview Why Kickstart? Creating a Kickstart Server Maintaining a Kickstart Server The Kickstart configuration file ks.cfg with examples Known Issues Other installation methods Kickstart resources

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Why Kickstart in LTHI/LTHC Various workstations for assistants, professors and visitors in offices and our lab -- all of them Linux-only delivered pre-installed Linux stations from Dell, Transtec Hardware differences: IDE or SCSI (but mostly  9 GB single-disk systems), different mice, graphics, sound cards The goal: create a Kickstart configuration that: is as generic as possible (one diskette for all stations) installs a computer that needs very little post-install handling AND is up-to-date on installation.

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Creating and Updating a Kickstart Server Server installation Hardware needs Services to be enabled Security: ?Firewall, /etc/hosts.allow|hosts.deny, /etc/exports DHCP configuration – can be served from any machine Kickstart NFS tree Creating NFS trees from CD ISO-images Patching/maintaining the kickstart NFS tree

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Disk Space for kickstart NFS tree (4x for up-2-date CDs): Fast network: 100 MB network Fast CPU for applying patches (5 minutes to update my 8.0 kickstart tree using a 1 Ghz CPU Dual P3, fast scsi and my not-so-efficient perl script :-) Server Installation: Hardware

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Services installed and enabled for a kickstart server Server Installation: Services (daemons)

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Server Security: libwrap ? Firewall ( /etc/sysconfig/iptables ) Probably not necessary for a server in the EPFL/Diode zone Maintain effective hosts.allow and hosts.deny files:

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Server Security: NFS Maintain an effective exports files

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 DHCP Configuration You do not need to run the DHCP server on the same machine as your kickstart server. You can configure DHCP so that it passes the kickstart server name and the path to the script (or a set of scripts for different clients) With a fully configured DHCP server and a detailed %post section in my kickstart configuration file I can use the same configuration file for all clients.

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 DHCP Configuration: /etc/dhcpd.conf

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Creating the Kickstart Tree Create a directory structure for the kickstart tree: Copy the iso images locally, loopback mount them, and copy the files to your kickstart tree. This example is for RH 7.3:

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Installing genhdlist to Allow Patching For each new major version of RH you must extract the genhdlist tool from the anaconda runtime RPM for that version. You can install the RPM and then copy it into /ks/bin/ OR you can extract it with rpm2cpio:

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Patching the Server Edit my perl script and set the $work and $genh variables to the right paths for your server. The example script has them set respectively to /ks/$v/ and /ks/bin/genhdlist-$v where '$v' is the version number taken as a command-line argument. To run the script, put it into your working directory, and do (for example): # /ks/bin/u2d where 8.0 is the Red Hat version number

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Kickstarting a Client To kickstart a client you will need a network boot diskette with a kickstart configuration file (ks.cfg) Creating the diskette, found on the 1 st CD image: $ dd if=/ks/8.0/images/bootnet.img of=/dev/fd0 $ mcopy /ks/path-to/ks.cfg.generic a:ks.cfg Now install a client: boot from floppy and at the install interface enter: linux ks=floppy NFS instead: linux ks=nfs:myserver.epfl.ch:/ks/path-to/ks.cfg

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Aids for Creating a Kickstart Config. File When you install any redhat machine you will find a kickstart configurtion file (which is very specific to that machine) called /root/anaconda-ks.cfg You can also run the graphical kickstart tool to generate sample kickstart files. The tool is called /usr/sbin/redhat-config-kickstart and is typically installed during a normal installation. It can be accessed under the 'System Tools' menus. A kickstart configuration is a simple text file with maximally 4 sections.

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Kickstart File Sections 1.Controls section -manditory, first, has no % marker lists commands that anaconda should follow during the install 2.%packages -manditory for installs, not used with upgrades lists the packages to be installed and/or ignored 3.%pre – optional 4.%post - optional an optional set of instructions to run pre/post installation default is shell based – but can use other interpreters: perl, python

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 A Simple ks.cfg File: part 1

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 A Simple ks.cfg File: part 2

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example LTH ks.cfg File – overview

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example ks.cfg File – %packages

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 LTH Disk Partitioning I am very fussy about disk partitioning. On all my clients I want exact disk partitioning. There are many options for disk partitioning, but none that makes me happy. My goal is to have a partition table that looks exactly as I wish -- like this:

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example ks.cfg File – %pre section %pre #!/bin/sh #debug commented out: cat /proc/partitions hd="/dev/hda" short="hda" mymedia="" for f in /proc/ide/h* ; do mymedia=`cat $f/media` if [ $mymedia == "disk" ] ; then hd=`basename $f` break; fi done if [ $mymedia != "disk" ] ; then if [ -d /proc/scsi ] ; then hd="/dev/sda" short="sda" else echo "unknown disk scheme. Exitting.." exit 1 fi

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example ks.cfg File – %pre section 2 mknod $hd echo "DEBUG: disk will be $hd" sleep 20 echo | fdisk $hd <<EOF o w EOF sleep 1 echo | fdisk $hd <<EOF n p 1 +30M n p M w EOF

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example ks.cfg File – %pre section 3

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example ks.cfg File – %post 1

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example ks.cfg File – %post 2

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Example ks.cfg File – %post 3

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Known Issues/Problems After the install, I run an 'rsync' script to do the final synchronization of the machine (eg: /etc/profile, printers, plugin links). I will try to build this into my kickstart scripts, so that the machine is 'ready-to-go' problems: restores of machines previous ssh key; some hardware issues that I would like to automate (sound). always read the release notes carefully for every release! with major upgrades (eg: 7 -> 8) keep a list of needed packages/software to check if they are still there in the new release.

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Other Installation Methods Rembo (Commercial) EPFL site license SystemImager (GPL) ?

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1 Kickstart resources Kickstart follow link for 'Configuration Guide' Kickstart mailing list and mailing list archives Kickstart How-to (Linux Documentation Project) Kickstart sites found with Google... example: