Scientific Linux Network Installation Pete Gronbech: April 2005 RAL.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
1 A B C
Software Version: DSS ver up01
1. XP 2 * The Web is a collection of files that reside on computers, called Web servers. * Web servers are connected to each other through the Internet.
Rapidly Provisioning Linux in a Dynamic Datacenter
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Installation & management of SUSE.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Installation & management of SUSE.
© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod3_L7 1 Network Security 2 Module 6 – Configure Remote Access VPN.
1
E. Ferro, CNAF, aprile LCFG: testbed upgrade Enrico Ferro INFN-LNL.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Network Layer: Address Mapping, Error Reporting, and Multicasting
David Burdett May 11, 2004 Package Binding for WS CDL.
Custom Services and Training Provider Details Chapter 4.
CALENDAR.
1 Linux IP Masquerading Brian Vargyas XNet Information Systems.
0 - 0.
Addition Facts
2.11.
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
The 5S numbers game..
© Tally Solutions Pvt. Ltd. All Rights Reserved Shoper 9 License Management December 09.
Everything.
Version 1.0 digitaloffice.intel.com Intel ® vPro Technology Intel ® Active Management Technology Setup and Configuration HP Laptop – Compaq 6910p Small.
Break Time Remaining 10:00.
The basics for simulations
PP Test Review Sections 6-1 to 6-6
IP Multicast Information management 2 Groep T Leuven – Information department 2/14 Agenda •Why IP Multicast ? •Multicast fundamentals •Intradomain.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
We are learning how to read the 24 hour clock
Biology 2 Plant Kingdom Identification Test Review.
Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Before Between After.
Addition 1’s to 20.
25 seconds left…...
: 3 00.
5 minutes.
Week 1.
One-Degree Imager (ODI), WIYN Observatory What’s REALLY New in SolidWorks 2010 Richard Doyle, User Community Manager inspiration.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Clock will move after 1 minute
Bottoms Up Factoring. Start with the X-box 3-9 Product Sum
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
Select a time to count down from the clock above
Copyright Tim Morris/St Stephen's School
1.step PMIT start + initial project data input Concept Concept.
Outlook 2013 Web App (OWA) User Guide Durham Technical Community College.
Index 1. NOS upgrade with NOS
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
1 CMPT 471 Networking II DHCP © Janice Regan,
Enabling Palacios PXE-Boot Chen Jin Bharath Pattabiraman Patrick Foley.
INFSO-RI Enabling Grids for E-sciencE Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
Southgrid Technical Meeting Pete Gronbech: February 2005 Birmingham.
C. Aiftimiei, E. Ferro / January LCFGng server installation Cristina Aiftimiei, Enrico Ferro INFN-LNL.
Sample DNS configurations. Example 1: Master 'master' DNS and is authoritative for this zone for example.com provides 'caching' services for all other.
Chapter 38 Initialization & Configuration. Bootstrapping occurs during boot up to obtain boot program which may then load operating system may use network.
Juan Ortega 10/7/09 NTW342. Setting up the Configuration File ddns-update-style interim; Ignore client-updates; Subnet netmask
MREPO: Yum/Apt repository kickstart installation via PXE GIUSEPPE PLATANIA INFN Catania I Corso di formazione INFN.
PXEBOOT. What is PXEBOOT. The Preboot Execution Environment (PXE) is a service, Establish client/server communication and it will install the OS to the.
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.
DHCP server & Client Objectives Contents
One-keystroke system installation and configuration
Diskless Remote Boot Linux
PXE+Kickstart.
Presentation transcript:

Scientific Linux Network Installation Pete Gronbech: April 2005 RAL

dhcpd.conf # /etc/dhcpd.conf.ngexample - a DHCP daemon configuration file example # for dhcpd 2.0 # distribute an IP address only if the nodes is known deny unknown-clients; # the server will not reply to the unknown clients; in this way # it is possible to have a second DHCP server not authoritative; option domain-name "physics.ox.ac.uk"; # These 3 lines are needed for the installation via PXE option dhcp-class-identifier "PXEClient"; option vendor-encapsulated-options 01:04:00:00:00:00:ff; filename "pxelinux.0"; subnet netmask { option routers ; option domain-name-servers ; host t2slwn01 { hardware ethernet 00:30:48:72:F3:61; fixed-address ; next-server ; }

/tftpboot/pxelinux.cfg pxelinux.cfg]# ls –la /tftpboot/pxelinux.cfg lrwxrwxrwx 1 root root 31 Feb 15 12:47 A30105EC -> hosts/t2slwn01.physics.ox.ac.uk lrwxrwxrwx 1 root root 11 Dec 8 17:09 A30105ECold -> sl-kick.cfg lrwxrwxrwx 1 root root 31 Feb 15 12:47 A30105ED -> hosts/t2slwn02.physics.ox.ac.uk lrwxrwxrwx 1 root root 11 Dec 10 14:41 A30105EDold -> sl-kick.cfg lrwxrwxrwx 1 root root 31 Feb 15 13:43 A30105EE -> hosts/t2slwn03.physics.ox.ac.uk -rwxr-xr-x 1 root root 414 Feb 15 12:45 ack.cgi -rw-r--r-- 1 apache apache 631 Jul boot-hd.cfg -rwxr-xr-x 1 root root 1140 Feb 15 12:47 create-hash-links.pl lrwxrwxrwx 1 apache apache 11 May default -> boot-hd.cfg drwxr-xr-x 2 apache apache 4096 Feb 21 15:59 hosts -rw-r--r-- 1 apache apache 194 Oct lcfg-install-62.cfg -rw-r--r-- 1 apache apache 238 May lcfg-install cfg -rw-r--r-- 1 apache apache 218 May lcfg-install-73.cfg -rw-r--r-- 1 apache apache 209 Oct lcfg-install-nointeract-62.cfg -rw-r--r-- 1 apache apache 253 May lcfg-install-nointeract cfg -rw-r--r-- 1 apache apache 233 May lcfg-install-nointeract-73.cfg -rw-r--r-- 1 root root 277 May lcfg-install-nointeract-bigkernel-73.cfg -rw-r--r-- 1 root root 279 May lcfg-install-nointeract-custom-73.cfg -rwxr-xr-x 1 root root 182 Feb 15 12:45 Makefile drwxr-xr-x 2 root root 4096 Feb 15 12:52 oldlinks -rw-r--r-- 1 root root 758 Dec 9 17:00 sl-kick.cfg -rwxr-xr-x 1 root root 1063 Feb 15 12:45 swing

boot_hd.cfg pxelinux.cfg]# cat boot-hd.cfg default local # This is the default pxelinux cfg file # It by default drops onto the harddisk but otherwise # various rescure and diagnostic utilities can be used. default local prompt 1 # timeout after 6 seconds. (1/10s of seconds) timeout 60 # Pop up a small menu, this should be changed to correspond to # the options below. display messages/boot-hd.msg label local localboot 0 label memtest+ kernel memdisk append initrd=diagnostics/memtestp-1.15.img label cpuburn kernel memdisk append initrd=diagnostics/cpuburn-1.00.img label nuke kernel memdisk append initrd=diagnostics/book-and-nuke.img

sl-kick.cfg pxelinux.cfg]# cat sl-kick.cfg # This is the default pxelinux cfg file # It by default drops onto the harddisk but otherwise # various rescure and diagnostic utilities can be used. default kickstart prompt 1 # timeout after 6 seconds. (1/10s of seconds) timeout 60 # Pop up a small menu, this should be changed to correspond to # the options below. #display messages/boot-hd.msg label kickstart kernel SL/vmlinuz append initrd=SL/initrd.img keymap=uk devfs=nomount ramdisk_size=16384 ksdevice=link ks=nfs: :/opt/local/linux/SL303/ks/

hosts subdir link script pxelinux.cfg]# cat Makefile # Make file to update all the hash to hostname links. # This should be run after the the dhcpd file is updated # or the DNS is changed. all: /usr/local/sbin/create-hash-links.pl pxelinux.cfg]# cat /usr/local/sbin/create-hash-links.pl #!/usr/bin/perl -w use strict ; use Socket ; my $dhcpd = " /etc/dhcpd.conf" ; my $tftp = "/tftpboot/pxelinux.cfg" ; ; open (DHCP,"<$dhcpd") or die "Could not open $dhcpd: $!\n" ; print "Collecting a list of ip address from $dhcpd\n" ; while ( ) { if ( /\s*[^#]\s*fixed-address\s+(\S+)\s*;/ ) { my $fixed = $1 ; # Check if it is a host name and if so we must convert it to # ip address. if ( $fixed =~ m/^.*ox\.ac\.uk$/ ) { print "Converting hostname $fixed to ip address: " ; $fixed = inet_ntoa(inet_aton($fixed) ) or die "fixed= $fixed\n" ; print "$fixed\n" ; } ; } # Now set up the symlinks IF they are not already there. foreach my $ip ) { my $hexip = sprintf("%02X%02X%02X%02X",split('\.',$ip)) ; my $hostname = gethostbyaddr(inet_aton($ip), AF_INET) or die "No reverse look up for $ip\n" ; # Create a symlink from the hostname to default config. symlink('../boot- hd.cfg',$tftp.'/hosts/'.$hostname) unless ( -l $tftp.'/hosts/'.$hostname ) ; symlink('hosts/'.$hostname,$tftp.'/'.$hexip) ; } close (DHCP) ;

kickstart directory pxelinux.cfg]# cd /opt/local/linux/SL303/ SL303]# ls -la total 20 drwxr-xr-x 5 root root 4096 Dec 9 17:02. drwxr-xr-x 5 root root 4096 Nov 26 16:14.. drwxr-xr-x 3 root root 4096 Oct 1 00:14 images drwxr-xr-x 2 root root 4096 Feb 15 15:02 ks drwxr-xr-x 5 root root 4096 Oct 1 00:14 SL SL303]# cd ks ks]# ls -la total 16 drwxr-xr-x 2 root root 4096 Feb 15 15:02. drwxr-xr-x 5 root root 4096 Dec 9 17:02.. lrwxrwxrwx 1 root root 15 Dec 9 12: kickstart -> anaconda-ks.cfg lrwxrwxrwx 1 root root 15 Dec 10 14: kickstart -> anaconda-ks.cfg lrwxrwxrwx 1 root root 15 Dec 10 14: kickstart -> anaconda-ks.cfg lrwxrwxrwx 1 root root 14 Feb 14 16: kickstart -> SL-Clar-ks.cfg -rw-r--r-- 1 root root 1551 Feb 15 15:01 anaconda-ks.cfg -rw-r--r-- 1 root root 1567 Feb 15 14:10 SL-Clar-ks.cfg

kickstart file 1 ks]# cat anaconda-ks.cfg # Kickstart file automatically generated by anaconda. #network --device eth1 --bootproto dhcp reboot install lang en_US.UTF-8 langsupport --default en_US.UTF-8 en_US.UTF-8 keyboard uk mouse genericwheelps/2 --device psaux xconfig --card "ATI Mach64" --videoram hsync vsync resolution 1280x depth 24 --startxonboot --defaultdesktop gnome network --bootproto dhcp nfs --server dir /opt/local/linux/SL303/ rootpw --iscrypted encryptedpasswdhere firewall --disabled authconfig --enableshadow --enablemd5 timezone Europe/London bootloader --location=mbr

Kickstart file 2 # 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 zerombr yes clearpart --all part / --fstype "ext3" --size=6000 part /usr --fstype "ext3" --size=6000 part swap --size=2000 part /home --fstype "ext3" --size=100 --grow graphical-internet kernel kernel-module-openafs ELsmp kernel-smp pine grub gv %post # Change link on server to boot from hard disk wget -q t2lcfg.physics.ox.ac.uk/cgi-bin/ack.cgi more later….

ack.cgi ks]# more /var/www/cgi-bin/ack.cgi #!/usr/bin/perl use Socket ; # Configuration file to boot from HD $boothd = "../boot-hd.cfg"; print "Content-type: text/plain\n\n"; $point_address = $ENV{'REMOTE_ADDR'}; $hostname = gethostbyaddr(inet_aton($point_address), AF_INET) ; system ("cd /tftpboot/pxelinux.cfg/hosts ; ln -fs $boothd /tftpboot/pxelinux.cfg/hosts/$hostname"); print "$hostname is now configured to boot from $boothd\n";

Post Installation We want to perform updates and local customisations yum update has to be done after the first reboot so set up a one time /etc/rc.local which calls configuration modules then returns the original rc.local and reboots. yaim can be installed here and LCG software installed and configured SL can also be mirrored to speed up installations

Post Installation ### Write motd echo "Kickstart-installed Scientific Linux release 3 (FNAL SL 303) `/bin/date`" > /etc/motd # Create a post install init script to run once # Mount the kickstart directory from the server. mkdir /tmp/kick mount -o nolock,nfsvers=2 t2lcfg.physics.ox.ac.uk:/opt/local/linux/SL303 /tmp/kick mkdir /root/install-scripts cp /tmp/kick/modules/* /root/install-scripts umount /tmp/kick rmdir /tmp/kick

Post Installation cp /etc/rc.d/rc.local /etc/rc.d/rc.local.orig # Create a script to run at first reboot. cat /etc/rc.d/rc.local #!/bin/sh # One time script to run in two minutes /usr/bin/at "now + 1 minutes" & /dev/null MODULES="slyum yum-4-lcg java yaim ntpd local-admins root-admins nokudzu " # MODULES="slyum yaim yum-4-lcg lcg-install-wn lcg-setup-wn" # MODULES="denyAll syslog slyum network180 yumit ntpd sshd-ral root-admins" # MODULES="\\\$MODULES sendmail heartbeat local-admins gmond-lcg-others" # MODULES="\\\$MODULES nrpe yaim yum-4-lcg lcg-install-bdii lcg-setup-bdii" for M in \\\$MODULES do /bin/sh -x /root/install-scripts/\\\$M.sh >& /root/install-scripts/\\\$M.log done mv /etc/rc.d/rc.local /etc/rc.d/rc.local.onetime mv /etc/rc.d/rc.local.orig /etc/rc.d/rc.local /sbin/shutdown -r now EOFat touch /var/lock/subsys/local EOFrc

Configuration Modules slyum.sh #!/bin/sh # yumsl consider yum for SL and update it. cd /etc rm -f yum.conf wget /sbin/chkconfig yum off yum -d 1 -y update echo "Oxford PP Scientific Linux 3 standard yum update installed `date`" >> /etc/motd

Configuration Modules yum-4-lcg.sh #!/bin/sh # Set up the yum repostories for LCG. cat >/etc/yum.conf [oxfordserver] name=Oxford java baseurl= [sl-lcg] name=LCG packages baseurl= [sl-lcg-ca] name=LCG CA packages baseurl= EOF

Configuration Modules java.sh #!/bin/sh yum -y -d 0 -t install j2sdk

Configuration Modules root-admins.sh #!/bin/sh # We want to allow admins to login mkdir -p /root/.ssh chmod go-rwx,u+rwx /root/.ssh cat /root/.ssh/authorized_keys ssh-dss //gAAAIB8jRBMgcTjU………………………………………qDjt5rmnGLKcSjLwN XCDqSNbKTqOAEWJO2SVp4r7emo3QGBiiiSL9AuBnIscNbLI0oitAFZlFs 0fmZSlYu1AiJk/f2MShNA7PTNlbqLUeF4BkUTpO/GFjiTe/FEIlF3IaArj YGfhrBCS14uhhULtcyrHt3KX2qwMw== EOF

lcg installation lcg-install-wn #!/bin/sh # Install the packages for a UI node. # We should just install the lcg-WN package # I just install the packages that it requires. yum -t -d 0 -y install lcg-WN-torque yum -t -d 0 -y install lcg-CA

lcg installation lcg-setup-wn.sh #!/bin/sh # Do the buisness. /opt/lcg/yaim/scripts/configure_WN_torque /root/yaim-conf/site-info.def

GOC Wiki ministrationFaqhttp://goc.grid.sinica.edu.tw/gocwiki/Ad ministrationFaq –Using yum to install LCG –Mirror LCG Packages –Preserving host keys when using Kickstart

Credits This installation method is heavily based on work carried out at RAL by Chris Brew and Steve Traylen.