MREPO: Yum/Apt repository kickstart installation via PXE GIUSEPPE PLATANIA INFN Catania I Corso di formazione INFN.

Slides:



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

Scientific Linux Network Installation Pete Gronbech: April 2005 RAL.
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.
PXE netboot installation of Linux/SuSE
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.
14.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Installation. Installation   There are three phases to building an LTSP server: – –Installing the LTSP utilities – –Installing the LTSP client packages.
Institute of Technology Sligo - Dept of Computing Cisco IOS & Router Config Semester 2V2 Chapter 7 Chapter 8.
Installation. Overview  Download files to make media or another bootable configuration.  Prepare system for installation.  Boot the computer and run.
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 softwares Sirak Kaewjamnong. 2 Software packets  When Linux developers create their software they typically bundle all the executable.
Linux Operations and Administration
Installing Windows Deployment Service
DHCP server & Client Objectives Contents
DHCP. DHCP (Dynamic Host Configuration Protocol) is a network service that enables clients to obtain network settings (IP Address, Subnet Mask, Default.
Installing and maintaining clusters of FreeBSD servers using PXE and Rsync Cor Bosman XS4ALL
Cisco IOS & Router Config Semester 2V2 Chapter 6.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Operating Systems Networking for Home and Small Businesses – Chapter 2 – Introduction To Networking.
DHC P Dynamic Host Configuration Protocol
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install.
COSC 4750 Customizing and maintenance. Installing software Redhat/Fedora (and linux in general) has a package installer, called rpm Many programs will.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
DHCP server & Client Objectives –to learn how to setup dhcp servers Contents –Download and Install The DHCP Package –The /etc/dhcpd.conf File –Upgrading.
Enabling Palacios PXE-Boot Chen Jin Bharath Pattabiraman Patrick Foley.
1 Introduction to the tutorial for site managers Antonio Fuentes Red.es/RedIRIS EGEE/EUMedGrid/EELA Tutorial for Managers Sevilla,
Links and LANs Link between two computers via cross cable The most simple way to connect two hosts is to link the two hosts with a cross cable.
Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install.
Scott Drucker, Systems Engineer Migrating to Microsoft Vista with WinINSTALL.
E-science grid facility for Europe and Latin America Setting up a YUM Repository Gianni M. Ricciardi – Consorzio COMETA Joint EELA-2/EGEE-III.
DHCP Mike O’Connor Eric Tallman Matt Yasiejko. Overview DHCP defined DHCP defined How it works How it works Installation Installation dhcpd.conf dhcpd.conf.
INFSO-RI Enabling Grids for E-sciencE Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
© 2008 Cisco Systems, Inc. All rights reserved.CIPT1 v6.0—1-1 Getting Started with Cisco Unified Communications Manager Installing and Upgrading Cisco.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Workstations.
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.
DHCP as server. What is Dynamic Host Configuration Protocol (DHCP)? Dynamic Host Configuration Protocol (DHCP) is network protocol for automatically assigning.
Linux Operations and Administration
EGEE-II INFSO-RI Enabling Grids for E-sciencE YAIM Overview MiMOS Grid tutorial HungChe, ASGC OPS Team.
Chapter 38 Initialization & Configuration. Bootstrapping occurs during boot up to obtain boot program which may then load operating system may use network.
CERN 19/06/2002 Kickstart file generator Andrea Chierici (INFN-CNAF) Enrico Ferro (INFN-LNL) Marco Serra (INFN-Roma)
Implementation of Embedded OS
2: Operating Systems Networking for Home & Small Business.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) 马兰馨 IHEP, CAS Setting Up a Repository.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
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.
1 Remote Installation Service Windows 2003 Server Prof. Abdul Hameed.
LinuxCOE (automatic deployment, patch management, retrofit) Mondorescue (Imaging creation and redeployment) metamrepo (conf creation) ISC DHCP serverhpa.
Automated installations
Overview of software tools for gLite installation & configuration
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
Computer System Laboratory
DHCP server & Client Objectives Contents
One-keystroke system installation and configuration
Diskless Remote Boot Linux
Lab 1 introduction, debrief
PXE+Kickstart.
OPNFV Arno Installation & Validation Walk-Through
Networking for Home and Small Businesses – Chapter 2
Cisco IOS & Router Config
Networking for Home and Small Businesses – Chapter 2
SUSE Linux Enterprise Desktop Administration
The EU DataGrid Fabric Management Services
Presentation transcript:

MREPO: Yum/Apt repository kickstart installation via PXE GIUSEPPE PLATANIA INFN Catania I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 Novembre 2007

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November Goals MREPO –Overview –Stucture –Usage Components –Httpd –Tftpd –Dhcpd Installation Configuration Kickstart and PXE –Configuration of a kickstart file –Ig-bootselect

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November OVERVIEW The mrepo-kickstart server is useful when you have a large number of computers to install. It installs a node via kickstart using the PXE technology and manage a local APT&YUM repository for OS and middleware The servers to configure are DHCPD,TFTPD and HTTPD

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November MREPO mrepo builds a local Apt/Yum RPM repository from local ISO files, downloaded updates and extra packages from RHN and 3rd party repositories. It can download all updates and extras automatically, creates the repository structure and meta-data, enables HTTP access to the repository and creates a directory- structure for remote network installations using PXE/TFTP. mrepo supports ftp, http, sftp, rsync, rhn and other download methods.

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November MREPO: structure /etc/mrepo.conf [main] srcdir = /var/mrepo wwwdir = /var/www/mrepo confdir = /etc/mrepo.conf.d metadata = apt yum repomd /etc/mrepo.conf.d/slc308.conf [slc308] name = Scientific Linux CERN (i386) arch = i386 os = updates = extras =

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November MREPO usage mrepo options: -c, --config=file specify alternative configfile -g, --generate generate mrepo repositories -q, --quiet minimal output -u, --update fetch OS updates -v, --verbose increase verbosity (only mrepo info) -vv, -vvv increase verbosity more --unmount unmount distributions Examples: mrepo –guvv mrepo –guvv slc308-i386

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November MREPO metadata support apt for apt cnc binary 'genbasedir' inside 'apt' package yum for yum < 2.4 binary 'yum-arch' inside 'yum' package repomd for apt >= lorg binary 'createrepo' inside 'createrepo‘ package and yum >= 2.4

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November APT-YUM Metadata Mrepo commands creates all metadata for apt and yum (if they are specified in mrepo.conf file) Examples: slc308-i386]# pwd /var/www/mrepo/slc308-i386 slc308-i386]# ls base HEADER.shtml README.shtml RPMS RPMS.all RPMS.extras RPMS.os RPMS.updates slc308-i386]# ls base/ pkgignore pkglist.extras.bz2 pkglist.os.bz2 pkglist.updates.bz2 pkgorder release release.extras release.os release.updates slc308-i386]# ls RPMS.os/repodata/ filelists.xml.gz other.xml.gz primary.xml.gz repomd.xml

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November COMPONENTS The main server components required are: A DHCP server to provide network information about the nodes that will be installed; A TFTP server to provide the required files during the first phase of OS installation process; The pxelinux bootloader to select the installation type via PXE; Two files containing the initial kernel and ramdisk image; A kickstart file describing all the parameters needed to perform the OS installation; A web server containing the local repository of the operating system and all software needed.

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November INSTALLATION Install Scientific Linux (CERN) 4.X Install mrepo from: – 1.el4.rf.noarch.rpm –Comment the line 702,703,704,705 in /usr/bin/mrepo Ensure that createrepo tool is installed on your system install the latest version of ig-installserver from: – create these directories: – cd /tftpboot/ – mkdir slc308-i386

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November SERVER CONFIGURATION ig-installserver provides: /etc/dhcpd.conf.example : ISC dhcpd 3.0 configuration example; /tftpboot/pxelinux.cfg/*.cfg : pxelinux configuration files; /usr/sbin/ig-bootselect : interactive tool to select the boot type; /var/www/cgi-bin/install_ack.cgi : CGI script to receive ack for end of installation; /var/www/cgi-bin/set_static_ip.cgi : CGI script to provide kickstart files with static IP configuration; /var/www/html/install/ks/*.ks : kickstart file examples.

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November DHCP CONFIGURATION /etc/dhcpd.conf example: option domain-name "YOUR_DOMAIN"; option domain-name-servers YOUR_DNS_SERVERS; not authoritative; ddns-update-style none; ignore unknown-clients; allow bootp; allow booting; subnet YOUR_SUBNET netmask YOUR_NETMASK { filename "pxelinux.0"; option routers YOUR_GATEWAY; option ntp-servers YOUR_NTP_SERVERS; host training150d { hardware ethernet 00:30:48:1A:00:00; fixed-address ; } /sbin/chkconfig dhcpd on /sbin/service dhcpd restart

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November TFTP SERVER CONFIGURATION The client, after the network configuration is provided by DHCP, needs to retrieve the bootable kernel and ramdisk Image. These files are uploaded using the TFTP protocol. /etc/xinetd.d/tftp Make sure that the directive "disable" is "no" and verify that the root directory of the tftp server is /tftpboot. This directory is very important since it contains the files transferred to the client during the PXE boot process. Once the tftp daemon is configured it can be accessed via xinetd with: /sbin/chkconfig xinetd on /sbin/service xinetd restart

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November OS LOADER The bootloader used by the PXE installation is pxelinux.0; it is provided by the syslinux package: syslinux-.rpm Copy the loader pxelinux.0 in /tftpboot: cp /usr/lib/syslinux/pxelinux.0 /tftpboot/ chmod 644 /tftpboot/pxelinux.0

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November OS INSTALLATION The kernel and the initrd have to be available via TFTP to start the installation via network. Create the directory for kernel and initrd and download them from the OS distribution mirror: cd /tftpboot/slc308-i386 wget wget chmod 644 vmlinuz initrd.img mrepo -guvv cd /var/www/html/install ln -s /var/www/mrepo/slc308-i386/ SL This is required by the OS installer (Anaconda), it needs to find the base directory inside the SL

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November OS INSTALLATION Also the base directory is already present, but some more files are needed for the network boot and installation sequence. These files can be manually downloaded from the OS repository (for example the one mirrored with YAM) and are: –comps.xml –pkgorder –hdlist –hdlist2 –*.img To download them: cd /var/www/html/rep/slc308-i386/base wget -l1 -nd -c -r -R '*.html,*.gif'

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November HTTP CONFIGURATION It will be used to: distribuite OS and middleware packages via APT kickstart files provide the kickstart file adapted with the information about static IP address that has to be set on the currently installed machine receive the notification of the installation finished, necessary to automatically set the right pxelinux configuration file and avoid an OS reinstallation /sbin/chkconfig httpd on /sbin/service httpd restart

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November KICKSTART FILE The kickstart file contains all the information about the packages to be installed, the partitions to be prepared on the disks, the hardware settings, the network settings, etc.. An example is installed by ig-installserver under /var/www/html/install/ks/ You can set two possible network configurations: Dynamic: network -device eth0 -bootproto dhcp Static: network -device eth0 -bootproto static –ip \ -netmask -gateway \ -nameserver, In the %partition section the disks are prepared. The %package section contains information about the software to be installed. In the %post section some additional custom commands can be specified.

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November PXELINUX FILE pxelinux.0 will be executed and it will try to download a configuration file. An example of configuration file (/tftpboot/pxelinux.cfg/node-infngs-slc308.cfg): default linux label linux kernel slc308-i386/vmlinuz append \ ksdevice=eth0 ip=dhcp initrd=slc308-i386/initrd.img \ ks= /install/ks/node-infngs-slc308.ks

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November CONFIGURATION CHECK LIST /etc/dhcpd.conf: configuration file of DHCP server; /etc/xinetd.d/tftp: configuration file of TFTP server; /tftpboot/pxelinux.0: PXE bootloader; /tftpboot/slc308-i386/vmlinuz: kernel loaded during OS installation; /tftpboot/slc308-i386/initrd.img: initial ramdisk loaded during OS installation; /tftpboot/pxelinux.cfg/node-infngs-slc308.cfg: bootloader configuration files; /tftpboot/pxelinux.cfg/XXXXXXXX: symlinks to a bootloader configuration files (see final step); /var/www/html/install/ks/node-infngs-slc308.ks: kickstart file;

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November NODE INSTALLATION (checklist) Ensure in the BIOS that the boot sequence starts with the network card (PXE); Verify that it is correctly registered in the DNS; Verify that its MAC address is present in dhcpd.conf; if necessary restart the DHCP server to reload the new configuration (if you choose static network configuration this is needed only for installation); Check the customizations in node-infngs-slc308-.cfg: in this file you choose which kickstart file will be used Please note that if your rename or create a new copy of the kickstart file, the new name has to be written in a corresponding.cfg pxelinux configuration file.

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November NODE INSTALLATION You have to run /usr/sbin/ig-bootselect: to provide one (or more) hostname to add. In case of errors check if your domain is present in /etc/resolv.conf; to change the pxelinux configuration to use. The symlink from the chosen configuration to the IP address in hex format will be created.

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November IG-BOOTSELECT Kickstart file selected Hard disk boot

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November IG-BOOTSELECT

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November IG-BOOTSELECT Insert the hostname of the node(s) to install

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November WARNING! Because installation process will download all RPMS from the url: /install/SL/RPMS/xxxxx.rpm and mrepo crates by default a dir named RPMS.all, you have to create a symlink in your distribution path: cd /var/www/mrepo/slc308-i386/ ln -s RPMS.all RPMS

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November USEFUL LINKS MREPO home page: YAM (old version of MREPO) server installation guide:

I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November