© 2007 IBM Corporation 9/26/2016 Automated Generation of Kickstart Files IBM.

Slides:



Advertisements
Similar presentations
MODULE 3: OS & APP LAYERS. Agenda Preparing and importing a gold image Creating and understanding Install Machines Creating basic Application layers Understanding.
Advertisements

Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Linux+ Guide to Linux Certification, Second Edition
ITE PC v4.0 Chapter 1 1 Operating Systems Computer Networks– 2.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Web Server Administration Chapter 3 Installing the Server.
Lesson 21– INSTALLING LINUX IN A SERVER CONFIGURATION.
Linux+ Guide to Linux Certification, Second Edition Chapter 7 Advanced Installation.
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
Installing software on personal computer
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Automating Linux Installations at CERN G. Cancio, L. Cons, P. Defert, M. Olive, I. Reguero, C. Rossi IT/PDP, CERN presented by G. Cancio.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Condor Project Computer Sciences Department University of Wisconsin-Madison Virtual Machines in Condor.
Downloading & Installing Software Chapter 13. Maintaining the System Yum Pirut BitTiorrent Rpm Keeping Software Up To Date Up2date Red Hat Network Wget.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
1 Web Server Administration Chapter 3 Installing the Server.
Operating Systems Networking for Home and Small Businesses – Chapter 2 – Introduction To Networking.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
1 Web Server Administration Chapter 3 Installing the Server.
Business Unit or Product Name © 2007 IBM Corporation Introduction of Autotest Qing Lin.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
By Rashid Khan Lesson 10-From Here to There: Remote Installation of the Windows XP Professional Client.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Chapter 2: Installation Overview Part 1. Installing Fedora/RHEL is the process of copying operating system files from media to the local system and setting.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 6 System Calls OS System.
INFSO-RI Enabling Grids for E-sciencE Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
Kickstart Installation
Chap 3 Installation. Kickstart Kickstart is Red Hat’s program that completely or partially automates the same installation and post-installation on one.
Managing SX.e and TWL with scripts and MARC 02/12/04 Jeremiah Curtis.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Workstations.
Page 1 Printing & Terminal Services Lecture 8 Hassan Shuja 11/16/2004.
Microsoft Windows XP Professional MCSE Exam
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
CCNA1 v3 Module 1 v3 CCNA 1 Module 1 JEOPARDY K. Martin.
CERN 19/06/2002 Kickstart file generator Andrea Chierici (INFN-CNAF) Enrico Ferro (INFN-LNL) Marco Serra (INFN-Roma)
2: Operating Systems Networking for Home & Small Business.
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
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.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
© 2007 IBM Corporation 9/29/2016 Automated Generation of Kickstart Files IBM.
BY: SALMAN 1.
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
Guide to Linux Installation and Administration, 2e
BY: SALMAN.
The Architecture of oVirt Node
Installing OS.
LINUX ADMINISTRATION
The Linux Operating System
One-keystroke system installation and configuration
Introduction To Networking
Networking for Home and Small Businesses – Chapter 2
IS3440 Linux Security Unit 9 Linux System Logging and Monitoring
Chapter 2: System Structures
OPS235: Week 1 Installing Linux ( Lab1: Investigations 1-4)
OPS235: Lab 2 Virtual Machines – Part I
Linux+ Guide to Linux Certification, Third Edition
OPS235: Week 1 Installing Linux ( Lab1: Investigations 1-4)
Networking for Home and Small Businesses – Chapter 2
SUSE Linux Enterprise Desktop Administration
Operating Systems Networking for Home and Small Businesses – Chapter 2 – Introduction To Networking.
Section 1: Linux Basics and SLES9 Installation
Linux+ Guide to Linux Certification, Second Edition
Presentation transcript:

© 2007 IBM Corporation 9/26/2016 Automated Generation of Kickstart Files IBM

© 2007 IBM Corporation 29/26/2016 What is a Kickstart file?  Anaconda is the Red Hat installer used for Fedora and Red Hat Enterprise Linux  Kickstart files are a method of automating Anaconda installs  Written to '/root/anaconda-ks.cfg' on each Anaconda install  Primarily a method for providing automated responses to questions asked by the installer

© 2007 IBM Corporation 39/26/2016 Why automate the generation of kickstart files?  Configuration based on actual system resources – Make programatic decisions based on characteristics of target system  Logging of hardware and of OS installs – Each installation can be logged such that a central server can track hardware configurations and installed OS level  Maintenance – Many different systems and many different OS levels  Less error prone – Editing of files by hand is error prone

© 2007 IBM Corporation 49/26/2016 Example Kickstart File install nfs --server=nfs.example.com --dir=/export/installs/f8/i386/os lang en_US.UTF-8 keyboard us xconfig --startxonboot network --device eth0 --bootproto dhcp rootpw my1pass2 firewall --disabled authconfig --enableshadow --passalgo=sha512 selinux --enforcing timezone --utc America/New_York bootloader --location=mbr --driveorder=sda,sdb --append="rhgb quiet" clearpart --all --drives=sda,sdb part / --fstype ext3 --size=1 --grow part swap --recommended vnc-server -cvs -pidgin

© 2007 IBM Corporation 59/26/2016 Simple Kickstart Example Flow

© 2007 IBM Corporation 69/26/2016 Flow of kickstart installation  Bootloader runs  User optionally adds parameters to kernel command line including – 'ks=  Anaconda configures network devices in preparation for loading kickstart file  Anaconda downloads ks file, reads the 'install' portion for where to find the installation and does the install

© 2007 IBM Corporation 79/26/2016 Modified Kickstart Flow

© 2007 IBM Corporation 89/26/2016 Modified flow of kickstart installation  Bootloader runs  User optionally adds parameters to kernel command line including – 'ks= –Extended parameters available (read by server)  Anaconda configures network devices in preparation for loading kickstart file  Anaconda downloads stage1 kickstart file with 'install' command and %pre script, %include directive but little else

© 2007 IBM Corporation 99/26/2016 Modified flow of kickstart installation [continued]  Anaconda reads 'install' and locates second portion of installation.  %pre section is executed, information collected, and handed back to server.  Server creates customized output based on information collected and command line arguments  %pre script saves dynamic output to stage2 file. The %include directive is read and stage 2 file included  Anaconda continues on with install

© 2007 IBM Corporation 109/26/2016 Extended command line arguments  Extended command line arguments prefixed with 'x'  auto: default=1. Perform automatic installation. If set to '0', normal attended installation proceeds  disks: comma separated list of which drives to make use of in install  nics: comma separated list of which network interfaces to configure in install  raid: default=auto. Turn on or off use of raid. 'auto' is use raid if > 1 drive.  zerombr: default=1. Determines if zerombr command should be run

© 2007 IBM Corporation 119/26/2016 Improvements / TODO  Implement logging hardware and last-installed OS in each system – Ideally store a static kickstart file for each installation for reproducibility  Allow for per-system server side overrides by hostname/IP or by MAC.  Use Fedora mirrors if no nfs mount available  Get fedora to pass some bit of info in the http client of anaconda that can be used to identify build to install

© 2007 IBM Corporation 129/26/2016 Stage1 kickstart file install lang en_US.UTF-8 nfs --server=nfs.example.com --dir /export/install/F8/i386/os %include /tmp/install-stage2 %pre #!/bin/sh # this is a shell script that collects # info on running system, uses wget to pass # that data back and request custom # stage2 file, saving output # see wget "${STAGE2}" -O /tmp/install-stage2 %end

© 2007 IBM Corporation 139/26/2016 Resources  More Info on 'auto-ks' –  Source Code –  Related Projects – xmlhost2conf : – pykickstart: