INFSO-RI-508833 Enabling Grids for E-sciencE www.eu-egee.org Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,

Slides:



Advertisements
Similar presentations
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Advertisements

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.
Installing software on personal computer
Cisco Confidential 1 © 2011 Cisco and/or its affiliates. All rights reserved.
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.
PacNOG 6: Nadi, Fiji Installing Ubuntu Server 9.04 Hervey Allen Network Startup Resource Center.
Linux Operations and Administration
Ch 8-3 Working with domains and Active Directory.
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.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Installing and maintaining clusters of FreeBSD servers using PXE and Rsync Cor Bosman XS4ALL
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
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.
1999 Cabletron Systems. Wireless Networking RoamAbout RoamAbout Installation Installation/Configuration of: Network adapter card on a: Windows 95 system.
Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.
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.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol.
E-infrastructure shared between Europe and Latin America Introduction to the tutorial for site managers Vanessa Hamar Universidad de Los.
© 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.
INFSO-RI Enabling Grids for E-sciencE User Interface (UI) Installation Giuseppe La Rocca INFN Catania - Italy First Latin American.
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.
12th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin.
Implementation of Embedded OS
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
MREPO: Yum/Apt repository kickstart installation via PXE GIUSEPPE PLATANIA INFN Catania I Corso di formazione INFN.
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.
INFSO-RI Enabling Grids for E-sciencE Worker Node installation & configuration Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
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.
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
PXE+Kickstart.
Networking for Home and Small Businesses – Chapter 2
Networking for Home and Small Businesses – Chapter 2
SUSE Linux Enterprise Desktop Administration
Quattor Advanced Tutorial, LAL
Lecture9: Embedded Network Operating System: cisco IOS
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

INFSO-RI Enabling Grids for E-sciencE Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, OVERVIEW The APT-Kickstart server is useful when you have a large number of computers to install. It install a node via kickstart using the PXE technology and manage a local APT repository for OS and middleware The services to configure are a DHCP server, a TFTP server and a HTTP server

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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.

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, Virtual Machine setup Run the GILDA_APT virtual machine on your PC Set ip address and hostname on your machine following this schema: – apt-kick151d.healthgrid.org --> – – apt-kick161d.healthgrid.org --> reboot

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, INSTALLATION install the latest version of ig-installserver and ig-yam create these directories: – cd /tftpboot/ – mkdir slc306-i386 – cd /var/rep – mkdir -p slc306-i386/localrpms/ download java and put it under slc306-i386/localrpms

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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. /var/www/html/install/ks/node-generic-slc304-static.ks : kickstart file example for node with one network interface;

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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/slc306-i386 (created by ig-installserver) wget wget chmod 644 vmlinuz initrd.img cd /var/www/html/rep/slc306-i386/base wget -l1 -nd -c -r -R '*.html,*.gif‘ \ cd /var/www/html/install ln -s /var/www/html/rep/slc306-i386/ SL This is required by the OS installer (Anaconda), it needs to find the base directory inside the SL

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, YAM The package ig-yam provides a slightly customized version of YAM ( YAM is a tool which allows to maintain a local mirror of one or more apt rpm repositories. YAM configuration is managed by /etc/yam.conf. It contains a "main" section, in which the path to the local archive, together with the web server root, and one or more "repository" sections for each mirrored object.

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, /etc/yam.conf (1/2) [main] srcdir = /var/rep wwwdir = /var/www/html/rep createrepo = no apt = yes yum = no [slc306] name = Scientific Linux CERN (i386) arch = i386 os = updates = extras =

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, /etc/yam.conf (2/2) [glite_sl3] name = gLite middleware (i386) arch = i386 security = 3_0_0 = 3_0_0_externals = 3_0_0_updates = [ig_sl3] name = INFN-GRID middleware (i386) arch = i386 utils = 3_0_0 = [gilda_app] name = GILDA Applications Software (i386) arch = i386 3_0_0 = # Copy here your additional packages localrpms = file:///var/rep/slc306-i386/localrpms/

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, YAM usage You have to use three basic commands to synchronize the repository: yam -uvv : to synchronize the os and updates modules; yam -xvv : to synchronize modules different from os and updates (e.g. extras); yam -gvv : to create the package lists (using the command "genbasedir" of the apt tool) and to create all the symbolic links in the webserver directory. yam –guxvv: performs all the steps in one shot yam –guxvv –d ‘repository section-arch’: performs all the steps for the given repository. Ex. yam –guxvv –d ‘gilda_app-i386’

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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/ww/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.

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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-embrace-slc306.cfg): default linux label linux kernel slc306-i386/vmlinuz append \ ksdevice=eth0 ip=dhcp initrd=slc306-i386/initrd.img \ ks= /install/ks/node-embrace-slc306.ks

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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/slc304-i386/vmlinuz: kernel loaded during OS installation; /tftpboot/slc304-i386/initrd.img: initial ramdisk loaded during OS installation; /tftpboot/pxelinux.cfg/node-generic-slc304-static.cfg: bootloader configuration files; /tftpboot/pxelinux.cfg/XXXXXXXX: symlinks to a bootloader configuration files (see final step); /var/www/html/install/ks/node-generic-slc304- static.ks: kickstart file;

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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-embrace-slc306-.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.

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, 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.

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, IG-BOOTSELECT Insert the hostname of the node(s) to install

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, IG-BOOTSELECT Kickstart file selected Hard disk boot

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, Node Installation Edit GILDA_node.vmx and put these lines: – ethernet0.addressType = "static" – ethernet.address = 00:50:56:1A:XX:FF Start GILDA_node virtual machine Press F2 to enter the network adapter at the top of the boot order

Enabling Grids for E-sciencE INFSO-RI Embrace Tutorial, Clermont-Ferrand, USEFUL LINKS APT+Kickstart server installation guide: YAM home page: APT HOWTO: